/[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 2052955 - (show annotations) (download)
Thu Mar 28 14:30:13 2024 UTC (4 weeks ago) by ns80
File size: 3647 byte(s)
- new version 20230121 + a patch from Fedora for CVE-2023-3825[23] and CVE-2023-4255 (mga#33027)

1 # TODO add option to remove dependencies
2
3 %define gcversion gc6.3
4 %define gitcommit c8223fed7cc631ad85d8e5665e509e7988bedbab
5 %define gitdate 20230121
6
7 Summary: Pager that can also be used as text-based web browser
8 Name: w3m
9 Version: 0.5.3
10 Release: %mkrel 13.git%{gitdate}.1
11 Group: Networking/WWW
12 License: MIT-like
13 URL: https://github.com/tats/w3m/
14 Source0: https://github.com/tats/w3m/archive/%{gitcommit}/%{name}-git%{gitdate}.tar.gz
15 Source2: w3mconfig
16
17 Patch0: 0001-allow-to-configure-the-accept-option-for-bad-cookies.patch
18
19 # let help handle japanese
20 Patch10: w3m-0.5.3-helpcharset.patch
21 # Fix build
22 Patch17: w3m-0.5.3-x11.patch
23
24 Patch19: w3m-0.5.3-fix-oob-access.patch
25
26 Provides: webclient
27 BuildRequires: gpm-devel
28 BuildRequires: gtk+2-devel
29 BuildRequires: libgdk_pixbuf2.0-devel
30 BuildRequires: imlib2-devel
31 BuildRequires: ncurses-devel
32 BuildRequires: openssl-devel
33 BuildRequires: pkgconfig
34 BuildRequires: termcap-devel
35 BuildRequires: pkgconfig(bdw-gc)
36 BuildRequires: pkgconfig(gdk-pixbuf-xlib-2.0)
37
38 %global __requires_exclude perl\\(w3mhelp-.*\\)
39
40 %description
41 W3m is a text-based web browser as well as a pager like `more' or
42 `less'. With w3m you can browse web pages through a terminal emulator
43 window (xterm, rxvt or something like that). Moreover, w3m can be used
44 as a text formatting tool which typesets HTML into plain text. w3m also
45 provides w3mman which is a great manpage browser.
46
47 %prep
48 %setup -q -n %{name}-%{version}-git%{gitdate}
49 %autopatch -p1
50
51 %{__cp} -a %{SOURCE2} w3mconfig
52
53 %build
54 sed -i s/showaudio/mplayer/ config.h.in
55 export CFLAGS="$RPM_OPT_FLAGS -DUSE_BUFINFO -DOPENSSL_NO_SSL_INTERN -D_GNU_SOURCE $(getconf LFS_CFLAGS) -fno-strict-aliasing `ncursesw6-config --cflags` -fPIE -I%{_includedir}/glib-2.0 -I%{_libdir}/glib-2.0/include -I%{_includedir}/gdk-pixbuf-2.0"
56
57 %{configure} \
58 --with-browser=%{_bindir}/www-browser \
59 --with-editor=%{_bindir}/vi \
60 --with-mailer=/bin/mail \
61 --with-termlib=ncurses \
62 --enable-alarm \
63 --enable-ansi-color \
64 --enable-bgcolor \
65 --enable-color \
66 --enable-cookie \
67 --enable-dict \
68 --enable-digest-auth \
69 --enable-external-uri-loader \
70 --enable-gopher \
71 --enable-help-cgi \
72 --enable-history \
73 --enable-image \
74 --enable-ipv6 \
75 --disable-japanese \
76 --enable-keymap=w3m \
77 --enable-menu \
78 --enable-mouse \
79 --enable-nntp \
80 --enable-sslverify \
81 --enable-w3mmailer \
82 --disable-xface \
83 --enable-m17n \
84 --enable-unicode \
85 --with-charset=UTF-8
86
87 make
88
89 %install
90 install -d %{buildroot}/{%{_bindir},{%{_datadir},%{_libdir}}/%{name},%{_mandir}/{,ja_JP.ujis}/man1}
91
92 %make_install
93
94 install -m0644 doc-jp/w3m.1 %{buildroot}/%{_mandir}/ja_JP.ujis/man1
95 install -m0644 doc/w3m.1 %{buildroot}/%{_mandir}/man1
96
97 install -d %{buildroot}%{_sysconfdir}/w3m
98 install -m0644 w3mconfig %{buildroot}%{_sysconfdir}/w3m/config
99
100 rm -rf %{buildroot}/%{_mandir}/ja*
101
102 %find_lang %{name}
103
104 %files -f %{name}.lang
105 %doc README doc doc-jp w3mhelp-lynx_*
106 %dir %{_sysconfdir}/w3m
107 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/w3m/config
108 %attr(0755,root,root) %{_bindir}/*
109 %{_libexecdir}/%{name}
110 %{_datadir}/%{name}
111 %{_mandir}/man1/*
112 %{_mandir}/*/man1/w3m*.1.*
113

  ViewVC Help
Powered by ViewVC 1.1.30