33eb547ae5a4bc9bcc68bd5509a27a9aea86d3b0
[platform/upstream/links.git] / packaging / links.spec
1 Name:           links
2 BuildRequires:  automake
3 BuildRequires:  openssl-devel
4 BuildRequires:  pkgconfig
5 Url:            http://artax.karlin.mff.cuni.cz/~mikulas/links/
6 Provides:       web_browser
7 Version:        2.6
8 Release:        0
9 Summary:        Text-Based WWW Browser
10 License:        GPL-2.0+
11 Group:          Productivity/Networking/Web/Browsers
12 Source:         links-%{version}.tar.bz2
13
14 %description
15 Links is like Lynx--an easy-to-use browser for HTML documents and other
16 Internet services, like FTP, telnet, and news. Links provides a
17 graphical interface besides the text interface. It has good support for
18 frames, supports ssl, and has a little bit of JavaScript support.
19
20
21 %prep
22 %setup -q -n links-%{version}
23
24 %build
25 autoreconf -ifv
26 CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -pipe"
27 %configure  --with-ssl  --with-pic
28 make
29
30 %install
31 mkdir -p $RPM_BUILD_ROOT/{%{_mandir}/man1,usr/bin,%{_infodir}} 
32 cp links.1 $RPM_BUILD_ROOT/%{_mandir}/man1
33 make install DESTDIR=$RPM_BUILD_ROOT
34 make clean
35 make EXTRAA="-DSHOW_COLOR=TRUE"
36 install links $RPM_BUILD_ROOT/usr/bin/links
37
38 %files
39 %license COPYING
40 %defattr(-,root,root)
41 /usr/bin/links
42 %doc %{_mandir}/man1/links.1.gz
43
44 %changelog