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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30