From f1414513de969e0a52175a3fcb8b516a48dfde0f83fec57cc744706d7aecd276 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Mon, 25 Nov 2024 07:45:55 +0000 Subject: [PATCH] Update to urlscan 1.0.6 OBS-URL: https://build.opensuse.org/package/show/utilities/urlscan?expand=0&rev=40 --- .gitattributes | 23 +++++ .gitignore | 1 + muttrc | 6 ++ urlscan-1.0.2.tar.gz | 3 + urlscan-1.0.3.tar.gz | 3 + urlscan-1.0.6.tar.gz | 3 + urlscan.changes | 218 +++++++++++++++++++++++++++++++++++++++++++ urlscan.spec | 81 ++++++++++++++++ 8 files changed, 338 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 muttrc create mode 100644 urlscan-1.0.2.tar.gz create mode 100644 urlscan-1.0.3.tar.gz create mode 100644 urlscan-1.0.6.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-1.0.2.tar.gz b/urlscan-1.0.2.tar.gz new file mode 100644 index 0000000..5ed5b89 --- /dev/null +++ b/urlscan-1.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e4c7d29a8a1b24a2829bb6a9eb87d62f58ae27a0118d0a1d87cd3596e2f17dd6 +size 35773 diff --git a/urlscan-1.0.3.tar.gz b/urlscan-1.0.3.tar.gz new file mode 100644 index 0000000..865861e --- /dev/null +++ b/urlscan-1.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f9c0b6067b1327059bf6298bd6f4834148a3a71bb9864943c0cb1d6872de5c6c +size 35837 diff --git a/urlscan-1.0.6.tar.gz b/urlscan-1.0.6.tar.gz new file mode 100644 index 0000000..f553455 --- /dev/null +++ b/urlscan-1.0.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:078ef81afc2276ace93433218b36a1a0bd582f62313d2d0d28f78571c40493c3 +size 36783 diff --git a/urlscan.changes b/urlscan.changes new file mode 100644 index 0000000..3870a39 --- /dev/null +++ b/urlscan.changes @@ -0,0 +1,218 @@ +------------------------------------------------------------------- +Mon Nov 25 07:43:42 UTC 2024 - Dr. Werner Fink + +- Update to urlscan 1.0.6 + * Bugfix in GitHub Action + * Github action update to release to pypi and github on tag push + and release to testpypi on commit. + * Keybindings for page up/down + +------------------------------------------------------------------- +Wed Aug 28 15:04:31 UTC 2024 - Andrea Manzini + +- update to 1.0.3: + * Feature suggestion: Jump directly to next/previous URL (#151) + * Add fallback-version to pyproject.toml + * Fix flake python version + +------------------------------------------------------------------- +Wed May 1 16:56:56 UTC 2024 - Andrea Manzini + +- update to 1.0.2: + * Correct escaped pipe character in urlscan.1 + * fix: patch invalid escape sequence in regex argument help text to support py3.12 + * read me update - neomutt term color compatability + * Fix for newer urwid versions + +------------------------------------------------------------------- +Wed Jul 26 18:56:39 UTC 2023 - Dirk Müller + +- update to 1.0.1: + * Add man page to package + +------------------------------------------------------------------- +Mon Jun 12 12:26:37 UTC 2023 - Dr. Werner Fink + +- Also remove left over curly braces at the end of require lines + +------------------------------------------------------------------- +Mon Jun 12 11:54:29 UTC 2023 - Dr. Werner Fink + +- Removed invalid Recommends line + +------------------------------------------------------------------- +Mon Jun 12 11:45:12 UTC 2023 - Dr. Werner Fink + +- Reintroduce removing /usr/bin/env from shebang lines as well as + duplicate files them selfs + +------------------------------------------------------------------- +Mon Jun 12 11:09:31 UTC 2023 - Dominique Leuenberger + +- Do not package this as multi-python flavors: urlscan is a simple + leaf application written in python. Its python code is not + consumed by others. + +------------------------------------------------------------------- +Fri Jun 2 13:50:51 UTC 2023 - Dr. Werner Fink + +- 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 + +- update to 0.9.10: + * Add "*" to allowed URL characters. Fix #125 + * Strip whitespace from URLs. Fixes #124 + * Redo redirection of sterr/stdout. Fix #122 + +------------------------------------------------------------------- +Thu Aug 4 13:26:52 UTC 2022 - Dr. Werner Fink + +- Do not remove egg info anymore as the pythonm3 interpreter + does not work anymore without this information (boo#1202137) + +------------------------------------------------------------------- +Sun Jan 30 15:23:36 UTC 2022 - Avinesh Kumar + +- 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 + +------------------------------------------------------------------- +Fri Oct 8 14:30:28 UTC 2021 - Paolo Stivanin + +- update to 0.9.7: + * User-option -W --whitespace-off: remove blank lines and ellipses + * Update documentation for feature --whitespace-off + * Correct regex example in urlscan.1 + * Sort and align docstrings + +------------------------------------------------------------------- +Wed May 12 22:03:24 UTC 2021 - Dirk Müller + +- update to 0.9.6: + * Python 3.6+ required + * Convert to newer email.message.EmailMessage format for processing. Closes #98 + * Hopefully fix #105. Escapes every "&" in the URL + * Attempt --run-safe implementation + * Fixes #106 + * Scan a selection of email headers for URLs. Closes #97. + * Add option for custom regex. Closes #79. + * Allow $ as an acceptable trailing character + * Fix urwid reverse error. Thanks to @pavoljuhas. Closes #99 + +------------------------------------------------------------------- +Tue Jul 28 09:44:43 UTC 2020 - Martin Rey + +- Update to version 0.9.5 + * Change shebang to specifically call python3 + * Add --width flag to change displayed width. Closes #92. + * Update tlds and copyright dates + * Remove workaround for fixed python webbrowser bug (#94) + * Add -R option to reverse URL/context output. Closes #90 + * Add --single option to quit after opening/copying first link. + Closes #95 + * Support wl-clipboard. Resolve #88. + +------------------------------------------------------------------- +Fri Mar 13 06:10:44 UTC 2020 - Dr. Werner Fink + +- Update to version 0.9.4 + * Remove Python 2 compatibility +- Update to version 0.9.3 + * Cycle through opening links with webbrowser module, xdg-open or --run argument + * Add option to copy to primary selection or clipboard. Fix #87 + * Generate new config file using command line switch instead of keybinding + * Allow remapping a key to open url in addition to space and enter + * Show help menu with F1 and show dynamic keybindings + * Allow editing key bindings in config.json. Fix #72. +- Set python flavour spec file macro to get the rpm pythin macros defined +- Remove egg information tree as we require python3-urwid + +------------------------------------------------------------------- +Thu Feb 7 07:46:49 UTC 2019 - Dr. Werner Fink + +- Update to version 0.9.2 + * Add shortcut to copy URL to clipboard (primary). + * Add option to pipe URL into external command. + +------------------------------------------------------------------- +Wed Dec 12 10:15:06 UTC 2018 - Dr. Werner Fink + +- Update to version 0.9.1 + * Add incremental search feature. (#13) + * Other misc bug fixes/enhancements (PR #74) + * Fix crash when URL list not visible. Closes #68 + * Fix unescape bug. Closes #67 + * Bugfix in browser handling. Fixes #70 + * Fix crash caused by webbrowser module bug. + * PEP8 fixes/modifications + * Update tld list + * Fix up arrow bug. Closes #66 + * Add optional config file for editing/adding palettes. + * Simplify palette variable to only used values. Cycle through available palettes + * Merge branch 'runtime_palette_switch' of + https://github.com/machinedgod/urlscan into machinedgod-runtime_palette_switch + * Fix crash when BROWSER not set. Closes #60, Fixes #63 + * Don't handle mouse events. Fixes #65. + * Hitting 'b' key now switches palettes + * Allow https URLs for images + * Add #51. Execute arbitrary expression for URL in place of opening browser. + * More fixes for #48. Refresh screen after text browser use + * Fix #49. Deduplication display issue. + * Fix #50. Detect and add ability to remove escape char \ from URLs. + * Fix #48. Prevent loading thread from affecting screen when using + * terminal browsers. + * Add g/G as top/bottom keyboard shortcuts. Fix #47 + * Update minimum urwid version + * Type number to jump to URL + * Bugfix + +------------------------------------------------------------------- +Wed Dec 12 10:02:50 UTC 2018 - Dr. Werner Fink + +- Move to python3 (boo#1119223) + +------------------------------------------------------------------- +Tue Jul 4 06:19:46 UTC 2017 - werner@suse.de + +- Update to version 0.8.6 + * Fix tag mismatch in setup.py + * Fix #27 (URLs in markdown links) + * Tweak email address recognition + * Add ability to toggle context view + * Cleanup, commenting, add keyboard hints in the header + * Add shortening and toggling shortening of URLs + * Restructure URLChooser for current urwid best practices + * Update tlds list + * Replace AttrWrap (deprecated) with AttrMap + * Highlight selected URL. Fix #17 + * Implement #21 (Option to remove duplicate URLs) + +------------------------------------------------------------------- +Mon Mar 13 07:23:10 UTC 2017 - werner@suse.de + +- Reflect change in build system and/or rpmbuild now adding the package + default documentation tree only as directory now + +------------------------------------------------------------------- +Mon Feb 13 08:12:10 UTC 2017 - werner@suse.de + +- Inital package urlscan 0.8.3 which is an replacement for urlview + diff --git a/urlscan.spec b/urlscan.spec new file mode 100644 index 0000000..820e463 --- /dev/null +++ b/urlscan.spec @@ -0,0 +1,81 @@ +# +# spec file for package urlscan +# +# Copyright (c) 2024 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 pythons python3 +Name: urlscan +Version: 1.0.6 +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: fdupes +BuildRequires: python-rpm-macros +BuildRequires: python3-base +BuildRequires: python3-devel +BuildRequires: python3-hatch_vcs +BuildRequires: python3-hatchling +BuildRequires: python3-pip +BuildRequires: python3-setuptools +BuildRequires: python3-wheel +BuildRequires: sed +Requires: python3-base +Requires: python3-urwid >= 1.2.1 +BuildArch: noarch +%global myname %name + +%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 +install -m 0644 %{SOURCE1} muttrc + +%build +SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" +export SETUPTOOLS_SCM_PRETEND_VERSION +%pyproject_wheel + +%install +%pyproject_install +%{python_expand mkdir -p %{buildroot}%{_defaultdocdir}/%{$python_prefix}-%{myname} + chmod 755 %{buildroot}%{$python_sitelib}/%{name}/__main__* + sed -ri '1 { s@(/usr/bin/)env +@\1@ }' %{buildroot}%{$python_sitelib}/%{name}/__main__* + %fdupes %{buildroot}%{$python_sitelib} +} +sed -ri '1 { s@(/usr/bin/)env +@\1@;s@(/python3)\.[[:digit:]]+@\1@ }' %{buildroot}%{_bindir}/%{name} +if test -e %{buildroot}%{_datadir}/doc/%{myname}* +then + rm -f %{buildroot}%{_datadir}/doc/%{myname}*/LICENSE +fi +rm -rf %{buildroot}%{_datadir}/doc/%{name}* + +%files +%{_bindir}/%{myname} +%{_mandir}/man1/%{myname}.1%{?ext_man} +%{python_sitelib}/%{myname} +%{python_sitelib}/%{myname}-%{version}*-info +%license LICENSE +%doc README.md muttrc + +%changelog