Update to urlscan 1.0.0

OBS-URL: https://build.opensuse.org/package/show/utilities/urlscan?expand=0&rev=28
This commit is contained in:
Dr. Werner Fink 2023-06-02 13:55:23 +00:00 committed by Git OBS Bridge
parent 254f902016
commit 3944d7be8e
4 changed files with 57 additions and 32 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0fbaf7f820fc6ff20c6f1a429c98cb240f1da7eabceed5e3d88740558e81cd2d
size 34263

3
urlscan-1.0.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b12da2c3ee45ae21c80eed2fc40866b3b0b82a39e70ce1ad458b65af7334728a
size 34313

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Fri Jun 2 13:50:51 UTC 2023 - Dr. Werner Fink <werner@suse.de>
- Update to urlscan 1.0.0
* Fix search with -c flag. Fixes #131.
* Add support for IPv6 URLs. Closes #127
* Mark items in url queue with a *
* Add version flag
* Update to pyproject.toml/hatch for builds
- Switch over to flavoured build
* Is there any way to have one major package e.g. for repeating
docs for the various flavoured sub packages?
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Dec 6 13:06:46 UTC 2022 - Dirk Müller <dmueller@suse.com> Tue Dec 6 13:06:46 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package urlscan # spec file for package urlscan
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -18,7 +18,7 @@
%define python_flavor python3 %define python_flavor python3
Name: urlscan Name: urlscan
Version: 0.9.10 Version: 1.0.0
Release: 0 Release: 0
Summary: An other URL extractor/viewer Summary: An other URL extractor/viewer
License: GPL-2.0-or-later License: GPL-2.0-or-later
@ -26,16 +26,22 @@ Group: Productivity/Networking/Web/Browsers
URL: https://github.com/firecat53/urlscan URL: https://github.com/firecat53/urlscan
Source0: https://github.com/firecat53/urlscan/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz Source0: https://github.com/firecat53/urlscan/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: muttrc Source1: muttrc
BuildRequires: %{python_module base}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module hatch_vcs}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python3-base BuildRequires: python-rpm-macros
BuildRequires: python3-devel
BuildRequires: python3-rpm-macros
BuildRequires: python3-setuptools
BuildRequires: sed BuildRequires: sed
Requires: python3 Recommends: %{name}-doc = %{version}
Requires: python3-base Requires: %{python_module base}
Requires: python3-urwid Requires: %{python_module urwid >= 1.2.1}
BuildArch: noarch BuildArch: noarch
%global myname %name
%python_subpackages
%description %description
The urlscan utility displays URLs found in an email message with The urlscan utility displays URLs found in an email message with
@ -45,33 +51,39 @@ quoted-printable and base64 encoding.
%prep %prep
%setup -q %setup -q
install -m 0644 %{SOURCE1} muttrc
%build %build
%python3_build SETUPTOOLS_SCM_PRETEND_VERSION="%{version}"
export SETUPTOOLS_SCM_PRETEND_VERSION
%pyproject_wheel
%install %install
%python3_install %pyproject_install
mkdir -p %{buildroot}%{_defaultdocdir}/%{name} %python_expand mkdir -p %{buildroot}%{_defaultdocdir}/%{$python_prefix}-%{myname}
if test -e %{buildroot}%{_datadir}/doc/%{name}* if test -e %{buildroot}%{_datadir}/doc/%{myname}*
then then
rm -vf %{buildroot}%{_datadir}/doc/%{name}*/COPYING rm -f %{buildroot}%{_datadir}/doc/%{myname}*/LICENSE
mv %{buildroot}%{_datadir}/doc/%{name}*/* \
%{buildroot}%{_defaultdocdir}/%{name}/
fi fi
rm -rf %{buildroot}%{_datadir}/doc/%{name}* rm -rf %{buildroot}%{_datadir}/doc/%{name}*
install -m 0644 %{SOURCE1} %{buildroot}%{_defaultdocdir}/%{name} %python_clone -a %{buildroot}%{_bindir}/%{myname}
chmod 755 %{buildroot}%{python_sitelib}/%{name}/__main__* %python_clone -a %{buildroot}%{_mandir}/man1/%{myname}.1
sed -ri '1 { s@(/usr/bin/)env *@\1@ }' %{buildroot}%{python_sitelib}/%{name}/__main__* %python_expand chmod 755 %{buildroot}%{$python_sitelib}/%{myname}/__main__*
%fdupes %{buildroot} %python_expand sed -ri '1 { s@(/usr/bin/)env *@\1@ }' %{buildroot}%{$python_sitelib}/%{myname}/__main__*
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %post
%license COPYING %python_install_alternative %{myname}
%{_bindir}/%{name}
%{python_sitelib}/%{name} %postun
%{python_sitelib}/%{name}-%{version}-py*.egg-info %python_uninstall_alternative %{myname}
%{_mandir}/man1/%{name}.1%{?ext_man}
%dir %{_defaultdocdir}/%{name}/ %files %{python_files}
%doc %{_defaultdocdir}/%{name}/muttrc %python_alternative %{_bindir}/%{myname}
%doc %{_defaultdocdir}/%{name}/README.md %python_alternative %{_mandir}/man1/%{myname}.1%{?ext_man}
%{python_sitelib}/%{myname}
%{python_sitelib}/%{myname}-%{version}*-info
%license LICENSE
%doc README.md muttrc
%changelog %changelog