w3m.spec revision 12258
10139N/A#
10139N/A# spec file for package w3m
10139N/A#
10139N/A# Copyright (c) 2005 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#
10139N/A# Owner:halton
10139N/A#
10139N/A
10139N/AName: w3m
11416N/ALicense: BSD
10139N/AGroup: Applications/Internet
10139N/AVersion: 0.5.2
10139N/ARelease: 4
10139N/ADistribution: Java Desktop System
11253N/AVendor: Sun Microsystems, Inc.
10794N/ASummary: A text-based web browser
10794N/ASource: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
10794N/AURL: http://w3m.sourceforge.net/
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10815N/ADocdir: %{_defaultdocdir}/doc
11025N/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%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
10139N/A%prep
10139N/A%setup -q
10139N/A
10139N/A%build
10139N/A%ifos linux
10139N/Aif [ -x /usr/bin/getconf ]; then
10139N/A CPUS=`getconf _NPROCESSORS_ONLN`
10139N/Afi
10139N/A%else
10139N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10139N/A%endif
10139N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10139N/A CPUS=1
10139N/Afi
10139N/A
10139N/Alibtoolize --force
10139N/Aintltoolize --copy --force --automake
10139N/Aaclocal $ACLOCAL_FLAGS -I .
10139N/A#autoheader
10139N/A#automake -a -c -f
10139N/A#autoconf
10139N/A
10139N/ACFLAGS="$RPM_OPT_FLAGS" \
10139N/A./configure --prefix=%{_prefix} \
10139N/A --mandir=%{_mandir} \
10139N/A --libdir=%{_libdir} \
10139N/A --libexecdir=%{_libexecdir} \
10139N/A --sysconfdir=%{_sysconfdir} \
10139N/A --with-browser=/usr/bin/firefox \
10139N/A %gtk_doc_option
10139N/A
10139N/Amake -j $CPUS
10139N/A
10139N/A%install
10139N/Amake install DESTDIR=$RPM_BUILD_ROOT
10139N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
10139N/Afind $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%post -p /sbin/ldconfig
10139N/A%postun -p /sbin/ldconfig
10139N/A
10139N/A%files
10794N/A%files
10794N/A%defattr(-, root, root)
10794N/A%doc Bonus ChangeLog NEWS README TODO doc doc-jp
10794N/A%{_sysconfdir}/w3m
11087N/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
10139N/A%{_datadir}/w3m/w3mhelp-funcname.pl
10139N/A%{_datadir}/w3m/w3mhelp.html
10139N/A
10139N/A%changelog
10139N/A* Wed Jan 02 2008 - halton.huo@sun.com
10139N/A- spilit from SFEw3m.spec
10139N/A