]>
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 |
dfe22206 | 4 | Version: 2.1.3 |
b1c8d375 | 5 | Release: 2 |
f6df4d8b | 6 | License: GPL v2+ |
3c285298 | 7 | Group: X11/Applications/Multimedia |
cb1790a4 | 8 | Source0: http://ftp.musicbrainz.org/pub/musicbrainz/picard/%{name}-%{version}.tar.gz |
dfe22206 | 9 | # Source0-md5: 272b5ce221594eb1271d48d1c997499a |
274d6caa | 10 | Patch0: %{name}-desktop.patch |
b1c8d375 | 11 | Patch1: %{name}-PyQt5-no-egg.patch |
dfe22206 | 12 | URL: https://picard.musicbrainz.org/ |
ebc5a3f6 | 13 | BuildRequires: gettext-tools |
2d13c274 | 14 | BuildRequires: libstdc++-devel |
8da50acb | 15 | BuildRequires: pkgconfig |
dfe22206 JB |
16 | BuildRequires: python3-PyQt5-uic |
17 | BuildRequires: python3-babel >= 2.6 | |
18 | BuildRequires: python3-devel >= 1:3.5 | |
274d6caa | 19 | BuildRequires: rpm-pythonprov |
3c285298 | 20 | BuildRequires: rpmbuild(macros) >= 1.714 |
cb1790a4 | 21 | Requires(post,postun): desktop-file-utils |
245ee198 | 22 | Requires(post,postun): gtk-update-icon-cache |
cb1790a4 | 23 | Requires: hicolor-icon-theme |
dfe22206 JB |
24 | Requires: python3-PyQt5 >= 5.7.1 |
25 | Requires: python3-libdiscid | |
26 | Requires: python3-modules >= 1:3.5 | |
27 | Requires: python3-mutagen >= 1.37 | |
274d6caa JW |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
31 | The project code-named Picard is the next generation MusicBrainz | |
32 | tagging application. This new tagging concept is Release oriented, as | |
33 | opposed to track oriented like the ClassicTagger was. Picard is | |
34 | written in Python, which is a cross-platform language - this allows | |
35 | the same code to run both on Windows and on Linux. Before too long we | |
36 | will add Mac OS X support as well. | |
37 | ||
38 | %description -l pl.UTF-8 | |
39 | Projekt o nazwie Picard jest programem nowej generacji do generowania | |
40 | znaczników MusicBranz. Picard jest napisany w Pythonie, który jest | |
f0ef33ec JB |
41 | językiem cross-platform - co pozwala uruchamiać ten sam kod zarówno |
42 | pod Windows jak i Linuksem. Niedługo zostanie dodana obsługa Mac OS X. | |
274d6caa JW |
43 | |
44 | %prep | |
27b91018 | 45 | %setup -q -n %{name}-release-%{version} |
92891553 | 46 | %patch0 -p1 |
b1c8d375 | 47 | %patch1 -p1 |
274d6caa | 48 | |
dfe22206 JB |
49 | sed -i -e '1 s|/usr/bin/env python3|%{__python3}|g' \ |
50 | tagger.py scripts/picard.in | |
49ae3250 | 51 | |
b1c8d375 JB |
52 | # unify |
53 | %{__mv} po/attributes/{pt_PT,pt}.po | |
54 | # unsupported by glibc (as of 2.29) | |
a9990af8 SS |
55 | %{__rm} po/sco.po |
56 | ||
274d6caa | 57 | %build |
dfe22206 | 58 | %py3_build |
274d6caa JW |
59 | |
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
274d6caa | 62 | |
dfe22206 | 63 | %py3_install |
75ace44d | 64 | |
274d6caa | 65 | %find_lang %{name} |
4a3edd0d SS |
66 | %find_lang %{name}-countries -a %{name}.lang |
67 | %find_lang %{name}-attributes -a %{name}.lang | |
274d6caa | 68 | |
cb1790a4 JB |
69 | %clean |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
551e345c | 72 | %post |
cb1790a4 | 73 | %update_desktop_database |
245ee198 AF |
74 | %update_icon_cache hicolor |
75 | ||
76 | %postun | |
cb1790a4 | 77 | %update_desktop_database |
245ee198 | 78 | %update_icon_cache hicolor |
551e345c | 79 | |
274d6caa JW |
80 | %files -f %{name}.lang |
81 | %defattr(644,root,root,755) | |
75ace44d | 82 | %doc README.md AUTHORS.txt NEWS.txt |
dfe22206 JB |
83 | %attr(755,root,root) %{_bindir}/picard |
84 | %dir %{py3_sitedir}/%{name} | |
85 | %{py3_sitedir}/%{name}/*.py | |
86 | %{py3_sitedir}/%{name}/__pycache__ | |
87 | %{py3_sitedir}/%{name}/acoustid | |
88 | %{py3_sitedir}/%{name}/browser | |
89 | %{py3_sitedir}/%{name}/const | |
90 | %{py3_sitedir}/%{name}/coverart | |
91 | %{py3_sitedir}/%{name}/formats | |
92 | %{py3_sitedir}/%{name}/plugins | |
93 | %{py3_sitedir}/%{name}/ui | |
94 | %dir %{py3_sitedir}/%{name}/util | |
95 | %{py3_sitedir}/%{name}/util/*.py | |
96 | %attr(755,root,root) %{py3_sitedir}/%{name}/util/_astrcmp.cpython-*.so | |
97 | %{py3_sitedir}/%{name}/util/__pycache__ | |
98 | %{py3_sitedir}/%{name}/webservice | |
99 | %{py3_sitedir}/%{name}-%{version}-py*.egg-info | |
100 | %{_datadir}/metainfo/org.musicbrainz.Picard.appdata.xml | |
101 | %{_desktopdir}/org.musicbrainz.Picard.desktop | |
102 | %{_iconsdir}/hicolor/*x*/apps/org.musicbrainz.Picard.png | |
103 | %{_iconsdir}/hicolor/scalable/apps/org.musicbrainz.Picard.svg |