[packages/pootle/dev-2.7: 1/3] up to 2.5.1.3, use github url, sourceforge has outage
glen
glen at pld-linux.org
Thu May 5 19:05:49 CEST 2016
commit 0357622ed4afcaad9afebbaccd7c182610a21d92
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Jul 22 12:08:44 2015 +0300
up to 2.5.1.3, use github url, sourceforge has outage
iso-codes-message.patch | 21 ++++++++++++---------
pootle.spec | 31 +++++++++++++++----------------
2 files changed, 27 insertions(+), 25 deletions(-)
---
diff --git a/pootle.spec b/pootle.spec
index f80cf22..214af83 100644
--- a/pootle.spec
+++ b/pootle.spec
@@ -3,19 +3,19 @@
%define fullname Pootle
Summary: Localization and translation management web application
Name: pootle
-Version: 2.1.6
-Release: 4
+Version: 2.5.1.3
+Release: 0.1
License: GPL v2
Group: Development/Tools
-Source0: http://downloads.sourceforge.net/translate/%{fullname}-%{version}.tar.bz2
-# Source0-md5: 1dc69e42cd93f9174443af350df57491
+#Source0: http://downloads.sourceforge.net/translate/%{fullname}-%{version}.tar.bz2
+Source0: https://github.com/translate/pootle/releases/download/%{version}/%{fullname}-%{version}.tar.bz2
+# Source0-md5: 7b5bb4915247809aa218f16ea7d78220
Source1: apache.conf
Patch0: settings.patch
Patch1: paths.patch
Patch2: homedir.patch
Patch3: iso-codes-message.patch
-Patch4: bug-2005.patch
-URL: http://translate.sourceforge.net/wiki/pootle/index
+URL: http://pootle.translatehouse.org/
BuildRequires: python-devel
BuildRequires: python-modules
BuildRequires: rpm-pythonprov
@@ -60,13 +60,12 @@ It's features include::
%prep
%setup -q -n %{fullname}-%{version}
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
+#%patch0 -p1
+#%patch1 -p1
+#%patch2 -p1
%patch3 -p1
-%patch4 -p1
-%{__sed} -i -e '1s,#!.*env python,#!%{__python},' wsgi.py
+#%{__sed} -i -e '1s,#!.*env python,#!%{__python},' wsgi.py
%build
%{__python} setup.py build
@@ -140,9 +139,9 @@ scan_mo() {
scan_mo $RPM_BUILD_ROOT%{_sharedstatedir}/pootle/po/{pootle,terminology,tutorial}/* >> %{name}.lang
# don't clobber user $PATH
-mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/PootleServer
-install -p manage.py $RPM_BUILD_ROOT%{_sbindir}/pootle-manage
-install -p wsgi.py $RPM_BUILD_ROOT%{_datadir}/pootle
+#mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/PootleServer
+#install -p manage.py $RPM_BUILD_ROOT%{_sbindir}/pootle-manage
+#install -p wsgi.py $RPM_BUILD_ROOT%{_datadir}/pootle
install -d $RPM_BUILD_ROOT%{_sysconfdir}
cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
@@ -151,7 +150,7 @@ cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
# external pkg
-rm -r $RPM_BUILD_ROOT%{py_sitescriptdir}/djblets
+#rm -r $RPM_BUILD_ROOT%{py_sitescriptdir}/djblets
%clean
rm -rf $RPM_BUILD_ROOT
@@ -164,7 +163,7 @@ rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc ChangeLog CREDITS README
+%doc CREDITS README.rst
%dir %attr(750,root,http) %{_sysconfdir}
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/localsettings.py
diff --git a/iso-codes-message.patch b/iso-codes-message.patch
index 43d0285..1a6ae5e 100644
--- a/iso-codes-message.patch
+++ b/iso-codes-message.patch
@@ -1,11 +1,14 @@
---- Pootle-2.1.0/local_apps/pootle_app/views/admin/dashboard.py~ 2010-08-16 19:18:09.000000000 +0300
-+++ Pootle-2.1.0/local_apps/pootle_app/views/admin/dashboard.py 2010-08-23 14:43:50.214344936 +0300
-@@ -80,7 +80,7 @@
-
+--- Pootle-2.5.1.3/pootle/apps/pootle_app/views/admin/dashboard.py~ 2015-06-03 16:30:23.000000000 +0300
++++ Pootle-2.5.1.3/pootle/apps/pootle_app/views/admin/dashboard.py 2015-07-22 11:56:40.834510196 +0300
+@@ -102,8 +102,9 @@
if not depcheck.test_iso_codes():
- optional.append({'dependency': 'iso-codes',
-- 'text': _("Can't find the ISO codes package. Pootle uses ISO codes to translate language names.")})
-+ 'text': _("Can't find languages from ISO codes package. Be sure that languages configured are actually installed in iso-codes package. Pootle uses ISO codes to translate language names.")})
-
+ optional.append({
+ 'dependency': 'iso-codes',
+- 'text': _("Can't find the ISO codes package. Pootle uses ISO codes"
+- " to translate language names.")
++ 'text': _("Can't find languages from ISO codes package. "
++ "Be sure that languages configured are actually installed in iso-codes package. "
++ "Pootle uses ISO codes to translate language names.")
+ })
if not depcheck.test_gaupol():
- optional.append({'dependency': 'gaupol',
+ optional.append({
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pootle.git/commitdiff/5001e5fcafdd771919d431c4ce9a18cbf2bc4951
More information about the pld-cvs-commit
mailing list