forked from rkd77/elinks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelinks.spec.in
199 lines (166 loc) · 5.97 KB
/
elinks.spec.in
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
# To build rpm: rpmbuild -bb elinks.spec
# Debug version: rpmbuild -bb elinks.spec --debug
# Console version without X11 dependency: rpmbuild -bb elinks.spec --without x
# by default all features are enabled
# Conditional builds:
# --without 256 # build without support for 256 colors on xterm
# --without bzlib
# --without cgi # build without local cgi support
# --without gpm # build without GPM support
# --without leds # disable leds support
# --without lua # build without lua scripting engine
# --without openssl
# --without smb # build without support for SMB protocol
# --without x # without X11 dependency (X11 libs are used only for restoring title
# in xterm)
# --without zlib #
# --with guile # build with guile scripting engine
# --with perl # build with Perl scripting engine
#
# This file was contributed by <[email protected]> and
# <[email protected]>.
#
# Just try to send the patch/new version to them and wait few days if they will
# do anything. If yes, they'll approve it or forward it to me (don't fear, the
# credit won't be lost) if it's ok by them. If you won't get any reply, send it
# to the elinks-dev mailing list. Thanks! --pasky
#
#
# Spec file format from < http://www.rpm.org/RPM-HOWTO/build.html >
#
Summary: Enhanced version of Links (Lynx-like text WWW browser)
Name: elinks
Version: @VERSION@
Release: 1
License: GPL
Vendor: ELinks project <[email protected]>
Packager: Petr Baudis <[email protected]>
Group: Applications/Internet
Source: http://elinks.cz/download/%{name}-%{version}.tar.bz2
URL: http://elinks.cz/
BuildRequires: bzip2-devel
BuildRequires: expat-devel
BuildRequires: gpm-devel
BuildRequires: openssl-devel
BuildRequires: zlib-devel
%{!?_without_x:BuildRequires: XFree86-devel}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Enhanced version of Links (Lynx-like text WWW browser), with more liberal
features policy and development style.
ELinks aims to provide feature-rich version of Links. Its purpuose is to make
alternative to Links, and to test and tune various new features, but still
provide good rock-solid releases inside stable branches.
%prep
%setup -q
%build
#
# if you just checkout the source and make a tarball from it uncomment
# the following line
#
# ./autogen.sh
%configure \
%{?debug: --enable-debug} \
%{!?debug: --enable-fastmem} \
%{?_without_x: --without-x} \
%{?_without_lua: --without-lua} \
%{?_without_zlib: --without-zlib} \
%{?_without_bzlib: --without-bzlib} \
%{?_without_gpm: --without-gpm} \
%{?_without_openssl: --without-openssl} \
%{?_with_guile: --with-guile} \
%{?_with_perl: --with-perl} \
%{?_without_lua: --without-lua} \
%{!?_without_leds: --enable-leds} \
%{!?_without_256: --enable-256-colors} \
%{?_without_smb: --disable-smb} \
%{!?_without_cgi: --enable-cgi} \
--enable-exmode \
--enable-html-highlight \
--enable-gopher \
--enable-finger \
--enable-nntp \
%{?_without_spidermonkey: --without-spidermonkey}
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install DESTDIR=$RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/{contrib,conv,lua,guile,perl}
install \
AUTHORS* BUGS* ChangeLog* COPYING* README* SITES* TODO* THANKS* \
INSTALL* NEWS* $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/
install \
contrib/elinks.vim contrib/elinks-vim.diff contrib/keybind*.conf \
$RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/contrib/
install \
contrib/conv/w3m2links.awk contrib/conv/conf-links2elinks.pl \
contrib/conv/mailcap.pl contrib/conv/old_to_new_bookmarks.sh \
$RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/conv/
install \
contrib/lua/elinks-remote contrib/lua/*.lua \
$RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/lua/
install \
contrib/guile/*scm \
$RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/guile/
install \
contrib/perl/hooks.pl \
$RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/perl
install \
doc/html/*.html \
$RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(644,root,root,755)
%attr (755,root,root) %{_bindir}/%{name}
%doc %{_defaultdocdir}/%{name}
%doc %{_mandir}/man?/*
# date +"%a %b %d %Y"
%changelog
* Sat Apr 29 2006 Witold Filipczyk <[email protected]>
- html docs instead of text files
* Fri Feb 17 2006 Witold Filipczyk <[email protected]>
- typo
* Thu Dec 29 2005 Miciah Dashiel Butler Masters <[email protected]>
- elinks.or.cz -> elinks.cz
* Tue Jun 14 2005 Witold Filipczyk <[email protected]>
- removed unused texi2html dependency
- removed unused libdir directory
* Mon Sep 27 2004 Witold Filipczyk <[email protected]>
- by default build feature rich ELinks
* Thu Mar 25 2004 Witold Filipczyk <[email protected]>
- a lot of bconds
- added hooks.pl
* Wed Dec 10 2003 Witold Filipczyk <[email protected]>
- enabled leds and local-cgi
* Sun Oct 26 2003 Witold Filipczyk <[email protected]>
- revert to version from 5 October
* Sat Oct 25 2003 Witold Filipczyk <[email protected]>
- more BRs. gettext should be enough for most cases, but
gettext-devel shouldn't hurt.
* Sun Oct 05 2003 Witold Filipczyk <[email protected]>
- enabled 256 colors
* Thu Oct 02 2003 Witold Filipczyk <[email protected]>
- polished
- no sanity checks
* Sat Sep 27 2003 [email protected]
- added license
- changed BuildRoot to use tmppath variable.
- removed prefix
- added some more docs and the guile scripts
* Sat Sep 27 2003 Petr Baudis <[email protected]>
- sanity checks of $RPM_BUILD_ROOT before rm -rf'ing it, based on darix's
suggestion
* Sun Jan 26 2003 Petr Baudis <[email protected]>
- elinks.pld.org.pl -> elinks.or.cz, based on Bennett's suggestion
* Thu Dec 19 2002 Bennett Todd <[email protected]>
- wildcarded the above doc and manpage specifications, and tagged the man
pages as docs
* Mon May 06 2002 [email protected]
- general update - cleanup of .spec file, massive simplifications
* Thu Apr 04 2002 [email protected]
- Changed some stuff so that it's now ready for inclusion..
* Sat Mar 16 2002 zimon (ät) iki fi
- Made my own elinks.spec file as the one I found with Google didn't work how
I wanted