diff --git a/.gitignore b/.gitignore index 3b12fad..48813b4 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,14 @@ /urlscan-0.9.6.tar.gz /urlscan-0.9.8.tar.gz /urlscan-0.9.9.tar.gz +/urlscan-0.9.10.tar.gz +/urlscan-1.0.0.tar.gz +/urlscan-1.0.1.tar.gz +/urlscan-1.0.2.tar.gz +/urlscan-1.0.4.tar.gz +/urlscan-1.0.6.tar.gz +/urlscan-1.0.7.tar.gz +/urlscan-1.0.8.tar.gz +/urlscan-1.0.9.tar.gz +/urlscan-1.1.2.tar.gz +/urlscan-1.1.1.tar.gz diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 0000000..e5d3919 --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,13 @@ +upstream_project_url: https://github.com/firecat53/urlscan +copy_upstream_release_description: false +upstream_tag_template: "{version}" + +jobs: + - job: pull_from_upstream + trigger: release + dist_git_branches: + - fedora-rawhide + - job: koji_build + trigger: commit + dist_git_branches: + - fedora-rawhide diff --git a/README.packit b/README.packit new file mode 100644 index 0000000..68a092a --- /dev/null +++ b/README.packit @@ -0,0 +1,3 @@ +This repository is maintained by packit. +https://packit.dev/ +The file was generated using packit 1.16.2.post1.dev8+g69d783e81. diff --git a/sources b/sources index a3e41d4..19a2282 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (urlscan-0.9.9.tar.gz) = 737265f8ff6a38f8826100ece557c6f08480074c42e31997a4b8ec92e5b045192192d8b33baac9602910f384142b7ee70ad97514b9b18e64ce0a1e01983a062d +SHA512 (urlscan-1.1.2.tar.gz) = 2bf008a8ce60df2a0997f3c2161975578c19e0b130454411f9e97d02c70096c3841492e4607be808cd575c6dd1529c6c82747ccd231b6e56b959f6c5461979e1 diff --git a/urlscan-remove-doc.patch b/urlscan-remove-doc.patch deleted file mode 100644 index 9f33a33..0000000 --- a/urlscan-remove-doc.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -ur urlscan-0.9.8.orig/setup.py urlscan-0.9.8/setup.py ---- urlscan-0.9.8.orig/setup.py 2021-12-22 18:20:36.526135645 +0000 -+++ urlscan-0.9.8/setup.py 2021-12-22 18:22:49.112596528 +0000 -@@ -24,8 +24,7 @@ - 'console_scripts': ['urlscan=urlscan.__main__:main'] - }, - package_data={'urlscan': ['assets/*']}, -- data_files=[('share/doc/urlscan', ['README.md', 'COPYING']), -- ('share/man/man1', ['urlscan.1'])], -+ data_files=[('share/man/man1', ['urlscan.1'])], - license="GPLv2", - install_requires=["urwid>=1.2.1"], - classifiers=[ diff --git a/urlscan.spec b/urlscan.spec index f51bd54..741f4fa 100644 --- a/urlscan.spec +++ b/urlscan.spec @@ -1,16 +1,21 @@ +%global forgeurl https://github.com/firecat53/urlscan + Name: urlscan -Version: 0.9.9 +Version: 1.1.2 Release: %autorelease Summary: Extract and browse the URLs contained in an email (urlview replacement) -License: GPLv2+ -URL: https://github.com/firecat53/%{name} -Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz +%global tag %{version} +%forgemeta + +License: GPL-2.0-or-later +URL: %{forgeurl} +Source0: %{forgesource} Source1: muttrc -Patch0: %{name}-remove-doc.patch BuildArch: noarch BuildRequires: python3-devel +BuildRequires: git-core %description @@ -19,24 +24,33 @@ the current terminal. It is primarily meant as a replacement for urlview. %prep -%autosetup -p1 +%forgeautosetup -S git 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