summaryrefslogtreecommitdiff
path: root/urlview.spec
blob: 779e34a0e6f6173d8223d5af3e4ad59e86f4c80e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Summary:	A URL extractor/viewer for use with Mutt
Summary(pl.UTF-8):	Program do wyciągania/oglądania URL-i dla Mutta
Name:		urlview
Version:	0.9
Release:	11
License:	GPL
Group:		Applications/Text
Source0:	ftp://ftp.mutt.org/mutt/contrib/%{name}-%{version}.tar.gz
# Source0-md5:	67731f73e69297ffd106b65c8aebb2ab
Patch0:		%{name}-DESTDIR.patch
Patch1:		%{name}-regexp.patch
Patch2:		%{name}-links.patch
Patch3:		%{name}-home_etc.patch
Patch4:		%{name}-linking.patch
Patch5:		%{name}-include.patch
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	ncurses-devel
Requires:	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.

%description -l pl.UTF-8
urlview wyciąga URL-e z podanego pliku tekstowego i pokazuje menu
pozwalające je oglądać podanym poleceniem.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4
%patch5

%build
rm -f missing
%{__aclocal}
%{__autoconf}
%{__automake}
%configure
%{__make}

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

install url_handler.sh $RPM_BUILD_ROOT%{_bindir}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog README sample.urlview urlview.sgml
%attr(755,root,root) %{_bindir}/*
%{_mandir}/man1/*