]>
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 |
778ea9ee | 4 | Version: 2.8.5 |
f749d392 | 5 | Release: 3 |
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 |
778ea9ee | 9 | # Source0-md5: 7bea5a3963d27ed4d069ab7dd3ac3485 |
274d6caa | 10 | Patch0: %{name}-desktop.patch |
dfe22206 | 11 | URL: https://picard.musicbrainz.org/ |
ebc5a3f6 | 12 | BuildRequires: gettext-tools |
2d13c274 | 13 | BuildRequires: libstdc++-devel |
8da50acb | 14 | BuildRequires: pkgconfig |
dfe22206 | 15 | BuildRequires: python3-PyQt5-uic |
778ea9ee JB |
16 | BuildRequires: python3-babel >= 2.9.1 |
17 | BuildRequires: python3-devel >= 1:3.6 | |
18 | BuildRequires: python3-setuptools | |
19 | # PyInstaller >= 4.10? | |
274d6caa | 20 | BuildRequires: rpm-pythonprov |
3c285298 | 21 | BuildRequires: rpmbuild(macros) >= 1.714 |
cb1790a4 | 22 | Requires(post,postun): desktop-file-utils |
245ee198 | 23 | Requires(post,postun): gtk-update-icon-cache |
cb1790a4 | 24 | Requires: hicolor-icon-theme |
dfe22206 | 25 | Requires: python3-libdiscid |
778ea9ee | 26 | Requires: python3-modules >= 1:3.6 |
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 | |
27b91018 | 44 | %setup -q -n %{name}-release-%{version} |
92891553 | 45 | %patch0 -p1 |
274d6caa | 46 | |
778ea9ee JB |
47 | %{__sed} -i -e '1 s|/usr/bin/env python3|%{__python3}|g' \ |
48 | tagger.py.in scripts/picard.in | |
49ae3250 | 49 | |
f749d392 | 50 | # unify (only this file here, other picard domains already use "pt" name) |
b1c8d375 | 51 | %{__mv} po/attributes/{pt_PT,pt}.po |
a9990af8 | 52 | |
274d6caa | 53 | %build |
dfe22206 | 54 | %py3_build |
274d6caa JW |
55 | |
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
274d6caa | 58 | |
dfe22206 | 59 | %py3_install |
75ace44d | 60 | |
f749d392 JB |
61 | # unify names |
62 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{ms_MY,ms} | |
63 | # unsupported by glibc (as of 2.29) | |
64 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{es_419,sco,zh-Hans,zh} | |
383ccd26 | 65 | |
778ea9ee | 66 | %find_lang %{name} --all-name |
274d6caa | 67 | |
cb1790a4 JB |
68 | %clean |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
551e345c | 71 | %post |
cb1790a4 | 72 | %update_desktop_database |
245ee198 AF |
73 | %update_icon_cache hicolor |
74 | ||
75 | %postun | |
cb1790a4 | 76 | %update_desktop_database |
245ee198 | 77 | %update_icon_cache hicolor |
551e345c | 78 | |
274d6caa JW |
79 | %files -f %{name}.lang |
80 | %defattr(644,root,root,755) | |
778ea9ee | 81 | %doc AUTHORS.txt NEWS.md README.md |
dfe22206 JB |
82 | %attr(755,root,root) %{_bindir}/picard |
83 | %dir %{py3_sitedir}/%{name} | |
84 | %{py3_sitedir}/%{name}/*.py | |
85 | %{py3_sitedir}/%{name}/__pycache__ | |
86 | %{py3_sitedir}/%{name}/acoustid | |
87 | %{py3_sitedir}/%{name}/browser | |
88 | %{py3_sitedir}/%{name}/const | |
89 | %{py3_sitedir}/%{name}/coverart | |
778ea9ee | 90 | %{py3_sitedir}/%{name}/disc |
dfe22206 JB |
91 | %{py3_sitedir}/%{name}/formats |
92 | %{py3_sitedir}/%{name}/plugins | |
778ea9ee | 93 | %{py3_sitedir}/%{name}/script |
dfe22206 JB |
94 | %{py3_sitedir}/%{name}/ui |
95 | %dir %{py3_sitedir}/%{name}/util | |
96 | %{py3_sitedir}/%{name}/util/*.py | |
97 | %attr(755,root,root) %{py3_sitedir}/%{name}/util/_astrcmp.cpython-*.so | |
98 | %{py3_sitedir}/%{name}/util/__pycache__ | |
99 | %{py3_sitedir}/%{name}/webservice | |
100 | %{py3_sitedir}/%{name}-%{version}-py*.egg-info | |
101 | %{_datadir}/metainfo/org.musicbrainz.Picard.appdata.xml | |
102 | %{_desktopdir}/org.musicbrainz.Picard.desktop | |
103 | %{_iconsdir}/hicolor/*x*/apps/org.musicbrainz.Picard.png | |
104 | %{_iconsdir}/hicolor/scalable/apps/org.musicbrainz.Picard.svg |