## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 srcname paperwork Name: %{srcname} Version: 2.2.5 Release: %autorelease Summary: Using scanner and OCR to grep dead trees the easy way License: GPL-3.0-or-later URL: https://gitlab.gnome.org/World/OpenPaperwork/paperwork Source: %pypi_source %{srcname} Patch: 0001-Drop-extra-icon-dirs.patch BuildArch: noarch # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: desktop-file-utils BuildRequires: libappstream-glib BuildRequires: python3-devel Requires: hicolor-icon-theme Requires: python3-%{srcname} = %{version}-%{release} %global _description %{expand: \ Paperwork is a tool to make papers searchable. The basic idea behind Paperwork is "scan & forget": You should be able to just scan a new document and forget about it until the day you need it again. Let the machine do most of the work. } %description %{_description} %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-gobject BuildRequires: libnotify BuildRequires: /usr/bin/xvfb-run # Fallback to old orientation heuristic just freezes, so ensure this is # available. Requires: tesseract-osd Requires: libinsane-gobject %description -n python3-%{srcname} %{_description} %prep %autosetup -n %{srcname}-%{version} -p2 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install PYTHONPATH=%{buildroot}%{python3_sitelib} \ xvfb-run -a \ python3 -m paperwork_gtk.main install \ --data_base_dir %{buildroot}%{_datadir} \ --icon_base_dir %{buildroot}%{_datadir}/icons %pyproject_save_files -l paperwork_gtk %check export %{py3_test_envvars} desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml xvfb-run -a paperwork-gtk chkdeps xvfb-run -a %{python3} -m unittest discover --verbose -s tests %files %{_bindir}/paperwork-gtk %{_datadir}/applications/*.desktop %{_datadir}/icons/hicolor/*/apps/* %{_metainfodir}/*.metainfo.xml %files -n python3-%{srcname} -f %{pyproject_files} %doc README.markdown %changelog ## START: Generated by rpmautospec * Sat Aug 31 2024 Elliott Sales de Andrade - 2.2.5-1 - Update to latest version (#2308813) * Thu Jul 18 2024 Fedora Release Engineering - 2.1.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 2.1.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 2.1.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Aug 06 2023 Troy Curtis Jr - 2.1.2-5 - Patch requirements to rename python-Levenshtein to Levenshtein. * Thu Jul 20 2023 Fedora Release Engineering - 2.1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 18 2023 Python Maint - 2.1.2-3 - Rebuilt for Python 3.12 * Thu Jan 19 2023 Fedora Release Engineering - 2.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Jan 09 2023 Elliott Sales de Andrade - 2.1.2-1 - Update to latest version (#2159153) * Mon Dec 19 2022 Elliott Sales de Andrade - 2.1.1-3 - Drop support for i686 * Fri Jul 22 2022 Fedora Release Engineering - 2.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jul 06 2022 Elliott Sales de Andrade - 2.1.1-1 - Update to latest version (#2029141) * Thu Jan 20 2022 Fedora Release Engineering - 2.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Dec 30 2021 Elliott Sales de Andrade - 2.1.0-1 - Update to latest version (#2029141) * Thu Dec 30 2021 Elliott Sales de Andrade - 2.0.3-4 - Switch to latest Python macros * Thu Jul 22 2021 Fedora Release Engineering - 2.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sat Jun 12 2021 Elliott Sales de Andrade - 2.0.3-1 - Update to latest version (#1964138) * Fri Jun 04 2021 Python Maint - 2.0.2-2 - Rebuilt for Python 3.10 * Sat Mar 20 2021 Elliott Sales de Andrade - 2.0.2-1 - Update to latest version (#1889058) * Tue Jan 26 2021 Fedora Release Engineering - 1.3.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.3.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.3.1-4 - Rebuilt for Python 3.9 * Sun Mar 22 2020 Elliott Sales de Andrade - 1.3.1-3 - Remove unused BuildRequires * Wed Jan 29 2020 Fedora Release Engineering - 1.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jan 02 2020 Elliott Sales de Andrade - 1.3.1-1 - Update to latest version * Thu Oct 03 2019 Miro Hrončok - 1.3.0-2 - Rebuilt for Python 3.8.0rc1 (#1748018) * Sat Aug 24 2019 Elliott Sales de Andrade - 1.3.0-1 - Update to latest version * Mon Aug 19 2019 Miro Hrončok - 1.2.4-5 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.2.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 16 2019 Elliott Sales de Andrade - 1.2.4-3 - Require tesseract-osd so orientation detection doesn't freeze * Tue Mar 26 2019 Elliott Sales de Andrade - 1.2.4-2 - Fix icon installation * Mon Mar 25 2019 Elliott Sales de Andrade - 1.2.4-1 - Initial package. ## END: Generated by rpmautospec