[python-django-typepadapp/el6] add global
Luis Enrique Bazán De León
lbazan at fedoraproject.org
Thu Feb 27 13:18:21 UTC 2014
commit 9c77556b1e82c9368d14bf6dfad022873a74a047
Author: lbazan <lbazan at fedoraproject.org>
Date: Thu Feb 27 08:18:52 2014 -0500
add global
python-django-typepadapp.spec | 23 +++++++++++++----------
1 files changed, 13 insertions(+), 10 deletions(-)
---
diff --git a/python-django-typepadapp.spec b/python-django-typepadapp.spec
index 8aca2a8..3a15c4e 100644
--- a/python-django-typepadapp.spec
+++ b/python-django-typepadapp.spec
@@ -1,3 +1,6 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%{!?pyver: %global pyver %(%{__python} -c "import sys ; print sys.version[:5]")}
+
%global pkgname typepadapp
%global obs_ver 1.2.1-1
@@ -15,7 +18,7 @@ Requires: python-simplejson
Requires: python-iso8601
Requires: python-feedparser
Requires: python-typepad
-Requires: Django
+Requires: Django14
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: python-feedparser
@@ -25,7 +28,7 @@ BuildRequires: python-remoteobjects
BuildRequires: python-typepad
BuildRequires: python-iso8601
BuildRequires: python-batchhttp
-BuildRequires: Django
+BuildRequires: Django14
Provides: %{pkgname} = %{version}-%{release}
Obsoletes: django-typepad < %{obs_ver}
@@ -40,25 +43,25 @@ underpinnings for you to build TypePad cloud applications.
rm -rf typepadapp.egg-info
%build
-%{__python2} setup.py build
+%{__python} setup.py build
%install
-%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
-chmod 0755 $RPM_BUILD_ROOT%{python2_sitelib}/typepadapp/conf/project_template/app.wsgi
-chmod 0644 $RPM_BUILD_ROOT%{python2_sitelib}/typepadapp/static/soundmanager/soundmanager2.js
-chmod 0644 $RPM_BUILD_ROOT%{python2_sitelib}/typepadapp/static/soundmanager/soundmanager2-nodebug-jsmin.js
+%{__python2} setup.py install -01 --skip-build --root $RPM_BUILD_ROOT
+chmod 0755 $RPM_BUILD_ROOT%{python_sitelib}/typepadapp/conf/project_template/app.wsgi
+chmod 0644 $RPM_BUILD_ROOT%{python_sitelib}/typepadapp/static/soundmanager/soundmanager2.js
+chmod 0644 $RPM_BUILD_ROOT%{python_sitelib}/typepadapp/static/soundmanager/soundmanager2-nodebug-jsmin.js
%clean
rm -rf $RPM_BUILD_ROOT
%check
-%{__python2} -m unittest
+%{__python} -m unittest
%files
%defattr(-,root,root,-)
%doc LICENSE README.rst
-%{python2_sitelib}/typepadapp
-%{python2_sitelib}/typepadapp-*.egg-info
+%{python_sitelib}/typepadapp
+%{python_sitelib}/typepadapp-*.egg-info
%changelog
* Wed Feb 27 2014 Luis Bazan <lbazan at fedoraproject.org> - 1.2.1-7
More information about the scm-commits
mailing list