]>
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 |
383ccd26 | 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 |
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 | |
b1c8d375 JB |
50 | # unify |
51 | %{__mv} po/attributes/{pt_PT,pt}.po | |
52 | # unsupported by glibc (as of 2.29) | |
a9990af8 SS |
53 | %{__rm} po/sco.po |
54 | ||
274d6caa | 55 | %build |
dfe22206 | 56 | %py3_build |
274d6caa JW |
57 | |
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
274d6caa | 60 | |
dfe22206 | 61 | %py3_install |
75ace44d | 62 | |
383ccd26 JR |
63 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{es_419,ms_MY,zh-Hans,zh} |
64 | ||
778ea9ee | 65 | %find_lang %{name} --all-name |
274d6caa | 66 | |
cb1790a4 JB |
67 | %clean |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
551e345c | 70 | %post |
cb1790a4 | 71 | %update_desktop_database |
245ee198 AF |
72 | %update_icon_cache hicolor |
73 | ||
74 | %postun | |
cb1790a4 | 75 | %update_desktop_database |
245ee198 | 76 | %update_icon_cache hicolor |
551e345c | 77 | |
274d6caa JW |
78 | %files -f %{name}.lang |
79 | %defattr(644,root,root,755) | |
778ea9ee | 80 | %doc AUTHORS.txt NEWS.md README.md |
dfe22206 JB |
81 | %attr(755,root,root) %{_bindir}/picard |
82 | %dir %{py3_sitedir}/%{name} | |
83 | %{py3_sitedir}/%{name}/*.py | |
84 | %{py3_sitedir}/%{name}/__pycache__ | |
85 | %{py3_sitedir}/%{name}/acoustid | |
86 | %{py3_sitedir}/%{name}/browser | |
87 | %{py3_sitedir}/%{name}/const | |
88 | %{py3_sitedir}/%{name}/coverart | |
778ea9ee | 89 | %{py3_sitedir}/%{name}/disc |
dfe22206 JB |
90 | %{py3_sitedir}/%{name}/formats |
91 | %{py3_sitedir}/%{name}/plugins | |
778ea9ee | 92 | %{py3_sitedir}/%{name}/script |
dfe22206 JB |
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 |