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