## 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 Name: urlscan Version: 1.0.1 Release: %autorelease Summary: Extract and browse the URLs contained in an email (urlview replacement) License: GPL-2.0-or-later URL: https://github.com/firecat53/%{name} Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz Source1: muttrc BuildArch: noarch BuildRequires: python3-devel %description %{name} searches for URLs in email messages, then displays a list of them in the current terminal. It is primarily meant as a replacement for urlview. %prep %autosetup cp -p %{SOURCE1} . # stop installing LICENSE file in docdir sed -i '/^LICENSE/ d' pyproject.toml # remove shebang sed -i '/\/usr\/bin\/env.*python/ d' urlscan/__main__.py %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}' %pyproject_buildrequires %build export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}' %pyproject_wheel %install export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}' %pyproject_install %pyproject_save_files urlscan # remove extra file rm -fr %{buildroot}/%{_docdir}/%{name}/ %files -f %{pyproject_files} %doc muttrc README.md %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %changelog ## START: Generated by rpmautospec * Sat Jan 27 2024 Fedora Release Engineering - 1.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 28 2023 Ankur Sinha (Ankur Sinha Gmail) - 1.0.1-1 - feat: update to 1.0.1 (fixes rhbz#2225286) * Fri Jul 28 2023 Ankur Sinha (Ankur Sinha Gmail) - 1.0.0-5 - feat: add packit config * Fri Jul 28 2023 Ankur Sinha (Ankur Sinha Gmail) - 1.0.0-4 - feat: use spdx license * Sat Jul 22 2023 Fedora Release Engineering - 1.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 1.0.0-2 - Rebuilt for Python 3.12 * Wed Jun 07 2023 Ankur Sinha (Ankur Sinha Gmail) - 1.0.0-1 - feat: update to 1.0.0 (fixes rhbz#2211863) * Sat Jan 21 2023 Fedora Release Engineering - 0.9.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Aug 04 2022 Ankur Sinha (Ankur Sinha Gmail) - 0.9.10-1 - feat: update to 0.9.10 (fixes rhbz#2115175) * Sat Jul 23 2022 Fedora Release Engineering - 0.9.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.9.9-2 - Rebuilt for Python 3.11 * Thu Feb 10 2022 Ankur Sinha (Ankur Sinha Gmail) - 0.9.9-1 - feat: update to 0.9.9 (fixes rhbz#2048042) * Sat Jan 22 2022 Fedora Release Engineering - 0.9.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Dec 22 2021 Ankur Sinha - 0.9.8-1 - Update to latest patch release - Use pyproject macros * Fri Jul 23 2021 Fedora Release Engineering - 0.9.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.9.6-2 - Rebuilt for Python 3.10 * Sun Mar 28 2021 Ankur Sinha - 0.9.6-1 - Update to latest release - Update patch * Wed Jan 27 2021 Fedora Release Engineering - 0.9.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Oct 01 2020 Ankur Sinha - 0.9.5-1 - Update to new release * Wed Jul 29 2020 Fedora Release Engineering - 0.9.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.9.4-4 - Rebuilt for Python 3.9 * Fri Jan 31 2020 Fedora Release Engineering - 0.9.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.9.4-2 - Rebuilt for Python 3.8.0rc1 (#1748018) * Sat Aug 31 2019 Ankur Sinha - 0.9.4-1 - Update to new version * Mon Aug 19 2019 Miro Hrončok - 0.9.3-3 - Rebuilt for Python 3.8 * Sat Jul 27 2019 Fedora Release Engineering - 0.9.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Jul 19 2019 Ankur Sinha - 0.9.3-1 - Update to new version * Sun Feb 03 2019 Fedora Release Engineering - 0.8.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 0.8.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.8.7-2 - Rebuilt for Python 3.7 * Fri Mar 02 2018 Filip Szymański - 0.8.7-1 - Update to 0.8.7 * Fri Feb 09 2018 Fedora Release Engineering - 0.8.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Dec 22 2017 Filip Szymański - 0.8.6-2 - Copy muttrc file in %%prep section * Thu Dec 21 2017 Filip Szymański - 0.8.6-1 - Initial release ## END: Generated by rpmautospec