File urlview.spec of Package urlview

#
# spec file for package urlview (Version 0.9)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           urlview
BuildRequires:  ncurses-devel
Url:            ftp://ftp.mutt.org/pub/mutt/contrib/
License:        GPL v2 or later
Group:          Productivity/Networking/Web/Browsers
AutoReqProv:    on
Version:        0.9
Release:        663
Summary:        An URL extractor/viewer
Source:         urlview-%{version}.tar.bz2
Source1:        skel.urlview
Patch:          urlview-%{version}.dif
Patch1:         url_handler.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
urlview presents a menu of all URLs from a given text file (e.g., a
mail). The user may then view the information located on those URLs.



Authors:
--------
    Michael Elkins <me@cs.hmc.edu>

%prep
%setup
%patch
%patch1

%build
rm -rf regex/
aclocal
automake -a --foreign
autoconf
%{suse_update_config -f}
CC=gcc CFLAGS="-W -Wall -Wstrict-prototypes -Wpointer-arith ${RPM_OPT_FLAGS} -pipe -I. -D_GNU_SOURCE" \
./configure %{_target_cpu}-suse-linux \
	--prefix=/usr \
	--mandir=%{_mandir} \
	--sysconfdir=/etc
make

%install
mkdir -p $RPM_BUILD_ROOT/{etc,usr/share/man/man1}
make DESTDIR=$RPM_BUILD_ROOT install
install -m 755 url_handler.sh.suse $RPM_BUILD_ROOT/usr/bin/url_handler.sh
install -m 644 urlview.conf.suse $RPM_BUILD_ROOT/etc/urlview.conf
install -D -m 644 %{S:1} $RPM_BUILD_ROOT/etc/skel/.urlview

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog README
%config(noreplace) /etc/skel/.urlview
%config /etc/urlview.conf
# maybe a user edits this...
%config /usr/bin/url_handler.sh
/usr/bin/urlview
%doc %{_mandir}/man1/urlview.1*

%changelog
* Wed Dec 05 2007 - ro@suse.de
- moved /etc/skel/.urlview here
* Fri Nov 23 2007 - werner@suse.de
- Make url_handler.sh know about firefox
* Thu Mar 29 2007 - rguenther@suse.de
- Add ncurses-devel BuildRequires.
* Fri May 26 2006 - schwab@suse.de
- Don't strip binaries.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Nov 08 2005 - dmueller@suse.de
- don't build as root
* Mon Dec 03 2001 - poeml@suse.de
- actually use the newly added browsers if they are detected
- bzip2 sources (and save glorious 4 kb)
* Thu Nov 22 2001 - pthomas@suse.de
- Add tests for opera, mozilla, w3m and links to url_handler.sh.
  w3m is preferred for textmode and mozilla as GUI browser.
* Sun Oct 07 2001 - tcrhak@suse.cz
- added -a to automake (needed by automake 1.5-4)
* Thu Nov 16 2000 - cihlar@suse.cz
- added suse_update config
- improved BuildRoot
- fixed file list
* Tue Jul 04 2000 - werner@suse.de
- Switch to urlview 0.9 due to a better quoting of shell escapes
- Not only ` and ' but also quote $ to catch bash syntax $(..)
- Skip \b as a forbidden character
* Thu Jun 29 2000 - werner@suse.de
- Be more secure: Not only ' but also ` and \b are forbidden
  characters.
* Mon Jun 19 2000 - kasal@suse.de
- Added Group: tag
* Fri Jan 28 2000 - kasal@suse.de
- autoconf is neededforbuild
* Tue Jan 25 2000 - werner@suse.de
- Include system regex.h
* Tue Jan 25 2000 - kasal@suse.de
- regexp should never match any string containing single quote char (')
  default regexp and manpage fixed
- fixed REGEXP and COMMAND, the same are hardwired, in default config
  file and in the manpage
- improved url_handler.sh.suse (news:, ftp: w/out ncftp, quoting $url,
  $MAILER)
- fixed declaration warnings
- see mutt.changes
* Tue Jan 25 2000 - werner@suse.de
- Remove i386 object file and use autoconf to avoid linking against
  binary (we use -D_GNU_SOURCE for POSIX regular regexpression)
openSUSE Build Service is sponsored by