import urlview-0.9-31.20131022git08767a.el9
This commit is contained in:
commit
530c52a20a
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
SOURCES/urlview-08767a.tar.gz
|
1
.urlview.metadata
Normal file
1
.urlview.metadata
Normal file
@ -0,0 +1 @@
|
||||
7ef177d1f4a619ee70a08033e214c28877e93e1e SOURCES/urlview-08767a.tar.gz
|
91
SOURCES/urlview-default.patch
Normal file
91
SOURCES/urlview-default.patch
Normal file
@ -0,0 +1,91 @@
|
||||
diff -up urlview/url_handler.sh.default urlview/url_handler.sh
|
||||
--- urlview/url_handler.sh.default 2013-10-23 05:08:01.000000000 +0200
|
||||
+++ urlview/url_handler.sh 2015-04-22 11:04:42.247546697 +0200
|
||||
@@ -28,15 +28,15 @@
|
||||
# VT: Launch in the same terminal
|
||||
|
||||
# The lists of programs to be executed are
|
||||
-https_prgs="/usr/X11R6/bin/netscape:XW /usr/bin/lynx:XT"
|
||||
-http_prgs="/usr/bin/lynx:XT /usr/X11R6/bin/netscape:XW"
|
||||
+https_prgs="/usr/bin/htmlview:XW /usr/bin/firefox:XW /usr/bin/seamonkey:XW /usr/bin/konqueror:XW /usr/bin/epiphany:XW /usr/bin/links:XT /usr/bin/lynx:XT"
|
||||
+http_prgs="/usr/bin/htmlview:XW /usr/bin/firefox:XW /usr/bin/seamonkey:XW /usr/bin/konqueror:XW /usr/bin/epiphany:XW /usr/bin/links:XT /usr/bin/lynx:XT"
|
||||
mailto_prgs="/usr/bin/mutt:VT /usr/bin/elm:VT /usr/bin/pine:VT /usr/bin/mail:VT"
|
||||
-gopher_prgs="/usr/bin/lynx:XT /usr/bin/gopher:XT"
|
||||
-ftp_prgs="/usr/bin/lynx:XT /usr/bin/ncftp:XT"
|
||||
+gopher_prgs="/usr/bin/lynx:XT"
|
||||
+ftp_prgs="/usr/bin/ncftp:XT /usr/bin/wget:XT /usr/bin/lynx:XT"
|
||||
|
||||
# Program used as an xterm (if it doesn't support -T you'll need to change
|
||||
# the command line in getprg)
|
||||
-XTERM=/usr/X11R6/bin/xterm
|
||||
+XTERM=/usr/bin/xterm
|
||||
|
||||
|
||||
###########################################################################
|
||||
@@ -100,9 +100,7 @@ gopher)
|
||||
prg=`getprg $gopher_prgs`
|
||||
;;
|
||||
*)
|
||||
- echo "Unknown URL type. Please report URL and viewer to:"
|
||||
- echo "joey@debian.org."
|
||||
- echo -n "Press enter to continue."; read x
|
||||
+ echo -n "Unknown URL type. Press enter to continue."; read x
|
||||
exit
|
||||
;;
|
||||
esac
|
||||
diff -up urlview/urlview.c.default urlview/urlview.c
|
||||
--- urlview/urlview.c.default 2013-10-23 05:08:01.000000000 +0200
|
||||
+++ urlview/urlview.c 2015-04-22 11:04:42.248546700 +0200
|
||||
@@ -50,8 +50,8 @@
|
||||
#include "quote.h"
|
||||
|
||||
#define DEFAULT_REGEXP "(((http|https|ftp|gopher)|mailto):(//)?[^ <>\"\t]*|(www|ftp)[0-9]?\\.[-a-z0-9.]+)[^ .,;\t\n\r<\">\\):]?[^, <>\"\t]*[^ .,;\t\n\r<\">\\):]"
|
||||
-#define DEFAULT_COMMAND "/etc/urlview/url_handler.sh %s"
|
||||
-#define SYSTEM_INITFILE "/etc/urlview/system.urlview"
|
||||
+#define DEFAULT_COMMAND "/usr/bin/url_handler.sh %s"
|
||||
+#define SYSTEM_INITFILE "/etc/urlview.conf"
|
||||
|
||||
#define OFFSET 2
|
||||
#define PAGELEN (LINES - 1 - OFFSET)
|
||||
diff -up urlview/urlview.conf.suse.default urlview/urlview.conf.suse
|
||||
--- urlview/urlview.conf.suse.default 2013-10-23 05:08:01.000000000 +0200
|
||||
+++ urlview/urlview.conf.suse 2015-04-22 11:04:42.248546700 +0200
|
||||
@@ -4,6 +4,6 @@
|
||||
#
|
||||
# The defaults are shown here:
|
||||
#
|
||||
-# REGEXP (((https?|ftp|gopher)://|(mailto|file|news):)[^' \t<>"]+|(www|web|w3)\.[-a-z0-9.]+)[^' \t.,;<>"\):]
|
||||
-# COMMAND url_handler.sh '%s'
|
||||
+# REGEXP (((http|https|ftp|gopher)|mailto):(//)?[^ <>\"\t]*|(www|ftp)[0-9]?\\.[-a-z0-9.]+)[^ .,;\t\n\r<\">\\):]?[^, <>\"\t]*[^ .,;\t\n\r<\">\\):]
|
||||
+# COMMAND /usr/bin/url_handler.sh %s
|
||||
#
|
||||
diff -up urlview/urlview.man.default urlview/urlview.man
|
||||
--- urlview/urlview.man.default 2013-10-23 05:08:01.000000000 +0200
|
||||
+++ urlview/urlview.man 2015-04-22 11:05:51.930740825 +0200
|
||||
@@ -35,7 +35,7 @@ attempts to read
|
||||
upon startup. If this file
|
||||
doesn't exist, it will try to read a system wide file
|
||||
in
|
||||
-.IR /etc/urlview/system.urlview .
|
||||
+.IR /etc/urlview.conf .
|
||||
There are two configuration commands (order does not matter):
|
||||
.TP
|
||||
REGEXP \fIregexp\fP
|
||||
@@ -63,7 +63,7 @@ with the URL that was requested, otherwi
|
||||
the COMMAND string. The default COMMAND is:
|
||||
.br
|
||||
.sp
|
||||
-/etc/urlview/url_handler.sh
|
||||
+/usr/bin/url_handler.sh
|
||||
.PP
|
||||
.B Note:
|
||||
You should
|
||||
@@ -84,7 +84,7 @@ QUITONLAUNCH
|
||||
Will cause urlview to quit after you launch a URL.
|
||||
.SH FILES
|
||||
.PP
|
||||
-.IP "/etc/urlview/system.urlview"
|
||||
+.IP "/etc/urlview.conf"
|
||||
system-wide urlview configuration file
|
||||
.IP "~/.urlview"
|
||||
urlview configuration file
|
147
SPECS/urlview.spec
Normal file
147
SPECS/urlview.spec
Normal file
@ -0,0 +1,147 @@
|
||||
%global gitdate 20131022
|
||||
%global gitfullrev 08767aa863cd27d1755ba0aff65b8cc1a0c1446a
|
||||
%global gitrev %(c=%{gitfullrev}; echo ${c:0:6})
|
||||
Name: urlview
|
||||
Version: 0.9
|
||||
Release: 31.%{gitdate}git%{gitrev}%{?dist}
|
||||
Summary: URL extractor/launcher
|
||||
|
||||
License: GPLv2+
|
||||
URL: https://github.com/sigpipe/urlview
|
||||
Source0: https://github.com/sigpipe/urlview/archive/%{gitrev}/urlview-%{gitrev}.tar.gz
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
BuildRequires: ncurses-devel
|
||||
|
||||
# mutt packages before 5:1.5.16-2 included urlview
|
||||
Conflicts: mutt < 5:1.5.16-2
|
||||
|
||||
Patch1: urlview-default.patch
|
||||
|
||||
%description
|
||||
urlview is a screen oriented program for extracting URLs from text
|
||||
files and displaying a menu from which you may launch a command to
|
||||
view a specific item.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{gitfullrev}
|
||||
%patch1 -p1 -b .default
|
||||
|
||||
%build
|
||||
%configure
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_mandir}/man{1,5}}
|
||||
install -p -m644 urlview.conf.suse $RPM_BUILD_ROOT%{_sysconfdir}/urlview.conf
|
||||
install -p urlview url_handler.sh $RPM_BUILD_ROOT%{_bindir}
|
||||
install -p -m644 urlview.man $RPM_BUILD_ROOT%{_mandir}/man1/urlview.1
|
||||
echo '.so man1/urlview.1' > $RPM_BUILD_ROOT%{_mandir}/man5/urlview.conf.5
|
||||
echo '.so man1/urlview.1' > $RPM_BUILD_ROOT%{_mandir}/man1/url_handler.sh.1
|
||||
|
||||
%files
|
||||
%doc AUTHORS ChangeLog COPYING README sample.urlview
|
||||
%config(noreplace) %{_sysconfdir}/urlview.conf
|
||||
%{_bindir}/urlview
|
||||
%{_bindir}/url_handler.sh
|
||||
%{_mandir}/man1/urlview.1*
|
||||
%{_mandir}/man1/url_handler.sh.1*
|
||||
%{_mandir}/man5/urlview.conf.5*
|
||||
|
||||
%changelog
|
||||
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.9-31.20131022git08767a
|
||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||
Related: rhbz#1991688
|
||||
|
||||
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.9-30.20131022git08767a
|
||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-29.20131022git08767a
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-28.20131022git08767a
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-27.20131022git08767a
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-26.20131022git08767a
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-25.20131022git08767a
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-24.20131022git08767a
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-23.20131022git08767a
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-22.20131022git08767a
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-21.20131022git08767a
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-20.20131022git08767a
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-19.20131022git08767a
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-18.20131022git08767a
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Wed Apr 24 2015 Miroslav Lichvar <mlichvar@redhat.com> 0.9-17.20131022git08767a
|
||||
- update to 20131022git08767a
|
||||
|
||||
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-16.20121210git6cfcad
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-15.20121210git6cfcad
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-14.20121210git6cfcad
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Fri May 24 2013 Miroslav Lichvar <mlichvar@redhat.com> 0.9-13.20121210git6cfcad
|
||||
- add man page link for url_handler.sh
|
||||
- fix default paths in man page
|
||||
|
||||
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-12.20121210git6cfcad
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Fri Dec 14 2012 Miroslav Lichvar <mlichvar@redhat.com> 0.9-11.20121210git6cfcad
|
||||
- update to 20121210git6cfcad
|
||||
- remove obsolete macros
|
||||
|
||||
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Tue Sep 29 2009 Miroslav Lichvar <mlichvar@redhat.com> 0.9-7
|
||||
- add man page link for urlview.conf (#526162)
|
||||
|
||||
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9-4
|
||||
- Autorebuild for GCC 4.3
|
||||
|
||||
* Wed Aug 22 2007 Miroslav Lichvar <mlichvar@redhat.com> 0.9-3
|
||||
- update license tag
|
||||
|
||||
* Fri Jun 29 2007 Miroslav Lichvar <mlichvar@redhat.com> 0.9-2
|
||||
- add conflict with mutt, fix URL (#245951)
|
||||
|
||||
* Wed Jun 27 2007 Miroslav Lichvar <mlichvar@redhat.com> 0.9-1
|
||||
- split from mutt package
|
Loading…
Reference in New Issue
Block a user