11516
|
1 |
#
|
|
2 |
# spec file for package w3m
|
|
3 |
#
|
11670
|
4 |
# Copyright 2008 Sun Microsystems, Inc.
|
11516
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
16434
|
8 |
%define owner jerrytan
|
11516
|
9 |
#
|
|
10 |
|
16432
|
11 |
%define OSR 6973:0.5
|
|
12 |
|
11516
|
13 |
Name: w3m
|
16603
|
14 |
License: MIT
|
11516
|
15 |
Group: Applications/Internet
|
|
16 |
Version: 0.5.2
|
|
17 |
Release: 4
|
|
18 |
Distribution: Java Desktop System
|
17865
|
19 |
Vendor: Sourceforge
|
11516
|
20 |
Summary: A text-based web browser
|
|
21 |
Source: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
12589
|
22 |
%if %build_l10n
|
|
23 |
Source1: l10n-configure.sh
|
|
24 |
%endif
|
|
25 |
# date:2008-06-04 owner:fujiwara type:bug bugster:6710470
|
|
26 |
Patch1: w3m-01-build.diff
|
15297
|
27 |
# date:2009-02-16 owner:jerrytan type:branding
|
|
28 |
Patch2: w3m-02-checkgc.diff
|
11516
|
29 |
URL: http://w3m.sourceforge.net/
|
|
30 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
31 |
Docdir: %{_defaultdocdir}/doc
|
|
32 |
Autoreqprov: on
|
|
33 |
Prereq: /sbin/ldconfig
|
|
34 |
|
|
35 |
BuildPreReq: openssl-devel >= 0.9.8a, ncurses-devel
|
|
36 |
BuildPreReq: gdk-pixbuf-devel >= 0.16.0
|
|
37 |
BuildPreReq: libpng-devel >= 1.2.2, gc-devel
|
|
38 |
|
12514
|
39 |
%define openssl_version 0.9.8a
|
|
40 |
BuildRequires: openssl-devel >= %{openssl_version}
|
|
41 |
|
11516
|
42 |
%description
|
|
43 |
W3m is a pager adapted to World Wide Web. W3m is a text-based WWW
|
|
44 |
browser as well as a pager.
|
|
45 |
|
|
46 |
%prep
|
|
47 |
%setup -q
|
12589
|
48 |
%patch1 -p1
|
15297
|
49 |
%patch2 -p1
|
11516
|
50 |
|
|
51 |
%build
|
|
52 |
%ifos linux
|
|
53 |
if [ -x /usr/bin/getconf ]; then
|
|
54 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
55 |
fi
|
|
56 |
%else
|
|
57 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
58 |
%endif
|
|
59 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
60 |
CPUS=1
|
|
61 |
fi
|
|
62 |
|
12589
|
63 |
intltoolize -c -f --automake
|
|
64 |
|
|
65 |
%if %build_l10n
|
|
66 |
bash -x %SOURCE1 --enable-copyright
|
|
67 |
%endif
|
|
68 |
|
|
69 |
# the orignal aclocal.m4 defines AC_W3M_SSL_DIGEST_AUTH
|
|
70 |
mv aclocal.m4 ssl.m4
|
|
71 |
aclocal -I .
|
|
72 |
autoconf
|
11516
|
73 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
74 |
./configure --prefix=%{_prefix} \
|
|
75 |
--mandir=%{_mandir} \
|
|
76 |
--libdir=%{_libdir} \
|
|
77 |
--libexecdir=%{_libexecdir} \
|
|
78 |
--sysconfdir=%{_sysconfdir} \
|
|
79 |
--with-browser=/usr/bin/firefox \
|
|
80 |
|
12589
|
81 |
touch po/stamp-it
|
13418
|
82 |
#FIXME: If the simultaneously running job > 2, it builds failed
|
|
83 |
#make -j $CPUS
|
|
84 |
make -j 2
|
11516
|
85 |
|
|
86 |
%install
|
|
87 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
88 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
89 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
|
90 |
|
|
91 |
%clean
|
|
92 |
rm -rf $RPM_BUILD_ROOT
|
|
93 |
|
|
94 |
%post -p /sbin/ldconfig
|
|
95 |
%postun -p /sbin/ldconfig
|
|
96 |
|
|
97 |
%files
|
|
98 |
%files
|
|
99 |
%defattr(-, root, root)
|
|
100 |
%doc Bonus ChangeLog NEWS README TODO doc doc-jp
|
|
101 |
%{_sysconfdir}/w3m
|
|
102 |
%{_bindir}/w3m
|
|
103 |
%dir %{_libexecdir}/w3m
|
|
104 |
%{_libexecdir}/w3m/inflate
|
|
105 |
%dir %{_libexecdir}/w3m/cgi-bin
|
|
106 |
%{_libexecdir}/w3m/cgi-bin/w3mbookmark
|
|
107 |
%{_libexecdir}/w3m/cgi-bin/w3mhelperpanel
|
|
108 |
%{_mandir}/man1/w3m.1*
|
|
109 |
%{_mandir}/ja/man1/w3m.1*
|
|
110 |
%{_datadir}/locale/*/*/*
|
|
111 |
%{_datadir}/w3m/w3mhelp-funcdesc.en.pl
|
|
112 |
%{_datadir}/w3m/w3mhelp-funcdesc.ja.pl
|
|
113 |
%{_datadir}/w3m/w3mhelp-funcname.pl
|
|
114 |
%{_datadir}/w3m/w3mhelp.html
|
|
115 |
|
|
116 |
%changelog
|
13418
|
117 |
* Fri Sep 05 2008 - [email protected]
|
|
118 |
- commented out the line "make -j $CPU" and specified the simultaneously running job as 2,
|
|
119 |
it built failed when the job is 16
|
12589
|
120 |
* Wed Jun 04 2008 - [email protected]
|
|
121 |
- Add w3m-01-build.diff to enable nls.
|
12514
|
122 |
* Mon May 26 2008 - [email protected]
|
|
123 |
- Add openssl dependency
|
12109
|
124 |
* Mon Apr 14 2008 - [email protected]
|
|
125 |
- Remove %gtk_doc_option when configure because there is no this option.
|
11683
|
126 |
* Thu Feb 21 2008 - [email protected]
|
11684
|
127 |
- delete all autotoolization, particularly intltoolize,
|
|
128 |
since intltool is not used at all in this module
|
11670
|
129 |
* Wed Feb 20 2008 - [email protected]
|
|
130 |
- Remove commented lines.
|
11516
|
131 |
* Wed Jan 02 2008 - [email protected]
|
|
132 |
- spilit from SFEw3m.spec
|