]>
Commit | Line | Data |
---|---|---|
274d6caa | 1 | Summary: Picard, the Next-Generation MusicBrainz Tagger |
f0ef33ec | 2 | Summary(pl.UTF-8): Picard - znaczniki MusicBrainz nowej generacji |
274d6caa | 3 | Name: picard |
a8afb62b SS |
4 | Version: 1.3.1 |
5 | Release: 0.1 | |
f6df4d8b | 6 | License: GPL v2+ |
274d6caa | 7 | Group: Applications |
92891553 | 8 | Source0: ftp://ftp.musicbrainz.org/pub/musicbrainz/picard/%{name}-%{version}.tar.gz |
a8afb62b | 9 | # Source0-md5: 2c155a0c4a5589c18bac3016365d7fbd |
274d6caa JW |
10 | Patch0: %{name}-desktop.patch |
11 | URL: http://musicbrainz.org/doc/PicardTagger | |
ebc5a3f6 | 12 | BuildRequires: gettext-tools |
2d13c274 | 13 | BuildRequires: libstdc++-devel |
8da50acb | 14 | BuildRequires: pkgconfig |
2257e31e | 15 | BuildRequires: python-devel >= 1:2.5 |
274d6caa JW |
16 | BuildRequires: rpm-pythonprov |
17 | BuildRequires: rpmbuild(macros) >= 1.219 | |
245ee198 AF |
18 | Requires(post,postun): gtk-update-icon-cache |
19 | Requires(post,postun): hicolor-icon-theme | |
92891553 | 20 | Requires: python-PyQt4 |
274d6caa | 21 | Requires: python-musicbrainz2 |
f9d2fe2f | 22 | Requires: python-mutagen |
274d6caa JW |
23 | Requires: python-tunepimp |
24 | Requires: python-wxPython | |
274d6caa JW |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
28 | The project code-named Picard is the next generation MusicBrainz | |
29 | tagging application. This new tagging concept is Release oriented, as | |
30 | opposed to track oriented like the ClassicTagger was. Picard is | |
31 | written in Python, which is a cross-platform language - this allows | |
32 | the same code to run both on Windows and on Linux. Before too long we | |
33 | will add Mac OS X support as well. | |
34 | ||
35 | %description -l pl.UTF-8 | |
36 | Projekt o nazwie Picard jest programem nowej generacji do generowania | |
37 | znaczników MusicBranz. Picard jest napisany w Pythonie, który jest | |
f0ef33ec JB |
38 | językiem cross-platform - co pozwala uruchamiać ten sam kod zarówno |
39 | pod Windows jak i Linuksem. Niedługo zostanie dodana obsługa Mac OS X. | |
274d6caa JW |
40 | |
41 | %prep | |
27b91018 | 42 | %setup -q -n %{name}-release-%{version} |
92891553 | 43 | %patch0 -p1 |
274d6caa | 44 | |
49ae3250 ER |
45 | find -type f | xargs sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' |
46 | ||
274d6caa | 47 | %build |
49ae3250 ER |
48 | %{__python} setup.py config |
49 | %{__python} setup.py build | |
274d6caa JW |
50 | |
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
92891553 | 53 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
274d6caa | 54 | |
49ae3250 ER |
55 | %{__python} setup.py install \ |
56 | --optimize=2 \ | |
57 | --root=$RPM_BUILD_ROOT | |
92891553 | 58 | |
274d6caa JW |
59 | %py_postclean |
60 | %find_lang %{name} | |
61 | ||
551e345c | 62 | %post |
245ee198 AF |
63 | %update_icon_cache hicolor |
64 | ||
65 | %postun | |
66 | %update_icon_cache hicolor | |
551e345c | 67 | |
274d6caa JW |
68 | %clean |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files -f %{name}.lang | |
72 | %defattr(644,root,root,755) | |
92891553 | 73 | %doc AUTHORS.txt NEWS.txt |
274d6caa | 74 | %attr(755,root,root) %{_bindir}/%{name} |
92891553 | 75 | %{py_sitedir}/picard |
76 | %{py_sitedir}/%{name}-%{version}-py*.egg-info | |
274d6caa | 77 | %{_desktopdir}/%{name}.desktop |
551e345c | 78 | %{_iconsdir}/hicolor/*/apps/picard.png |