Permalink
Browse files

[python-oauthlib] Added

  • Loading branch information...
1 parent 7c57cb3 commit 74f0637ccedfe37a27b833369aa20441d4631d53 @chenxiaolong committed Sep 18, 2012
Showing with 57 additions and 7 deletions.
  1. +8 −7 README
  2. +34 −0 python-oauthlib/PKGBUILD
  3. +15 −0 python-oauthlib/compare_versions.sh
View
15 README
@@ -72,13 +72,14 @@ Order to compile/install:
64: unity-asset-pool -> Design assets for Unity
65: gnome-menus2 -> Gnome menu specifications
66: nautilus-ubuntu -> File manager and graphics shell for GNOME
-67: unity-lens-applications -> Unity applications lens
-68: unity-lens-files -> Unity files lens
-69: unity-lens-music -> Unity music lens
-70: unity-lens-photos -> Unity photo lens
-71: unity-lens-video -> Unity video lens
-72: compiz-ubuntu -> Compiz compositing window manager
-73: unity -> A desktop experience designed for efficiency
+67: python-oauthlib -> Python implementation of OAuth
+68: unity-lens-applications -> Unity applications lens
+69: unity-lens-files -> Unity files lens
+70: unity-lens-music -> Unity music lens
+71: unity-lens-photos -> Unity photo lens
+72: unity-lens-video -> Unity video lens
+73: compiz-ubuntu -> Compiz compositing window manager
+74: unity -> A desktop experience designed for efficiency
* Optional packages
- overlay-scrollbar => For GNOME/Unity users who want a space saving scrollbar
View
@@ -0,0 +1,34 @@
+# Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
+
+pkgname=python-oauthlib
+_ubuntu_rel=0ubuntu1
+pkgver=0.3.0.${_ubuntu_rel}
+pkgrel=100
+pkgdesc="A Python implementation of the OAuth request-signing logic"
+arch=('any')
+url="http://pypi.python.org/pypi/oauthlib"
+license=('BSD')
+groups=('unity')
+depends=('python' 'python-crypto')
+makedepends=('python-distribute' 'python-nose')
+options=(!emptydirs)
+source=("http://pypi.python.org/packages/source/o/oauthlib/oauthlib-${pkgver%.*}.tar.gz"
+ "https://launchpad.net/ubuntu/+archive/primary/+files/python-oauthlib_${pkgver%.*}-${_ubuntu_rel}.debian.tar.gz")
+sha512sums=('7f69cc80cbaa9161e7b562bef475ea912373a0a1c2a84ee7d19d724db6e0f9d0f38cc9cf95672efcbf9e9200f7b4650a75ab8205fe004e6cdebf65fbddef7771'
+ '11605e687806f5274c36a34a13005f47d81f3c5ab82ca48bda788e8d22696abfd6b15c2c87c59cc20e167e3eb3d30d71175429ccff62cabd0918f06f13acfaea')
+
+build() {
+ cd "${srcdir}/oauthlib-${pkgver%.*}"
+
+ # Apply Ubuntu's patches
+ for i in $(grep -v '#' "${srcdir}/debian/patches/series"); do
+ patch -Np1 -i "${srcdir}/debian/patches/${i}"
+ done
+}
+
+package() {
+ cd "${srcdir}/oauthlib-${pkgver%.*}"
+ python setup.py install --root="${pkgdir}/" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+
+source "$(dirname ${0})/PKGBUILD"
+
+echo "Getting latest Ubuntu version..."
+UBUNTU_VER=($(wget -q 'http://packages.ubuntu.com/quantal/source/python-oauthlib' -O - | sed -n 's/.*>python-oauthlib_\(.*\)-\(.*\)\.debian\.tar\.gz<.*/\1 \2/p'))
+
+echo "Getting latest upstream version..."
+UPSTREAM_VER=$(wget -q 'http://pypi.python.org/pypi/oauthlib' -O - | sed -n 's/.*>oauthlib-\(.*\)\.tar\.gz<.*/\1/p')
+
+echo ""
+
+echo -e "PKGBUILD version: ${pkgver}"
+echo -e "Upstream version: ${UPSTREAM_VER}"
+echo -e "Ubuntu version: ${UBUNTU_VER[@]}"

0 comments on commit 74f0637

Please sign in to comment.