author | an230044 |
Mon, 18 Jul 2011 05:01:43 +0000 | |
branch | s11express-2010-11 |
changeset 21987 | 596716054b17 |
parent 17865 | b7ff02e93f66 |
permissions | -rw-r--r-- |
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 |
|
21987
596716054b17
7008664 Problem with gnome/applications (w3m security issue)
an230044
parents:
17865
diff
changeset
|
29 |
# date:2011-07-11 owner:abhijit type:bug bugster:7008664 |
596716054b17
7008664 Problem with gnome/applications (w3m security issue)
an230044
parents:
17865
diff
changeset
|
30 |
Patch3: w3m-03-istream.diff |
11516 | 31 |
URL: http://w3m.sourceforge.net/ |
32 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
33 |
Docdir: %{_defaultdocdir}/doc |
|
34 |
Autoreqprov: on |
|
35 |
Prereq: /sbin/ldconfig |
|
36 |
||
37 |
BuildPreReq: openssl-devel >= 0.9.8a, ncurses-devel |
|
38 |
BuildPreReq: gdk-pixbuf-devel >= 0.16.0 |
|
39 |
BuildPreReq: libpng-devel >= 1.2.2, gc-devel |
|
40 |
||
12514 | 41 |
%define openssl_version 0.9.8a |
42 |
BuildRequires: openssl-devel >= %{openssl_version} |
|
43 |
||
11516 | 44 |
%description |
45 |
W3m is a pager adapted to World Wide Web. W3m is a text-based WWW |
|
46 |
browser as well as a pager. |
|
47 |
||
48 |
%prep |
|
49 |
%setup -q |
|
12589 | 50 |
%patch1 -p1 |
15297 | 51 |
%patch2 -p1 |
21987
596716054b17
7008664 Problem with gnome/applications (w3m security issue)
an230044
parents:
17865
diff
changeset
|
52 |
%patch3 -p1 |
11516 | 53 |
|
54 |
%build |
|
55 |
%ifos linux |
|
56 |
if [ -x /usr/bin/getconf ]; then |
|
57 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
58 |
fi |
|
59 |
%else |
|
60 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
61 |
%endif |
|
62 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
63 |
CPUS=1 |
|
64 |
fi |
|
65 |
||
12589 | 66 |
intltoolize -c -f --automake |
67 |
||
68 |
%if %build_l10n |
|
69 |
bash -x %SOURCE1 --enable-copyright |
|
70 |
%endif |
|
71 |
||
72 |
# the orignal aclocal.m4 defines AC_W3M_SSL_DIGEST_AUTH |
|
73 |
mv aclocal.m4 ssl.m4 |
|
74 |
aclocal -I . |
|
75 |
autoconf |
|
11516 | 76 |
CFLAGS="$RPM_OPT_FLAGS" \ |
77 |
./configure --prefix=%{_prefix} \ |
|
78 |
--mandir=%{_mandir} \ |
|
79 |
--libdir=%{_libdir} \ |
|
80 |
--libexecdir=%{_libexecdir} \ |
|
81 |
--sysconfdir=%{_sysconfdir} \ |
|
82 |
--with-browser=/usr/bin/firefox \ |
|
83 |
||
12589 | 84 |
touch po/stamp-it |
13418 | 85 |
#FIXME: If the simultaneously running job > 2, it builds failed |
86 |
#make -j $CPUS |
|
87 |
make -j 2 |
|
11516 | 88 |
|
89 |
%install |
|
90 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
91 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
|
92 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' |
|
93 |
||
94 |
%clean |
|
95 |
rm -rf $RPM_BUILD_ROOT |
|
96 |
||
97 |
%post -p /sbin/ldconfig |
|
98 |
%postun -p /sbin/ldconfig |
|
99 |
||
100 |
%files |
|
101 |
%files |
|
102 |
%defattr(-, root, root) |
|
103 |
%doc Bonus ChangeLog NEWS README TODO doc doc-jp |
|
104 |
%{_sysconfdir}/w3m |
|
105 |
%{_bindir}/w3m |
|
106 |
%dir %{_libexecdir}/w3m |
|
107 |
%{_libexecdir}/w3m/inflate |
|
108 |
%dir %{_libexecdir}/w3m/cgi-bin |
|
109 |
%{_libexecdir}/w3m/cgi-bin/w3mbookmark |
|
110 |
%{_libexecdir}/w3m/cgi-bin/w3mhelperpanel |
|
111 |
%{_mandir}/man1/w3m.1* |
|
112 |
%{_mandir}/ja/man1/w3m.1* |
|
113 |
%{_datadir}/locale/*/*/* |
|
114 |
%{_datadir}/w3m/w3mhelp-funcdesc.en.pl |
|
115 |
%{_datadir}/w3m/w3mhelp-funcdesc.ja.pl |
|
116 |
%{_datadir}/w3m/w3mhelp-funcname.pl |
|
117 |
%{_datadir}/w3m/w3mhelp.html |
|
118 |
||
119 |
%changelog |
|
21987
596716054b17
7008664 Problem with gnome/applications (w3m security issue)
an230044
parents:
17865
diff
changeset
|
120 |
* Wed July 11 2011 - [email protected] |
596716054b17
7008664 Problem with gnome/applications (w3m security issue)
an230044
parents:
17865
diff
changeset
|
121 |
- Add w3m-03-istream.diff to fix CR7008664. |
13418 | 122 |
* Fri Sep 05 2008 - [email protected] |
123 |
- commented out the line "make -j $CPU" and specified the simultaneously running job as 2, |
|
124 |
it built failed when the job is 16 |
|
12589 | 125 |
* Wed Jun 04 2008 - [email protected] |
126 |
- Add w3m-01-build.diff to enable nls. |
|
12514 | 127 |
* Mon May 26 2008 - [email protected] |
128 |
- Add openssl dependency |
|
12109 | 129 |
* Mon Apr 14 2008 - [email protected] |
130 |
- Remove %gtk_doc_option when configure because there is no this option. |
|
11683 | 131 |
* Thu Feb 21 2008 - [email protected] |
11684 | 132 |
- delete all autotoolization, particularly intltoolize, |
133 |
since intltool is not used at all in this module |
|
11670 | 134 |
* Wed Feb 20 2008 - [email protected] |
135 |
- Remove commented lines. |
|
11516 | 136 |
* Wed Jan 02 2008 - [email protected] |
137 |
- spilit from SFEw3m.spec |