[python-uri-templates] Initial package import to SCM

Ankur Sinha ankursinha at fedoraproject.org
Mon Jul 29 13:30:37 UTC 2013


commit 2edea447d703e772dcbf7e0160962329df1a0b6d
Author: Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur at gmail.com>
Date:   Mon Jul 29 23:28:19 2013 +1000

    Initial package import to SCM

 .gitignore                |    1 +
 python-uri-templates.spec |   46 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 3 files changed, 48 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0d57d8a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-uri-templates-0.5.2-e947a8a.tar.gz
diff --git a/python-uri-templates.spec b/python-uri-templates.spec
new file mode 100644
index 0000000..de0eb56
--- /dev/null
+++ b/python-uri-templates.spec
@@ -0,0 +1,46 @@
+%global commit e947a8affa793f24cd3526a1d18f21e0729672da
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name:           python-uri-templates
+Version:        0.5.2
+Release:        1%{?dist}
+Summary:        A Python implementation of URI Template
+
+License:        ASL 2.0
+URL:            https://github.com/uri-templates/uritemplate-py
+Source0:        https://github.com/uri-templates/uritemplate-py/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
+
+BuildArch:      noarch
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+Requires:  python-simplejson
+
+%description
+This is a Python implementation of RFC6570, URI Template, and can 
+expand templates up to and including Level 4 in that specification.
+
+%prep
+%setup -q -n uritemplate-py-%{commit}
+
+# Remove shebang
+sed -i "1 d" uritemplate/uritemplate.py
+
+%build
+%{__python} setup.py build
+
+
+%install
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+
+# tests are a separate repository?
+ 
+%files 
+%doc README.rst
+%{python_sitelib}/uritemplate-%{version}-py?.?.egg-info
+%{python_sitelib}/uritemplate/
+
+
+%changelog
+* Sat Jul 27 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.5.2-1
+- Initial rpmbuild
+
diff --git a/sources b/sources
index e69de29..2e1c5be 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+db02e88b2abde9ef4ef3051dd528508c  python-uri-templates-0.5.2-e947a8a.tar.gz


More information about the scm-commits mailing list