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 |
#
|
|
8 |
# Owner:halton
|
|
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
|
|
20 |
URL: http://w3m.sourceforge.net/
|
|
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
22 |
Docdir: %{_defaultdocdir}/doc
|
|
23 |
Autoreqprov: on
|
|
24 |
Prereq: /sbin/ldconfig
|
|
25 |
|
|
26 |
BuildPreReq: openssl-devel >= 0.9.8a, ncurses-devel
|
|
27 |
BuildPreReq: gdk-pixbuf-devel >= 0.16.0
|
|
28 |
BuildPreReq: libpng-devel >= 1.2.2, gc-devel
|
|
29 |
|
|
30 |
%description
|
|
31 |
W3m is a pager adapted to World Wide Web. W3m is a text-based WWW
|
|
32 |
browser as well as a pager.
|
|
33 |
|
|
34 |
%prep
|
|
35 |
%setup -q
|
|
36 |
|
|
37 |
%build
|
|
38 |
%ifos linux
|
|
39 |
if [ -x /usr/bin/getconf ]; then
|
|
40 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
41 |
fi
|
|
42 |
%else
|
|
43 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
44 |
%endif
|
|
45 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
46 |
CPUS=1
|
|
47 |
fi
|
|
48 |
|
|
49 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
50 |
./configure --prefix=%{_prefix} \
|
|
51 |
--mandir=%{_mandir} \
|
|
52 |
--libdir=%{_libdir} \
|
|
53 |
--libexecdir=%{_libexecdir} \
|
|
54 |
--sysconfdir=%{_sysconfdir} \
|
|
55 |
--with-browser=/usr/bin/firefox \
|
|
56 |
%gtk_doc_option
|
|
57 |
|
|
58 |
make -j $CPUS
|
|
59 |
|
|
60 |
%install
|
|
61 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
62 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
63 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
|
64 |
|
|
65 |
%clean
|
|
66 |
rm -rf $RPM_BUILD_ROOT
|
|
67 |
|
|
68 |
%post -p /sbin/ldconfig
|
|
69 |
%postun -p /sbin/ldconfig
|
|
70 |
|
|
71 |
%files
|
|
72 |
%files
|
|
73 |
%defattr(-, root, root)
|
|
74 |
%doc Bonus ChangeLog NEWS README TODO doc doc-jp
|
|
75 |
%{_sysconfdir}/w3m
|
|
76 |
%{_bindir}/w3m
|
|
77 |
%dir %{_libexecdir}/w3m
|
|
78 |
%{_libexecdir}/w3m/inflate
|
|
79 |
%dir %{_libexecdir}/w3m/cgi-bin
|
|
80 |
%{_libexecdir}/w3m/cgi-bin/w3mbookmark
|
|
81 |
%{_libexecdir}/w3m/cgi-bin/w3mhelperpanel
|
|
82 |
%{_mandir}/man1/w3m.1*
|
|
83 |
%{_mandir}/ja/man1/w3m.1*
|
|
84 |
%{_datadir}/locale/*/*/*
|
|
85 |
%{_datadir}/w3m/w3mhelp-funcdesc.en.pl
|
|
86 |
%{_datadir}/w3m/w3mhelp-funcdesc.ja.pl
|
|
87 |
%{_datadir}/w3m/w3mhelp-funcname.pl
|
|
88 |
%{_datadir}/w3m/w3mhelp.html
|
|
89 |
|
|
90 |
%changelog
|
11683
|
91 |
* Thu Feb 21 2008 - [email protected]
|
11684
|
92 |
- delete all autotoolization, particularly intltoolize,
|
|
93 |
since intltool is not used at all in this module
|
11670
|
94 |
* Wed Feb 20 2008 - [email protected]
|
|
95 |
- Remove commented lines.
|
11516
|
96 |
* Wed Jan 02 2008 - [email protected]
|
|
97 |
- spilit from SFEw3m.spec
|