]>
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 |
cb1790a4 | 4 | Version: 1.4.1 |
93dad349 | 5 | Release: 1 |
f6df4d8b | 6 | License: GPL v2+ |
3c285298 | 7 | Group: X11/Applications/Multimedia |
cb1790a4 JB |
8 | Source0: http://ftp.musicbrainz.org/pub/musicbrainz/picard/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 5f3332e8c0f3280e11382a5b1f901409 | |
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 |
cb1790a4 JB |
15 | BuildRequires: python-PyQt4-uic |
16 | BuildRequires: python-devel >= 1:2.7 | |
274d6caa | 17 | BuildRequires: rpm-pythonprov |
3c285298 | 18 | BuildRequires: rpmbuild(macros) >= 1.714 |
cb1790a4 | 19 | Requires(post,postun): desktop-file-utils |
245ee198 | 20 | Requires(post,postun): gtk-update-icon-cache |
cb1790a4 | 21 | Requires: hicolor-icon-theme |
92891553 | 22 | Requires: python-PyQt4 |
cb1790a4 JB |
23 | Requires: python-libdiscid |
24 | Requires: python-modules >= 1:2.7 | |
f9d2fe2f | 25 | Requires: python-mutagen |
274d6caa JW |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | The project code-named Picard is the next generation MusicBrainz | |
30 | tagging application. This new tagging concept is Release oriented, as | |
31 | opposed to track oriented like the ClassicTagger was. Picard is | |
32 | written in Python, which is a cross-platform language - this allows | |
33 | the same code to run both on Windows and on Linux. Before too long we | |
34 | will add Mac OS X support as well. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | Projekt o nazwie Picard jest programem nowej generacji do generowania | |
38 | znaczników MusicBranz. Picard jest napisany w Pythonie, który jest | |
f0ef33ec JB |
39 | językiem cross-platform - co pozwala uruchamiać ten sam kod zarówno |
40 | pod Windows jak i Linuksem. Niedługo zostanie dodana obsługa Mac OS X. | |
274d6caa JW |
41 | |
42 | %prep | |
27b91018 | 43 | %setup -q -n %{name}-release-%{version} |
92891553 | 44 | %patch0 -p1 |
274d6caa | 45 | |
3c285298 | 46 | find -type f | xargs sed -i -e '1 s|#!.*python|#!%{__python}|g' |
49ae3250 | 47 | |
a9990af8 SS |
48 | %{__rm} po/sco.po |
49 | ||
274d6caa | 50 | %build |
3c285298 | 51 | %py_build |
274d6caa JW |
52 | |
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
92891553 | 55 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
274d6caa | 56 | |
3c285298 | 57 | %py_install |
274d6caa | 58 | %py_postclean |
75ace44d | 59 | |
274d6caa | 60 | %find_lang %{name} |
4a3edd0d SS |
61 | %find_lang %{name}-countries -a %{name}.lang |
62 | %find_lang %{name}-attributes -a %{name}.lang | |
274d6caa | 63 | |
cb1790a4 JB |
64 | %clean |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
551e345c | 67 | %post |
cb1790a4 | 68 | %update_desktop_database |
245ee198 AF |
69 | %update_icon_cache hicolor |
70 | ||
71 | %postun | |
cb1790a4 | 72 | %update_desktop_database |
245ee198 | 73 | %update_icon_cache hicolor |
551e345c | 74 | |
274d6caa JW |
75 | %files -f %{name}.lang |
76 | %defattr(644,root,root,755) | |
75ace44d | 77 | %doc README.md AUTHORS.txt NEWS.txt |
274d6caa | 78 | %attr(755,root,root) %{_bindir}/%{name} |
3c285298 ER |
79 | %dir %{py_sitedir}/%{name} |
80 | %{py_sitedir}/%{name}/*.py* | |
81 | %{py_sitedir}/%{name}/browser | |
82 | %{py_sitedir}/%{name}/const | |
83 | %{py_sitedir}/%{name}/coverart | |
84 | %{py_sitedir}/%{name}/formats | |
85 | %{py_sitedir}/%{name}/plugins | |
86 | %{py_sitedir}/%{name}/ui | |
87 | %dir %{py_sitedir}/%{name}/util | |
88 | %{py_sitedir}/%{name}/util/*.py* | |
89 | %{py_sitedir}/%{name}/util/devutil | |
90 | %attr(755,root,root) %{py_sitedir}/%{name}/util/astrcmp.so | |
92891553 | 91 | %{py_sitedir}/%{name}-%{version}-py*.egg-info |
274d6caa | 92 | %{_desktopdir}/%{name}.desktop |
551e345c | 93 | %{_iconsdir}/hicolor/*/apps/picard.png |
cb1790a4 | 94 | %{_iconsdir}/hicolor/scalable/apps/picard.svg |