/[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 324879 - (show annotations) (download)
Sun Dec 2 01:51:26 2012 UTC (11 years, 3 months ago) by pterjan
File size: 3534 byte(s)
- Use system libgc
- Link against libx11 explicitly as we are using a symbol
- Fix name conflict
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.3
9 Release: %mkrel 2
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 Source2: w3mconfig
15 # let help handle japanese
16 Patch0: w3m-0.4.1-helpcharset.patch
17 # port to gcc4
18 Patch2: w3m-0.5.1-gcc4.patch
19 # fix string format error
20 Patch4: w3m-0.5.2-literal.patch
21 # fix name conflict
22 Patch5: w3m-0.5.3-file_handle.patch
23 # fix build with GC 7.2 (Taken from LFS)
24 Patch6: w3m-0.5.3-gc72.patch
25 # Fix build
26 Patch7: w3m-0.5.3-x11.patch
27 Provides: webclient
28 BuildRequires: gpm-devel
29 BuildRequires: gtk+2-devel
30 BuildRequires: libgdk_pixbuf2.0-devel
31 BuildRequires: imlib2-devel
32 BuildRequires: ncurses-devel
33 BuildRequires: openssl-devel
34 BuildRequires: pkgconfig
35 BuildRequires: termcap-devel
36 BuildRequires: libgc-devel
37 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
38
39 %define _requires_exceptions perl(w3mhelp-.*)
40
41 %description
42 W3m is a text-based web browser as well as a pager like `more' or
43 `less'. With w3m you can browse web pages through a terminal emulator
44 window (xterm, rxvt or something like that). Moreover, w3m can be used
45 as a text formatting tool which typesets HTML into plain text. w3m also
46 provides w3mman which is a great manpage browser.
47
48 %prep
49 %setup -q
50 %patch0 -p1
51 %patch2 -p1
52 %patch4 -p1 -b .literal
53 %patch5 -p1 -b .file_handle
54 %patch6 -p1 -b .gc
55 %patch7 -p1 -b .x11
56
57 %{__cp} -a %{SOURCE2} w3mconfig
58
59 %build
60 sed -i s/showaudio/mplayer/ config.h.in
61
62 %{configure2_5x} \
63 --with-browser=%{_bindir}/www-browser \
64 --with-editor=%{_bindir}/vi \
65 --with-mailer=/bin/mail \
66 --with-termlib=ncurses \
67 --enable-alarm \
68 --enable-ansi-color \
69 --enable-bgcolor \
70 --enable-color \
71 --enable-cookie \
72 --enable-dict \
73 --enable-digest-auth \
74 --enable-external-uri-loader \
75 --enable-gopher \
76 --enable-help-cgi \
77 --enable-history \
78 --enable-image \
79 --enable-ipv6 \
80 --disable-japanese \
81 --enable-keymap=w3m \
82 --enable-menu \
83 --enable-mouse \
84 --enable-nntp \
85 --enable-sslverify \
86 --enable-w3mmailer \
87 --disable-xface \
88 --enable-m17n \
89 --enable-unicode \
90 --with-charset=UTF-8
91
92 make
93
94 %install
95 rm -rf %{buildroot}
96
97 install -d %{buildroot}/{%{_bindir},{%{_datadir},%{_libdir}}/%{name},%{_mandir}/{,ja_JP.ujis}/man1}
98
99 %{makeinstall_std}
100
101 install -m0644 doc-jp/w3m.1 %{buildroot}/%{_mandir}/ja_JP.ujis/man1
102 install -m0644 doc/w3m.1 %{buildroot}/%{_mandir}/man1
103
104 install -d %{buildroot}%{_sysconfdir}/w3m
105 install -m0644 w3mconfig %{buildroot}%{_sysconfdir}/w3m/config
106
107 rm -rf %{buildroot}/%{_mandir}/ja*
108
109 %find_lang %{name}
110
111 %clean
112 rm -rf %{buildroot}
113
114 %files -f %{name}.lang
115 %defattr(-,root,root)
116 %doc README doc doc-jp w3mhelp-lynx_*
117 %dir %{_sysconfdir}/w3m
118 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/w3m/config
119 %attr(0755,root,root) %{_bindir}/*
120 %{_libdir}/%{name}
121 %{_datadir}/%{name}
122 %{_mandir}/man1/*

  ViewVC Help
Powered by ViewVC 1.1.30