[packages/pootle/dev-2.7] use /var/log/pootle for logs
glen
glen at pld-linux.org
Sun May 8 10:23:15 CEST 2016
commit ae29918e7d315ac862a014af516405aa5203a9a0
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun May 8 11:10:24 2016 +0300
use /var/log/pootle for logs
pootle.spec | 11 +++++++----
settings.patch | 11 +++++++++++
2 files changed, 18 insertions(+), 4 deletions(-)
---
diff --git a/pootle.spec b/pootle.spec
index 65f6238..a3d0bce 100644
--- a/pootle.spec
+++ b/pootle.spec
@@ -4,7 +4,7 @@
Summary: Localization and translation management web application
Name: pootle
Version: 2.7.3
-Release: 0.3
+Release: 0.4
License: GPL v2
Group: Development/Tools
Source0: https://github.com/translate/pootle/releases/download/%{version}/Pootle-%{version}.tar.bz2
@@ -63,20 +63,21 @@ It's features include::
# not packaging for Travis CI
rm pootle/settings/91-travis.conf
+rm pootle/log/README
+
%build
%py_build
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sbindir},%{_datadir}/pootle,%{_sharedstatedir}/pootle/po/.tmp,%{_sysconfdir}}
+install -d $RPM_BUILD_ROOT{%{_sbindir},%{_datadir}/%{name},%{_sharedstatedir}/%{name}/po/.tmp,/var/log/%{name},%{_sysconfdir}}
%py_install
%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/tests
# move these to /var/lib/pootle/po
-install -d $RPM_BUILD_ROOT%{_sharedstatedir}/pootle/po
mv $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}/translations/{terminology,tutorial} \
- $RPM_BUILD_ROOT%{_sharedstatedir}/pootle/po
+ $RPM_BUILD_ROOT%{_sharedstatedir}/%{name}/po
# install_dirs.py was modified _after_ install completed, so compile again
# before py_postclean
@@ -194,3 +195,5 @@ rm -rf $RPM_BUILD_ROOT
#%dir %attr(770,root,http) %{_sharedstatedir}/pootle/po/pootle
%dir %attr(770,root,http) %{_sharedstatedir}/pootle/po/terminology
%dir %attr(770,root,http) %{_sharedstatedir}/pootle/po/tutorial
+
+%dir %attr(770,root,http) /var/log/%{name}
diff --git a/settings.patch b/settings.patch
index 5884de1..b15c410 100644
--- a/settings.patch
+++ b/settings.patch
@@ -80,3 +80,14 @@
# On POSIX systems, files synchronized to disk will be assigned these
# permissions. Use 0644/0755 for publically-readable files, or 0600/0700 if you
+--- Pootle-2.7.3/pootle/settings/25-logging.conf~ 2016-04-25 21:29:00.000000000 +0300
++++ Pootle-2.7.3/pootle/settings/25-logging.conf 2016-05-08 11:06:50.064007062 +0300
+@@ -3,7 +3,7 @@
+ #
+
+ # The directory where Pootle writes its logs
+-POOTLE_LOG_DIRECTORY = working_path("log")
++POOTLE_LOG_DIRECTORY = '/var/log/pootle'
+
+ # Useful references:
+ #
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pootle.git/commitdiff/c4be098bc2452fc5babc72ed85a048502a93bef9
More information about the pld-cvs-commit
mailing list