#define WithSLang 0 Name: urlview Version: 0.9 Release: ipl8mdk Group: Networking/Other %define CommonSummary A URL extractor/viewer for use with Mutt %if_with slang Summary: %CommonSummary (SLang variant). %else Summary: %CommonSummary (ncurses variant). %endif License: GPL Packager: Ivan Zakharyaschev Requires: url_handler Requires: common-licenses Source: rsync://ftp.mutt.org::mutt/contrib/%name-%version.tar.bz2 # From Debian urlview-0.9-2.1 Source1: %name-0.9-htmlworkaround.debian.txt # From Mdk urlview-0.9-4mdk Patch1: %name-0.9-comma.patch # From Debian urlview-0.9-2.1 Patch3: %name-0.9-sysconf.debian.patch # From RedHat mutt-1.2.5i-17 Patch5: %name-0.9-correct-c.redhat.patch # Automatically added by buildreq on Thu Aug 21 2003 BuildRequires: libOpenSP libncurses-devel libtinfo-devel sgml-tools %if_with slang BuildRequires: libslang-devel %else BuildRequires: libncurses-devel %endif %description %name extracts URLs from a given text file, and presents a menu of URLs to view using a user specified command. %if_with slang (Linked with S-Lang library.) %else (Linked with ncurses library.) %endif %prep %setup %patch1 -p1 -b .comma %patch3 -p1 -b .sysconf %patch5 -p1 -b .correct-c %build %configure %{?_with_slang} %make_build # Generate HTML docs: sgml2html %name.sgml \ && %__mv %name.html %name.bad.html \ && %__install -m0644 %SOURCE1 %name.html \ && cat %name.bad.html >> %name.html %install mkdir -p "$RPM_BUILD_ROOT"{%_bindir,%_mandir/man1,%_sysconfdir/%name} %makeinstall install -p -m644 %name.conf.suse \ "$RPM_BUILD_ROOT"%_sysconfdir/%name/system.%name # link the license %__ln_s -f %_licensedir/GPL-2 COPYING %files %dir %_sysconfdir/%name %config(noreplace) %_sysconfdir/%name/system.%name %_bindir/* %_mandir/man?/* %doc AUTHORS ChangeLog README sample.%name # Hack for symlink ;-) %doc --no-dereference COPYING %doc %name.html %triggerpostun -- %name < 0.9-ipl3mdk moved="$( for f in %_sysconfdir/%name.conf*; do [ -e "$f" ] \ && install -D "$f" "%_sysconfdir/%name/old/${f##*/}" \ && { rm -f "$f"; echo -n "$f "; } done )" if [ "$moved" ]; then echo "Moving $moved to %_sysconfdir/%name/old/" fi %changelog * Thu Sep 18 2003 Ivan Zakharyaschev 0.9-ipl8mdk - split pkg (src): urlview + url_handler; - update BuildReqs; - translate Summary & description into Russian. * Sat Feb 8 2003 Ivan Zakharyaschev 0.9-ipl7mdk - url_handler.sh: + more quotes (to prevent expansion in wrong places; fixes No. 0001108); + accept ./* as file-URL, too (fixes No. 0001098 at http://bugs.altlinux.ru); - spec-file: + drop PreReq on sh-utils, use bash parameter expansion to get the basename. * Sun Nov 3 2002 Ivan Zakharyaschev 0.9-ipl6mdk - rebuild * Mon Apr 15 2002 Dmitry V. Levin 0.9-ipl5mdk - url_handlers: added "file" method (by default, equals to http). - url_handler.sh: added "file" protocol recognition (#0000838). * Thu Apr 11 2002 Ivan Zakharyaschev 0.9-ipl4mdk - url_handler.sh: + clean up (ldv, imz); + extract the program lists to %_sysconfdir/urlview/url_handlers; + include user's configuration from ~/.etc/urlview/url_handlers; + case-insensitive protocol matching (fixes \#824 at bugs.altlinux.ru); - url_handlers: + add mozilla -compose for mailto (fixes \#510 at bugs.altlinux.ru); - spec-file: + maintaining patches is difficult, so use our own source for url_handler.sh; * Thu Nov 29 2001 Ivan Zakharyaschev 0.9-ipl3mdk - put a symlink to GPL-2 from common-licenses instead of the COPYING file - a special directory %_sysconfdir/%name/ to hold both the conf-file and the script to start browsers (since it should be editable by the administrator -- it contains paths and preferences) (debian) - add nohup-mode to start programs in X (debian) - add more url-handlers: + gecko-based HTTP-browsers; + Sylpheed & mailto program (Mutt remains the first); + gFTP client; - documentation in HTML added; - make the url-handler script more flexible (path lists implemented with Bash arrays) - correct C code (redhat) - 2 variants of build: linked either with ncurses (default now) or slang. * Fri Nov 10 2000 Dmitry V. Levin 0.9-ipl2mdk - Fixed paths for browsers. * Thu Oct 12 2000 Dmitry V. Levin 0.9-ipl1mdk - RE adaptions. - Automatically added BuildRequires. * Wed Aug 16 2000 Vincent Danen 0.9-1mdk - 0.9 - include patch to escape commas passed via openURL by * Mon Aug 07 2000 Frederic Lepied 0.8.1-5mdk - automatically added BuildRequires * Fri Jul 28 2000 Frederic Crozat 0.8.1-4mdk - BM + bzipped alpha file * Mon Jul 10 2000 Stefan van der Eijk 0.8.1-3mdk - makeinstall macro - macroszifications * Wed May 24 2000 Chmouel Boudjnah 0.8.1-2mdk - On alpha get a regex.o compiled and linked for alpha. * Mon Apr 03 2000 Daouda Lo 0.8.1-1mdk - fresh release 0.8.1 - added define section in spec - cleanup spec file * Thu Mar 23 2000 Daouda Lo 0.7-6mdk - fix group * Sat Nov 06 1999 John Buswell - Build Release * Wed May 05 1999 Bernhard Rosenkraenzer - Mandrake adaptions * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 3) * Thu Mar 18 1999 Bill Nottingham - strip binary - fix defaults some * Sat Dec 12 1998 Bill Nottingham - initial build