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