[pootle] Drop packaged Django apps
dwayne
dwayne at fedoraproject.org
Wed Apr 18 00:20:01 UTC 2012
commit 6e6e3dfc1923477e89ad29d77ebfd25d0fab7aba
Author: Dwayne Bailey <dwayne at translate.org.za>
Date: Tue Apr 17 17:18:50 2012 -0700
Drop packaged Django apps
Fedora 17+ packages apps profiles and registration. Remove these
as needed.
pootle.spec | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/pootle.spec b/pootle.spec
index ff6d494..fd5322f 100644
--- a/pootle.spec
+++ b/pootle.spec
@@ -4,7 +4,7 @@
Name: pootle
Version: 2.1.6
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Localization and translation management web application
Group: Development/Tools
@@ -22,6 +22,10 @@ BuildRequires: python-devel
BuildRequires: translate-toolkit >= 1.4.1
Requires: Django >= 1.0
Requires: Django-south
+%if 0%{?fedora} >= 17
+Requires: django-profiles
+Requires: django-registration
+%endif
%{?fedora:Requires: iso-codes}
Requires: memcached
Requires: mod_wsgi
@@ -88,6 +92,10 @@ install -d $RPM_BUILD_ROOT%{_sbindir} $RPM_BUILD_ROOT%{_datadir}/pootle/ $RPM_BU
install $RPM_BUILD_ROOT%{_bindir}/PootleServer $RPM_BUILD_ROOT%{_sbindir}
rm $RPM_BUILD_ROOT%{_bindir}/PootleServer
rm -r $RPM_BUILD_ROOT%{python_sitelib}/djblets
+%if 0%{?fedora} >= 17
+rm -r $RPM_BUILD_ROOT%{python_sitelib}/profiles
+rm -r $RPM_BUILD_ROOT%{python_sitelib}/registration
+%endif
install -p --mode=644 %{SOURCE1} -D $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/pootle.conf
install wsgi.py $RPM_BUILD_ROOT%{_datadir}/pootle/
cp -p %{SOURCE2} .
@@ -129,6 +137,9 @@ fi
%changelog
+* Wed Apr 18 2012 Dwayne Bailey <dwayne at translate.org.za> - 2.1.6-3
+- Drop external apps that are already packaged in Fedora 17+
+
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.1.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
More information about the scm-commits
mailing list