From 8f16fc9d24062f1d4bec44194ca0b4748c29d3fdc6ed4f8ca342d334a60acc79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Mon, 13 Feb 2017 09:22:53 +0000 Subject: [PATCH] Accepting request 456646 from home:WernerFink New package urlscan which is a smart replacment for urlview OBS-URL: https://build.opensuse.org/request/show/456646 OBS-URL: https://build.opensuse.org/package/show/utilities/urlscan?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++++ .gitignore | 1 + muttrc | 6 +++++ urlscan-0.8.3.tar.gz | 3 +++ urlscan.changes | 5 ++++ urlscan.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 98 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 muttrc create mode 100644 urlscan-0.8.3.tar.gz create mode 100644 urlscan.changes create mode 100644 urlscan.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/muttrc b/muttrc new file mode 100644 index 0000000..81c5d8d --- /dev/null +++ b/muttrc @@ -0,0 +1,6 @@ +# +# Integrate this into your ~/.muttrc +# to use urlscan instead of urlview +# +macro index,pager \cb |urlscan\n +macro attach,compose \cb |urlscan\n diff --git a/urlscan-0.8.3.tar.gz b/urlscan-0.8.3.tar.gz new file mode 100644 index 0000000..80e479b --- /dev/null +++ b/urlscan-0.8.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4e6bffcb762fc0406f5932a7a27b5d624e6f1b0bd2c6b785573b911b86c73486 +size 22532 diff --git a/urlscan.changes b/urlscan.changes new file mode 100644 index 0000000..e90f80b --- /dev/null +++ b/urlscan.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Feb 13 08:12:10 UTC 2017 - werner@suse.de + +- Inital package urlscan 0.8.3 which is an replacment for urlview + diff --git a/urlscan.spec b/urlscan.spec new file mode 100644 index 0000000..460a5a9 --- /dev/null +++ b/urlscan.spec @@ -0,0 +1,60 @@ +# +# spec file for package urlscan +# +# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + +Name: urlscan +Version: 0.8.3 +Release: 0 +License: GPL-2.0 +Summary: An other URL extractor/viewer +Url: https://github.com/firecat53/urlscan +Group: Productivity/Networking/Web/Browsers +Source0: https://github.com/firecat53/urlscan/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source1: muttrc +Requires: python-urwid +BuildRequires: python-devel +BuildRequires: python-setuptools +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + + +%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 +python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} +rm -rf %{buildroot}/usr/share/doc/%{name}* +mkdir -p %{buildroot}%{_defaultdocdir}/%{name} +install -m 0644 %{S:1} %{buildroot}%{_defaultdocdir}/%{name} + +%files +%defattr(-,root,root) +%doc README.rst COPYING +%{_bindir}/%{name} +%{python_sitelib}/* +%{_mandir}/man1/%{name}.1.gz + +%changelog