From 6ffe6d130ec95f377f7945887e526824df3bea97 Mon Sep 17 00:00:00 2001 From: Peter Gordon Date: Dec 05 2008 10:20:32 +0000 Subject: Update to 1.0.6; mark translation files with %lang as they should be; Add CC-BY-SA license for Tango icons. --- diff --git a/.cvsignore b/.cvsignore index 263e2d2..37ee11c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -deluge-1.0.5.tar.bz2 +deluge-1.0.6.tar.bz2 diff --git a/deluge.spec b/deluge.spec index 048418a..bafcd24 100644 --- a/deluge.spec +++ b/deluge.spec @@ -2,11 +2,13 @@ %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: deluge -Version: 1.0.5 -Release: 3%{?dist} +Version: 1.0.6 +Release: 1%{?dist} Summary: A GTK+ BitTorrent client with support for DHT, UPnP, and PEX Group: Applications/Internet -License: GPLv2+ +## Images in deluge/ui/webui/static/images/tango are CC-BY-SA 2.5, everything +## else is GPLv2+. +License: GPLv2+ and CC-BY-SA URL: http://deluge-torrent.org/ Source0: http://download.deluge-torrent.org/source/%{version}/%{name}-%{version}.tar.bz2 @@ -78,23 +80,52 @@ desktop-file-install --vendor fedora \ --delete-original \ --remove-category=Application \ %{buildroot}%{_datadir}/applications/%{name}.desktop +## TODO: The lang files should REEEAALLLY be in a standard place such as +## /usr/share/locale or similar. It'd make things so much nicer for +## the packaging. :O +## A bit of sed magic to mark the translation files with %%lang, taken from +## find-lang.sh (part of the rpm-build package) and tweaked somewhat. We +## cannot (unfortunately) call find-lang directly since it's not on a +## "$PREFIX/share/locale/"-ish directory tree. +pushd %{buildroot} + find -type f -o -type l \ + | sed ' + s:%{buildroot}%{python_sitearch}:: + s:^\.:: + s:\(.*/deluge/i18n/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3: + s:^\([^%].*\):: + s:%lang(C) :: + /^$/d' \ + > %{name}.filelist +## We've got the .mo files now; but we need the rest of the files in those +## dirs. We can't just glob in the %%files, as that would add duplicate +## entries for the .mo files which we've already marked with appropriate +## %%lang-fu. + find ./%{python_sitearch}/deluge -not -iname '%{name}.mo' -type f \ + | sed 's:^\./::' >> %{name}.filelist + find ./%{python_sitearch}/deluge -not -iname '%{name}.mo' -type d \ + | sed 's:^\./:%%dir :' >> %{name}.filelist +## Now we move that list back to our sources, so that '%%files -f' can find it +## properly. +popd && mv %{buildroot}/%{name}.filelist . %clean rm -rf %{buildroot} -%files +%files -f %{name}.filelist %defattr(-,root,root,-) -%doc deluge/ui/webui/LICENSE deluge/ui/webui/TODO -%{python_sitearch}/%{name}/ +%doc ChangeLog %{python_sitearch}/%{name}-%{version}-py?.?.egg-info %{_bindir}/%{name} %{_bindir}/%{name}d %{_datadir}/applications/fedora-%{name}.desktop -%{_datadir}/pixmaps/%{name}.png +%{_datadir}/pixmaps/%{name}.* %{_datadir}/icons/hicolor/*/apps/%{name}.png %{_datadir}/icons/scalable/apps/%{name}.svg +%{_mandir}/man?/%{name}* + %post @@ -114,6 +145,11 @@ fi %changelog +* Mon Dec 01 2008 Peter Gordon - 1.0.6-1 +- Update to new upstream release (1.0.6) +- Adds Tango images to the WebUI data (CC-BY-SA) and some man pages. +- Properly mark translation files with %%lang. + * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 1.0.5-3 - Fix locations for Python 2.6 diff --git a/sources b/sources index c0b2443..8c218d5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -0b232b62d9b07e12a1443c4c5c92d800 deluge-1.0.5.tar.bz2 +b1571d0b5489c6e7c9f6f8e9e9e3bb9a deluge-1.0.6.tar.bz2