/[packages]/cauldron/w3m/current/SPECS/w3m.spec
ViewVC logotype

Contents of /cauldron/w3m/current/SPECS/w3m.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 65217 - (show annotations) (download)
Sun Mar 6 11:34:25 2011 UTC (13 years, 1 month ago) by saispo
File size: 3767 byte(s)
imported package w3m
1 # TODO add option to remove dependencies
2
3 %define gcversion gc6.3
4 %define Summary Pager that can also be used as textbased webbrowser
5
6 Summary: %{Summary}
7 Name: w3m
8 Version: 0.5.2
9 Release: %mkrel 1
10 Group: Networking/WWW
11 License: MIT-like
12 URL: http://w3m.sourceforge.net/
13 Source0: http://prdownloads.sourceforge.net/w3m/%{name}-%{version}.tar.gz
14 Source1: http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/%{gcversion}.tar.gz
15 Source2: w3mconfig
16 Patch0: w3m-0.4.1-helpcharset.patch
17 Patch1: w3m-0.5.2-static-libgc.patch
18 Patch2: w3m-0.5.1-gcc4.patch
19 Patch3: w3m-0.5.2-syserror.patch
20 Patch4: w3m-0.5.2-literal.patch
21 Patch5: w3m-CVE-2010-2074.patch
22 Provides: webclient
23 BuildRequires: gpm-devel
24 BuildRequires: gtk+2-devel
25 BuildRequires: libgdk_pixbuf2.0-devel
26 BuildRequires: imlib-devel >= 1.9.8
27 BuildRequires: ncurses-devel
28 BuildRequires: openssl-devel
29 BuildRequires: pkgconfig
30 BuildRequires: termcap-devel
31 BuildRequires: ungif-devel
32 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
33
34 %define _requires_exceptions perl(w3mhelp-.*)
35
36 %description
37 W3m is a text-based web browser as well as a pager like `more' or
38 `less'. With w3m you can browse web pages through a terminal emulator
39 window (xterm, rxvt or something like that). Moreover, w3m can be used
40 as a text formatting tool which typesets HTML into plain text. w3m also
41 provides w3mman which is a great manpage browser.
42
43 %prep
44 %setup -q
45 %patch0 -p1
46 %patch1 -p1
47 %patch2 -p1
48 %patch3 -p1 -b .syserror
49 %patch4 -p1 -b .literal
50 %patch5 -p0 -b .CVE-2010-2074
51
52 rm -rf gc
53 tar xf %{SOURCE1}
54 mv %{gcversion} gc
55
56 %{__cp} -a %{SOURCE2} w3mconfig
57
58 %build
59 sed -i s/showaudio/mplayer/ config.h.in
60
61 (cd gc;
62 %{make} ABI_FLAG="%{optflags} -fPIC" gc.a
63 mkdir lib
64 ln -s ../gc.a lib/libgc.a
65 )
66
67 %{configure2_5x} \
68 --with-browser=%{_bindir}/www-browser \
69 --with-editor=%{_bindir}/vi \
70 --with-mailer=/bin/mail \
71 --with-termlib=ncurses \
72 --enable-alarm \
73 --enable-ansi-color \
74 --enable-bgcolor \
75 --enable-color \
76 --enable-cookie \
77 --enable-dict \
78 --enable-digest-auth \
79 --enable-external-uri-loader \
80 --enable-gopher \
81 --enable-help-cgi \
82 --enable-history \
83 --enable-image \
84 --enable-ipv6 \
85 --disable-japanese \
86 --disable-kanjisymbols \
87 --enable-keymap=w3m \
88 --enable-menu \
89 --enable-mouse \
90 --enable-nntp \
91 --enable-sslverify \
92 --enable-w3mmailer \
93 --disable-xface \
94 --enable-m17n \
95 --enable-unicode \
96 --with-charset=UTF-8 \
97 --with-gc=`pwd`/gc
98
99 make
100
101 %install
102 rm -rf %{buildroot}
103
104 install -d %{buildroot}/{%{_bindir},{%{_datadir},%{_libdir}}/%{name},%{_mandir}/{,ja_JP.ujis}/man1}
105
106 %{makeinstall_std}
107
108 install -m0644 doc-jp/w3m.1 %{buildroot}/%{_mandir}/ja_JP.ujis/man1
109 install -m0644 doc/w3m.1 %{buildroot}/%{_mandir}/man1
110
111 install -d %{buildroot}%{_sysconfdir}/w3m
112 install -m0644 w3mconfig %{buildroot}%{_sysconfdir}/w3m/config
113
114 rm -rf %{buildroot}/%{_mandir}/ja*
115
116 %find_lang %{name}
117
118 %post
119 %update_menus
120
121 %postun
122 %clean_menus
123
124 %clean
125 rm -rf %{buildroot}
126
127 %files -f %{name}.lang
128 %defattr(-,root,root)
129 %doc README doc doc-jp w3mhelp-lynx_*
130 %dir %{_sysconfdir}/w3m
131 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/w3m/config
132 %attr(0755,root,root) %{_bindir}/*
133 %{_libdir}/%{name}
134 %{_datadir}/%{name}
135 %{_mandir}/man1/*

  ViewVC Help
Powered by ViewVC 1.1.30