- update to version 0.9.9: * Bugfix in f-string * Updated setup.py after tagging previous version - update in version 0.9.8: * Update TLD list * Fix #118, crash on navigating to non-existant line * Pylint fixes * Move to subprocess run instead of call and Popen * Switch to f-strings OBS-URL: https://build.opensuse.org/request/show/950004 OBS-URL: https://build.opensuse.org/package/show/utilities/urlscan?expand=0&rev=23
66 lines
2.1 KiB
RPMSpec
66 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package urlscan
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define python_flavor python3
|
|
Name: urlscan
|
|
Version: 0.9.9
|
|
Release: 0
|
|
Summary: An other URL extractor/viewer
|
|
License: GPL-2.0-or-later
|
|
Group: Productivity/Networking/Web/Browsers
|
|
URL: https://github.com/firecat53/urlscan
|
|
Source0: https://github.com/firecat53/urlscan/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
Source1: muttrc
|
|
BuildRequires: python3-base
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-rpm-macros
|
|
BuildRequires: python3-setuptools
|
|
Requires: python3
|
|
Requires: python3-base
|
|
Requires: python3-urwid
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
The urlscan utility displays URLs found in an email message with
|
|
the respective context. Selecting an URL uses the Python webbrowser
|
|
module to determine which browser to open. It also supports
|
|
quoted-printable and base64 encoding.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
python3 setup.py build
|
|
|
|
%install
|
|
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
rm -rf %{buildroot}%{_datadir}/doc/%{name}*
|
|
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}
|
|
install -m 0644 %{SOURCE1} %{buildroot}%{_defaultdocdir}/%{name}
|
|
rm -rvf %{buildroot}%{python_sitelib}/%{name}-%{version}-*-info
|
|
|
|
%files
|
|
%license COPYING
|
|
%{_bindir}/%{name}
|
|
%{python_sitelib}/%{name}
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
|
%doc %{_defaultdocdir}/%{name}/muttrc
|
|
%dir %{_docdir}/urlscan
|
|
|
|
%changelog
|