-Summary: A URL extractor/viewer for use with Mutt.
+Summary: A URL extractor/viewer for use with Mutt
Name: urlview
Version: 0.7
Release: 3
-Copyright: GPL
+License: GPL
Group: Applications/Internet
-Source: ftp://ftp.cs.hmc.edu/pub/me/urlview-0.7.tar.gz
-Patch: urlview-default.patch
+###### Unknown group!
+Source0: ftp://ftp.cs.hmc.edu/pub/me/%{name}-%{version}.tar.gz
+Patch0: urlview-default.patch
Requires: slang >= 0.99.38, webclient
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-urlview extracts URLs from a given text file, and presents a menu
-of URLs to view using a user specified command.
+urlview extracts URLs from a given text file, and presents a menu of
+URLs to view using a user specified command.
%prep
%setup -q
%patch -p1
%build
-CFLAGS="$RPM_OPT_FLAGS" \
+LDFLAGS="-s"; export LDFLAGS
%configure \
--with-slang
make
%install
rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT/{%{_bindir},%{_mandir}/man1}
+install -d $RPM_BUILD_ROOT/{%{_bindir},%{_mandir}/man1}
+
make install \
- prefix=$RPM_BUILD_ROOT/usr \
+ prefix=$RPM_BUILD_ROOT%{_prefix} \
mandir=$RPM_BUILD_ROOT/%{_mandir} \
bindir=$RPM_BUILD_ROOT/%{_bindir}
install url_handler.sh $RPM_BUILD_ROOT%{_bindir}/url_handler
-strip $RPM_BUILD_ROOT%{_bindir}/urlview
gzip -9nf AUTHORS ChangeLog README sample.urlview urlview.sgml \
$RPM_BUILD_ROOT/%{_mandir}/man1/*
%files
%defattr(644,root,root,755)
-%doc {AUTHORS,ChangeLog,README,sample.urlview,urlview.sgml}.gz
-%attr(755,root,root) %{_bindir}/urlview
-%attr(755,root,root) %{_bindir}/url_handler
-%{_mandir}/man1/urlview.1.gz
+%doc *.gz
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man1/*