2017-02-13 09:22:53 +00:00
|
|
|
#
|
|
|
|
# spec file for package urlscan
|
|
|
|
#
|
2020-03-13 07:39:09 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2017-02-13 09:22:53 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-03-13 07:39:09 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-02-13 09:22:53 +00:00
|
|
|
#
|
|
|
|
|
2017-03-13 07:13:18 +00:00
|
|
|
|
2017-02-13 09:22:53 +00:00
|
|
|
Name: urlscan
|
2020-08-07 09:22:01 +00:00
|
|
|
Version: 0.9.5
|
2017-02-13 09:22:53 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: An other URL extractor/viewer
|
2018-12-12 10:03:57 +00:00
|
|
|
License: GPL-2.0-or-later
|
2017-02-13 09:22:53 +00:00
|
|
|
Group: Productivity/Networking/Web/Browsers
|
2020-03-13 07:39:09 +00:00
|
|
|
URL: https://github.com/firecat53/urlscan
|
2017-02-13 09:22:53 +00:00
|
|
|
Source0: https://github.com/firecat53/urlscan/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
Source1: muttrc
|
2020-03-13 07:39:09 +00:00
|
|
|
Requires: python3
|
|
|
|
Requires: python3-base
|
2018-12-12 10:03:57 +00:00
|
|
|
Requires: python3-urwid
|
2020-03-13 07:39:09 +00:00
|
|
|
BuildRequires: python3-base
|
2018-12-12 10:03:57 +00:00
|
|
|
BuildRequires: python3-devel
|
2020-03-13 07:39:09 +00:00
|
|
|
BuildRequires: python3-rpm-macros
|
2018-12-12 10:03:57 +00:00
|
|
|
BuildRequires: python3-setuptools
|
2017-02-13 09:22:53 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2020-03-13 07:39:09 +00:00
|
|
|
%define python_flavor python3
|
2017-02-13 09:22:53 +00:00
|
|
|
|
|
|
|
%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
|
2018-12-12 10:03:57 +00:00
|
|
|
python3 setup.py build
|
2017-02-13 09:22:53 +00:00
|
|
|
|
|
|
|
%install
|
2018-12-12 10:03:57 +00:00
|
|
|
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2017-02-13 09:22:53 +00:00
|
|
|
rm -rf %{buildroot}/usr/share/doc/%{name}*
|
|
|
|
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}
|
|
|
|
install -m 0644 %{S:1} %{buildroot}%{_defaultdocdir}/%{name}
|
2020-03-13 07:39:09 +00:00
|
|
|
rm -rvf %{buildroot}%{python_sitelib}/%{name}-%{version}-*-info
|
2017-02-13 09:22:53 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2018-12-12 10:22:27 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc README.rst
|
2017-02-13 09:22:53 +00:00
|
|
|
%{_bindir}/%{name}
|
2020-03-13 07:39:09 +00:00
|
|
|
%{python_sitelib}/%{name}
|
2017-02-13 09:22:53 +00:00
|
|
|
%{_mandir}/man1/%{name}.1.gz
|
2017-03-13 07:13:18 +00:00
|
|
|
%doc %{_defaultdocdir}/%{name}/muttrc
|
2017-02-13 09:22:53 +00:00
|
|
|
|
|
|
|
%changelog
|