w3m.spec revision 17183
10139N/A#
10139N/A# spec file for package w3m
10139N/A#
19026N/A# Copyright 2008 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
10139N/A#
17185N/A# Owner: jerrytan
10139N/A#
10139N/A
17182N/A%define OSR 6973:0.5
17730N/A
17182N/AName: w3m
10139N/ALicense: BSD
17730N/AGroup: Applications/Internet
10139N/AVersion: 0.5.2
19026N/ARelease: 4
10139N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
18616N/ASummary: A text-based web browser
10139N/ASource: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
10139N/A%if %build_l10n
19026N/ASource1: l10n-configure.sh
19026N/A%endif
10139N/A# date:2008-06-04 owner:fujiwara type:bug bugster:6710470
10139N/APatch1: w3m-01-build.diff
10139N/A# date:2009-02-16 owner:jerrytan type:branding
10139N/APatch2: w3m-02-checkgc.diff
10139N/AURL: http://w3m.sourceforge.net/
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/ADocdir: %{_defaultdocdir}/doc
10139N/AAutoreqprov: on
10139N/APrereq: /sbin/ldconfig
10139N/A
10139N/ABuildPreReq: openssl-devel >= 0.9.8a, ncurses-devel
10139N/ABuildPreReq: gdk-pixbuf-devel >= 0.16.0
10139N/ABuildPreReq: libpng-devel >= 1.2.2, gc-devel
10139N/A
10139N/A%define openssl_version 0.9.8a
10139N/ABuildRequires: openssl-devel >= %{openssl_version}
10139N/A
10139N/A%description
10139N/AW3m is a pager adapted to World Wide Web. W3m is a text-based WWW
10139N/Abrowser as well as a pager.
10139N/A
19026N/A%prep
19026N/A%setup -q
17730N/A%patch1 -p1
17730N/A%patch2 -p1
17730N/A
10139N/A%build
10139N/A%ifos linux
17730N/Aif [ -x /usr/bin/getconf ]; then
10139N/A CPUS=`getconf _NPROCESSORS_ONLN`
17730N/Afi
10139N/A%else
10139N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
17730N/A%endif
17730N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10139N/A CPUS=1
17730N/Afi
10139N/A
17730N/Aintltoolize -c -f --automake
17798N/A
17730N/A%if %build_l10n
17730N/Abash -x %SOURCE1 --enable-copyright
17730N/A%endif
17730N/A
17730N/A# the orignal aclocal.m4 defines AC_W3M_SSL_DIGEST_AUTH
17798N/Amv aclocal.m4 ssl.m4
17990N/Aaclocal -I .
17730N/Aautoconf
17730N/ACFLAGS="$RPM_OPT_FLAGS" \
10139N/A./configure --prefix=%{_prefix} \
10139N/A --mandir=%{_mandir} \
17730N/A --libdir=%{_libdir} \
10139N/A --libexecdir=%{_libexecdir} \
17730N/A --sysconfdir=%{_sysconfdir} \
17730N/A --with-browser=/usr/bin/firefox \
10139N/A
10139N/Atouch po/stamp-it
10139N/A#FIXME: If the simultaneously running job > 2, it builds failed
10139N/A#make -j $CPUS
10139N/Amake -j 2
19026N/A
19026N/A%install
17990N/Amake install DESTDIR=$RPM_BUILD_ROOT
17990N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
17990N/Afind $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
17798N/A
17798N/A%clean
17730N/Arm -rf $RPM_BUILD_ROOT
17730N/A
10628N/A%post -p /sbin/ldconfig
10628N/A%postun -p /sbin/ldconfig
10139N/A
10139N/A%files
10139N/A%files
10139N/A%defattr(-, root, root)
10139N/A%doc Bonus ChangeLog NEWS README TODO doc doc-jp
10139N/A%{_sysconfdir}/w3m
10139N/A%{_bindir}/w3m
10139N/A%dir %{_libexecdir}/w3m
10139N/A%{_libexecdir}/w3m/inflate
10139N/A%dir %{_libexecdir}/w3m/cgi-bin
10139N/A%{_libexecdir}/w3m/cgi-bin/w3mbookmark
10139N/A%{_libexecdir}/w3m/cgi-bin/w3mhelperpanel
10139N/A%{_mandir}/man1/w3m.1*
10139N/A%{_mandir}/ja/man1/w3m.1*
10139N/A%{_datadir}/locale/*/*/*
10139N/A%{_datadir}/w3m/w3mhelp-funcdesc.en.pl
10139N/A%{_datadir}/w3m/w3mhelp-funcdesc.ja.pl
%{_datadir}/w3m/w3mhelp-funcname.pl
%{_datadir}/w3m/w3mhelp.html
%changelog
* Fri Sep 05 2008 - dave.lin@sun.com
- commented out the line "make -j $CPU" and specified the simultaneously running job as 2,
it built failed when the job is 16
* Wed Jun 04 2008 - takao.fujiwara@sun.com
- Add w3m-01-build.diff to enable nls.
* Mon May 26 2008 - rick.ju@sun.com
- Add openssl dependency
* Mon Apr 14 2008 - halton.huo@sun.com
- Remove %gtk_doc_option when configure because there is no this option.
* Thu Feb 21 2008 - laca@sun.com
- delete all autotoolization, particularly intltoolize,
since intltool is not used at all in this module
* Wed Feb 20 2008 - halton.huo@sun.com
- Remove commented lines.
* Wed Jan 02 2008 - halton.huo@sun.com
- spilit from SFEw3m.spec