]>
Commit | Line | Data |
---|---|---|
1 | Summary: Picard, the Next-Generation MusicBrainz Tagger | |
2 | Summary(pl.UTF-8): Picard - znaczniki MusicBrainz nowej generacji | |
3 | Name: picard | |
4 | Version: 2.8.5 | |
5 | Release: 3 | |
6 | License: GPL v2+ | |
7 | Group: X11/Applications/Multimedia | |
8 | Source0: http://ftp.musicbrainz.org/pub/musicbrainz/picard/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 7bea5a3963d27ed4d069ab7dd3ac3485 | |
10 | Patch0: %{name}-desktop.patch | |
11 | URL: https://picard.musicbrainz.org/ | |
12 | BuildRequires: gettext-tools | |
13 | BuildRequires: libstdc++-devel | |
14 | BuildRequires: pkgconfig | |
15 | BuildRequires: python3-PyQt5-uic | |
16 | BuildRequires: python3-babel >= 2.9.1 | |
17 | BuildRequires: python3-devel >= 1:3.6 | |
18 | BuildRequires: python3-setuptools | |
19 | # PyInstaller >= 4.10? | |
20 | BuildRequires: rpm-pythonprov | |
21 | BuildRequires: rpmbuild(macros) >= 1.714 | |
22 | Requires(post,postun): desktop-file-utils | |
23 | Requires(post,postun): gtk-update-icon-cache | |
24 | Requires: hicolor-icon-theme | |
25 | Requires: python3-libdiscid | |
26 | Requires: python3-modules >= 1:3.6 | |
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 | |
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. | |
42 | ||
43 | %prep | |
44 | %setup -q -n %{name}-release-%{version} | |
45 | %patch0 -p1 | |
46 | ||
47 | %{__sed} -i -e '1 s|/usr/bin/env python3|%{__python3}|g' \ | |
48 | tagger.py.in scripts/picard.in | |
49 | ||
50 | # unify (only this file here, other picard domains already use "pt" name) | |
51 | %{__mv} po/attributes/{pt_PT,pt}.po | |
52 | ||
53 | %build | |
54 | %py3_build | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %py3_install | |
60 | ||
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} | |
65 | ||
66 | %find_lang %{name} --all-name | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %post | |
72 | %update_desktop_database | |
73 | %update_icon_cache hicolor | |
74 | ||
75 | %postun | |
76 | %update_desktop_database | |
77 | %update_icon_cache hicolor | |
78 | ||
79 | %files -f %{name}.lang | |
80 | %defattr(644,root,root,755) | |
81 | %doc AUTHORS.txt NEWS.md README.md | |
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 | |
90 | %{py3_sitedir}/%{name}/disc | |
91 | %{py3_sitedir}/%{name}/formats | |
92 | %{py3_sitedir}/%{name}/plugins | |
93 | %{py3_sitedir}/%{name}/script | |
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 |