picard.spec
Lukasz
qra at sidzina.homelinux.net
Sun Nov 15 19:14:20 CET 2009
Pawel Golaszewski wrote:
> On Sun, 15 Nov 2009, Łukasz wrote:
>
>> Dzięki wszystkim za pomoc, już działa.
>>
>> Załączam jeszcze raz speca bo umknął mi jeden katalog i jedna zależność.
>>
>
> diff...
>
>
Oto on...
Lukasz
-------------- next part --------------
--- ../packages/SPECS/picard.spec 2009-02-19 22:19:11.000000000 +0100
+++ picard.spec 2009-11-15 19:02:46.229439129 +0100
@@ -1,24 +1,25 @@
# $Revision: 1.6 $, $Date: 2009/02/19 21:19:11 $
# TODO:
# - unpackaged files:
-# /usr/share/icons/picard-16.png
-# /usr/share/icons/picard-32.png
+# /usr/share/locale/sr/LC_MESSAGES/picard.mo
Summary: Picard, the Next-Generation MusicBrainz Tagger
Summary(pl.UTF-8): Picard - znaczniki MusicBrainz nowej generacji
Name: picard
-Version: 0.11
+Version: 0.12.1
Release: 1
License: GPL v2+
Group: Applications
Source0: ftp://ftp.musicbrainz.org/pub/musicbrainz/picard/%{name}-%{version}.tar.gz
-# Source0-md5: 02ddcff3e201b2cf54f1b52b02d44fad
+# Source0-md5: cfe594d68924afbc0704888130295c85
Patch0: %{name}-desktop.patch
URL: http://musicbrainz.org/doc/PicardTagger
+BuildRequires: gettext-devel
BuildRequires: python-devel >= 1:2.5
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.219
Requires: python-PyQt4
Requires: python-musicbrainz2
+Requires: python-mutagen
Requires: python-tunepimp
Requires: python-wxPython
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -28,14 +29,14 @@
tagging application. This new tagging concept is Release oriented, as
opposed to track oriented like the ClassicTagger was. Picard is
written in Python, which is a cross-platform language - this allows
-the same code to run both on Windows and on Linux. Before too long we
-will add Mac OS X support as well.
+the same code to run both on Windows, Linux and Mac OS X.
+
%description -l pl.UTF-8
Projekt o nazwie Picard jest programem nowej generacji do generowania
znacznikĂłw MusicBranz. Picard jest napisany w Pythonie, ktĂłry jest
jÄzykiem cross-platform - co pozwala uruchamiaÄ ten sam kod zarĂłwno
-pod Windows jak i Linuksem. NiedĹugo zostanie dodana obsĹuga Mac OS X.
+pod Windows, Linuksem i Mac OS X.
%prep
%setup -q
@@ -52,22 +53,37 @@
python ./setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
install %{name}.desktop $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
-install %{name}-32.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name},%{_desktopdir},%{_iconsdir}/hicolor/128x128/apps}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name},%{_desktopdir},%{_iconsdir}/hicolor/16x16/apps}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name},%{_desktopdir},%{_iconsdir}/hicolor/24x24/apps}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name},%{_desktopdir},%{_iconsdir}/hicolor/256x256/apps}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name},%{_desktopdir},%{_iconsdir}/hicolor/32x32/apps}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name},%{_desktopdir},%{_iconsdir}/hicolor/48x48/apps}
+
%py_postclean
-%find_lang %{name}
+%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(644,root,root,755)
+
+%defattr(644,root,root,755)
%doc AUTHORS.txt NEWS.txt
%attr(755,root,root) %{_bindir}/%{name}
%{py_sitedir}/picard
%{py_sitedir}/%{name}-%{version}-py*.egg-info
%{_desktopdir}/%{name}.desktop
-%{_pixmapsdir}/%{name}.png
+%{_iconsdir}/hicolor/128x128/apps/*
+%{_iconsdir}/hicolor/16x16/apps/*
+%{_iconsdir}/hicolor/24x24/apps/*
+%{_iconsdir}/hicolor/256x256/apps/*
+%{_iconsdir}/hicolor/32x32/apps/*
+%{_iconsdir}/hicolor/48x48/apps/*
+%dir %{_datadir}/locale/sco/LC_MESSAGES/
+%dir %{_datadir}/locale/sco/
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
More information about the pld-devel-pl
mailing list