18861N/A#
18861N/A# spec file for package SUNWlynx
18861N/A#
18861N/A# Copyright 2010 Sun Microsystems, Inc.
18861N/A# This file and all modifications and additions to the pristine
18861N/A# package are under the same license as the package itself.
18861N/A#
18861N/A%define owner dermot
18861N/A#
18861N/A
18861N/A%include Solaris.inc
18861N/A
18861N/A%define OSR 9837:2.8.6
18861N/A
18861N/AName: SUNWlynx
18861N/AIPS_package_name: web/browser/lynx
18861N/AMeta(info.classification): %{classification_prefix}:Applications/Internet
18861N/ASummary: Text-mode web browser
18861N/ALicense: LGPL v2
18861N/AVersion: 2.8.7
18861N/AURL: http://lynx.browser.org/
18861N/ASource: http://lynx.isc.org/lynx%{version}/lynx%{version}.tar.bz2
18861N/A# date:2009-02-20 owner:mattman type:feature
18861N/APatch1: lynx-01-manpage.diff
19905N/A# date:2010-01-27 owner:yippi type:bug state:upstream
18861N/APatch2: lynx-02-locale.diff
18861N/ASUNW_BaseDir: %{_basedir}
18861N/ASUNW_Copyright: %{name}.copyright
18861N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
18861N/A%include default-depend.inc
20857N/A%include desktop-incorporation.inc
18861N/ARequires: %{name}-root
18861N/ARequires: SUNWopenssl-libraries
18861N/ARequires: SUNWncurses
18861N/A
18861N/A%package root
18861N/ASummary: %{summary} - / filesystem
18861N/ASUNW_BaseDir: /
18861N/A%include default-depend.inc
20857N/A%include desktop-incorporation.inc
18861N/A
18861N/A%package l10n
18861N/ASummary: %{summary} - l10n files
18861N/ARequires: %{name}
18861N/A
18861N/A%prep
18861N/A%setup -q -n lynx2-8-7
18861N/A%patch1 -p1
18861N/A%patch2 -p1
18861N/A
18861N/A%build
18861N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
18861N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
18861N/A CPUS=1
18861N/Afi
18861N/A
18861N/Aexport CFLAGS="-I/usr/include/ncurses -D_XPG6 %optflags"
18861N/Aexport LDFLAGS="%_ldflags -L/usr/sfw/lib -R/usr/sfw/lib -L/usr/gnu/lib -R/usr/gnu/lib"
18861N/A
18861N/A./configure --prefix=/usr \
18861N/A --enable-nls \
18861N/A --enable-japanese-utf8 \
18861N/A --enable-widec \
18861N/A --sysconfdir=%{_sysconfdir}/lynx \
18861N/A --mandir=%{_mandir} \
18861N/A --with-ssl \
18861N/A --with-screen=ncurses
18861N/A
18861N/Amake -j$CPUS
18861N/A
18861N/A%install
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/Amake install DESTDIR=$RPM_BUILD_ROOT
18861N/A
18861N/A%clean
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/A
18861N/A%files
18861N/A%defattr (-, root, bin)
18861N/A%dir %attr (0755, root, bin) %{_bindir}
18861N/A%{_bindir}/*
18861N/A%dir %attr (0755, root, sys) %{_datadir}
18861N/A%dir %attr (0755, root, bin) %{_mandir}
18861N/A%dir %attr (0755, root, bin) %{_mandir}/man1
18861N/A%{_mandir}/man1/*
18861N/A%doc AUTHORS
18861N/A%doc COPYHEADER
18861N/A%doc COPYING
18861N/A%dir %attr (0755, root, other) %{_datadir}/doc
18861N/A
18861N/A%files root
18861N/A%defattr (-, root, sys)
18861N/A%attr (0755, root, sys) %dir %{_sysconfdir}
18861N/A%attr (0755, root, sys) %dir %{_sysconfdir}/lynx
18861N/A%{_sysconfdir}/lynx/*
18861N/A
18861N/A%files l10n
18861N/A%defattr (-, root, bin)
18861N/A%dir %attr (0755, root, sys) %{_datadir}
18861N/A%attr (-, root, other) %{_datadir}/locale
18861N/A
18861N/A%changelog
18861N/A* Wed Jan 27 2010 - brian.cameron@sun.com
18861N/A- Bump to 2.8.7.
18861N/A* Mon Dec 22 2008 - takao.fujiwara@sun.com
18861N/A- Add patch g11n-iconv.diff to use Solaris iconv.
18861N/A- Add patch g11n-use-local-char.diff. The default charset is the current encoding.
18861N/A- Add patch g11n-utf8-bookmark.diff so that input method works on UTF-8.
18861N/A- Add configure option --enable-japanese-utf8 --enable-widec
18861N/A- Add l10n package.
18861N/A* Tue Dec 16 2008 - dermot.mccluskey@sun.com
18861N/A- ssl is now in /usr, not /usr/sfw
18861N/A* Mon Nov 24 2008 - dermot.mccluskey@sun.com
18861N/A- fix default permissions for -root
18861N/A* Fri Nov 21 2008 - dermot.mccluskey@sun.com
18861N/A- use ncurses and add openssl support
18861N/A* Thu nov 20 2008 - dermot.mccluskey@sun.com
18861N/A- initial version
19368N/A
19685N/A