## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global forgeurl https://github.com/musicbrainz/picard/ %global commit 2c1c30e6ccba886270cb49aed6d0329e114763da Name: picard Version: 2.12.3 Release: %autorelease Summary: MusicBrainz-based audio tagger License: GPL-2.0-or-later %forgemeta URL: %{forgeurl} Source0: %{forgesource} Source1: picard.rpmlintrc BuildRequires: gcc BuildRequires: pyproject-rpm-macros BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: python3-pip BuildRequires: python3-wheel BuildRequires: python3-setuptools BuildRequires: python3-devel BuildRequires: python3-charset-normalizer BuildRequires: %{py3_dist makefun pytest} Requires: hicolor-icon-theme Requires: python3-qt5 Requires: python3-dateutil Requires: python3-libdiscid Requires: python3-mutagen >= 1.37 Requires: python3-markdown Requires: qt5-qtmultimedia Recommends: rsgain %if 0%{?rhel} ExcludeArch: ppc64 %endif %description Picard is an audio tagging application using data from the MusicBrainz database. The tagger is album or release oriented, rather than track-oriented. %prep %forgesetup %autosetup -n %{archivename} %generate_buildrequires sed -i "s/charset-normalizer~=3.3.2/charset-normalizer>=3.3/g" requirements.txt %pyproject_buildrequires %build sed -i "s/'disable-autoupdate', None/'disable-autoupdate', True/g" setup.py sed -i "s/self.disable_autoupdate = None/self.disable_autoupdate = True/g" setup.py %{__python3} setup.py config %pyproject_wheel %install %pyproject_install desktop-file-install \ --delete-original --remove-category="Application" \ --dir=%{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/* %find_lang %{name} %find_lang %{name}-attributes %find_lang %{name}-constants %find_lang %{name}-countries %check %files -f %{name}.lang -f %{name}-attributes.lang -f %{name}-constants.lang -f %{name}-countries.lang %doc AUTHORS.txt %license COPYING.txt %{_bindir}/picard %{_datadir}/applications/org.musicbrainz.Picard.desktop %{_datadir}/icons/hicolor/*/apps/org.musicbrainz.Picard.* %{_datadir}/metainfo/org.musicbrainz.Picard.appdata.xml %{python3_sitearch}/*dist-info %{python3_sitearch}/picard/ %changelog ## START: Generated by rpmautospec * Thu Nov 07 2024 gbcox - 2.12.3-2 - rhbz#2323081 * Tue Nov 05 2024 gbcox - 2.12.3-1 - rhbz#2323081 * Tue Aug 13 2024 gbcox - 2.12.1-1 - rhbz#2304294 * Mon Aug 05 2024 Gerald B. Cox - 2.12.0-4 - RPMAUTOSPEC: unresolvable merge ## END: Generated by rpmautospec