SPECS: deluge.spec - lang files moved to %{_localedir} by hand - BR updated...
duddits
duddits at pld-linux.org
Thu Nov 13 12:06:26 CET 2008
Author: duddits Date: Thu Nov 13 11:06:26 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- lang files moved to %{_localedir} by hand
- BR updated
- *.py cleaning
---- Files affected:
SPECS:
deluge.spec (1.21 -> 1.22)
---- Diffs:
================================================================
Index: SPECS/deluge.spec
diff -u SPECS/deluge.spec:1.21 SPECS/deluge.spec:1.22
--- SPECS/deluge.spec:1.21 Wed Nov 12 17:04:27 2008
+++ SPECS/deluge.spec Thu Nov 13 12:06:21 2008
@@ -3,7 +3,6 @@
# TODO:
# - fix building with libtorrent-rasterbar libs, for now it is
# disabled. Deluge uses its internal libtorrent module
-# - lang files
#
Summary: A Python BitTorrent client with support for UPnP and DHT
Summary(pl.UTF-8): Klient BitTorrenta napisany w Pythonie ze wspraciem dla UPnP i DHT
@@ -17,6 +16,7 @@
Patch0: %{name}-libtorrent.patch
URL: http://deluge-torrent.org/
BuildRequires: boost-devel >= 1.36.0
+BuildRequires: boost-python-devel >= 1.36.0
BuildRequires: desktop-file-utils
BuildRequires: libtool
BuildRequires: python-devel >= 1:2.5
@@ -63,6 +63,18 @@
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+# move lang files into /usr/share/locale, find_lang does not work on
+# this. Looks really ugly, if you know a better way please do use it :)
+install -d $RPM_BUILD_ROOT%{_localedir}
+mv -f $RPM_BUILD_ROOT%{py_sitedir}/%{name}/i18n/* $RPM_BUILD_ROOT%{_localedir}
+
+# unsupported(?)
+rm -rf $RPM_BUILD_ROOT%{_localedir}/la
+rm -rf $RPM_BUILD_ROOT%{_localedir}/pms
+
+# Remove *.py files. We don't package them.
+find $RPM_BUILD_ROOT%{py_sitedir}/%{name} -type f -name '*.py' -print0 | xargs -0 rm -f
+
#%%find_lang %{name}
%clean
@@ -156,6 +168,7 @@
%{_iconsdir}/hicolor/128x128/apps/deluge.png
%{_iconsdir}/hicolor/192x192/apps/deluge.png
#{_iconsdir}/hicolor/256x256/apps/deluge.png
+%{_localedir}/*/LC_MESSAGES/%{name}.mo
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -163,6 +176,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.22 2008/11/13 11:06:21 duddits
+- lang files moved to %{_localedir} by hand
+- BR updated
+- *.py cleaning
+
Revision 1.21 2008/11/12 16:04:27 duddits
- up to 1.0.5
- TODO added
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/deluge.spec?r1=1.21&r2=1.22&f=u
More information about the pld-cvs-commit
mailing list