/[packages]/updates/8/w3m/current/SPECS/w3m.spec
ViewVC logotype

Contents of /updates/8/w3m/current/SPECS/w3m.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1930141 - (show annotations) (download)
Thu Jan 5 13:33:33 2023 UTC (15 months, 2 weeks ago) by ns80
File size: 3841 byte(s)
- new version 20220429
- add a patch from Fedora for CVE-2022-38223 (mga#31365)

1 # TODO add option to remove dependencies
2
3 %define gcversion gc6.3
4 %define gitcommit c515ea8a47b62408943390f579b2f377464f6658
5 %define gitdate 20220429
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 Patch1: 0001-implements-simple-session-management.patch
19 Patch2: 0001-handle-EXDEV-during-history-file-rename.patch
20 Patch3: 0001-w3mman-don-t-show-invalid-characters-bsc-950800.patch
21
22 # let help handle japanese
23 Patch10: w3m-0.5.3-helpcharset.patch
24 # Fix build
25 Patch17: w3m-0.5.3-x11.patch
26
27 Patch18: w3m-0.5-3-cve-2022-38223.patch
28
29 Provides: webclient
30 BuildRequires: gpm-devel
31 BuildRequires: gtk+2-devel
32 BuildRequires: libgdk_pixbuf2.0-devel
33 BuildRequires: imlib2-devel
34 BuildRequires: ncurses-devel
35 BuildRequires: openssl-devel
36 BuildRequires: pkgconfig
37 BuildRequires: termcap-devel
38 BuildRequires: pkgconfig(bdw-gc)
39 BuildRequires: pkgconfig(gdk-pixbuf-xlib-2.0)
40
41 %global __requires_exclude perl\\(w3mhelp-.*\\)
42
43 %description
44 W3m is a text-based web browser as well as a pager like `more' or
45 `less'. With w3m you can browse web pages through a terminal emulator
46 window (xterm, rxvt or something like that). Moreover, w3m can be used
47 as a text formatting tool which typesets HTML into plain text. w3m also
48 provides w3mman which is a great manpage browser.
49
50 %prep
51 %setup -q -n %{name}-%{gitcommit}
52 %autopatch -p1
53
54 %{__cp} -a %{SOURCE2} w3mconfig
55
56 %build
57 sed -i s/showaudio/mplayer/ config.h.in
58 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"
59
60 %{configure} \
61 --with-browser=%{_bindir}/www-browser \
62 --with-editor=%{_bindir}/vi \
63 --with-mailer=/bin/mail \
64 --with-termlib=ncurses \
65 --enable-alarm \
66 --enable-ansi-color \
67 --enable-bgcolor \
68 --enable-color \
69 --enable-cookie \
70 --enable-dict \
71 --enable-digest-auth \
72 --enable-external-uri-loader \
73 --enable-gopher \
74 --enable-help-cgi \
75 --enable-history \
76 --enable-image \
77 --enable-ipv6 \
78 --disable-japanese \
79 --enable-keymap=w3m \
80 --enable-menu \
81 --enable-mouse \
82 --enable-nntp \
83 --enable-sslverify \
84 --enable-w3mmailer \
85 --disable-xface \
86 --enable-m17n \
87 --enable-unicode \
88 --with-charset=UTF-8
89
90 make
91
92 %install
93 install -d %{buildroot}/{%{_bindir},{%{_datadir},%{_libdir}}/%{name},%{_mandir}/{,ja_JP.ujis}/man1}
94
95 %make_install
96
97 install -m0644 doc-jp/w3m.1 %{buildroot}/%{_mandir}/ja_JP.ujis/man1
98 install -m0644 doc/w3m.1 %{buildroot}/%{_mandir}/man1
99
100 install -d %{buildroot}%{_sysconfdir}/w3m
101 install -m0644 w3mconfig %{buildroot}%{_sysconfdir}/w3m/config
102
103 rm -rf %{buildroot}/%{_mandir}/ja*
104
105 %find_lang %{name}
106
107 %files -f %{name}.lang
108 %doc README doc doc-jp w3mhelp-lynx_*
109 %dir %{_sysconfdir}/w3m
110 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/w3m/config
111 %attr(0755,root,root) %{_bindir}/*
112 %{_libexecdir}/%{name}
113 %{_datadir}/%{name}
114 %{_mandir}/man1/*
115 %{_mandir}/*/man1/w3m*.1.*
116

  ViewVC Help
Powered by ViewVC 1.1.30