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