w3m/w3m.spec

changeset 419
0ae439deb6c2
child 420
45a2e4f038b1
equal deleted inserted replaced
-1:000000000000 0:44f4c353f940
1 ##
2 ## w3m.spec -- OpenPKG RPM Package Specification
3 ## Copyright (c) 2000-2011 OpenPKG Foundation e.V. <http://openpkg.net/>
4 ##
5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all
8 ## copies.
9 ##
10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE.
22 ##
23
24 # package information
25 Name: w3m
26 Summary: Interactive Full-Screen Client for HTTP/HTTPS/FTP Protocols
27 URL: http://w3m.sourceforge.net/
28 Vendor: Akinori Ito
29 Packager: OpenPKG Foundation e.V.
30 Distribution: OpenPKG Community
31 Class: BASE
32 Group: Web
33 License: BSD
34 Version: 0.5.3
35 Release: 20110115
36
37 # list of sources
38 Source0: http://switch.dl.sourceforge.net/sourceforge/w3m/w3m-%{version}.tar.gz
39 Patch0: w3m.patch
40
41 # build information
42 BuildPreReq: OpenPKG, openpkg >= 20100101, make
43 PreReq: OpenPKG, openpkg >= 20100101
44 BuildPreReq: ncurses, openssl, zlib, gc >= 7.2
45 PreReq: ncurses, openssl, zlib, gc >= 7.2
46
47 %description
48 W3M is a text-based web browser as well as a pager like `more'
49 or `less'. With W3M you can browse web pages through a terminal
50 emulator window (xterm, rxvt or something like that). Moreover, W3M
51 can be used as a text formatting tool which typesets HTML into plain
52 text.
53
54 %track
55 prog w3m = {
56 version = %{version}
57 url = http://sourceforge.net/projects/w3m/files/
58 regex = w3m-(__VER__)\.tar\.gz
59 }
60
61 %prep
62 %setup -q
63 %patch -p0
64
65 %build
66 CC="%{l_cc}" \
67 CFLAGS="%{l_cflags -O}" \
68 CPPFLAGS="%{l_cppflags}" \
69 LDFLAGS="%{l_ldflags}" \
70 ./configure \
71 --prefix=%{l_prefix} \
72 --mandir=%{l_prefix}/man \
73 --libdir=%{l_prefix}/libexec/w3m \
74 --sysconfdir=%{l_prefix}/etc \
75 --with-termlib=ncurses \
76 --with-editor=%{l_prefix}/bin/vim \
77 --with-mailer=%{l_prefix}/bin/mutt \
78 --with-browser=%{l_prefix}/bin/mozilla \
79 --with-gc=%{l_prefix} \
80 --with-ssl=%{l_prefix} \
81 --enable-sslverify \
82 --enable-w3mmailer \
83 --disable-external-uri-loader \
84 --without-migemo \
85 --disable-gopher \
86 --disable-ipv6 \
87 --disable-nntp \
88 --disable-dict \
89 --disable-alarm \
90 --disable-xface \
91 --enable-history \
92 --enable-keymap=w3m \
93 --enable-menu \
94 --enable-mouse \
95 --enable-cookie \
96 --enable-digest-auth \
97 --enable-image=no \
98 --enable-color \
99 --disable-ansi-color \
100 --disable-bgcolor \
101 --disable-japanese \
102 --disable-unicode \
103 --disable-m17n \
104 --disable-nls
105 %{l_make} %{l_mflags}
106
107 %install
108 %{l_make} %{l_mflags} install install-helpfile \
109 INSTALL="%{l_shtool} install -c" \
110 DESTDIR=$RPM_BUILD_ROOT
111 rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/ja
112 rm -f $RPM_BUILD_ROOT%{l_prefix}/share/w3m/*.ja.pl
113 rm -f $RPM_BUILD_ROOT%{l_prefix}/share/w3m/*_ja.html
114 rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m/xface2xpm
115 rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m/w3mimgdisplay
116 %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/w3m
117 echo "color 1" >$RPM_BUILD_ROOT%{l_prefix}/etc/w3m/config
118 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
119 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
120 %{l_files_std} \
121 '%config %{l_prefix}/etc/w3m/*'
122
123 %files -f files
124
125 %clean
126

mercurial