SUNWw3m.spec
author an230044
Mon, 27 Apr 2009 10:20:06 +0000
branchopensolaris-2008-11
changeset 14400 9bcbbac16a07
parent 13670 41334681405b
child 14493 2af0ebc5801e
permissions -rw-r--r--
#Bug 6755267 multiple security vulnerabilities in libpng before 1.2.32

#
# spec file for packages SUNWw3m
#
# includes module(s): w3m
#
# Copyright 2008 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner:rickju
#
%include Solaris.inc

%use w3m = w3m.spec

Name:                    SUNWw3m
Summary:                 A text-based web browser
Version:                 %{default_pkg_version}
SUNW_BaseDir:            %{_basedir}
SUNW_Copyright:          %{name}.copyright
BuildRoot:               %{_tmppath}/%{name}-%{version}-build

%include default-depend.inc
Requires:            SUNWlibms
Requires:            SUNWlibgc
Requires:            SUNWperl584core
Requires:            SUNWfirefox
Requires:            SUNWopenssl-libraries
BuildRequires:       SUNWlibm 
BuildRequires:       SUNWlibgc-devel
BuildRequires:       SUNWopenssl-include

%if %build_l10n
%package l10n
Summary:                 %{summary} - l10n files
SUNW_BaseDir:            %{_basedir}
%include default-depend.inc
Requires:                %{name}
%endif

%prep
rm -rf %name-%version
mkdir %name-%version
%w3m.prep -d %name-%version

%build
export CFLAGS="%optflags"
export LDFLAGS="%_ldflags -L/usr/sfw/lib -R/usr/sfw/lib"
export RPM_OPT_FLAGS="$CFLAGS"
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"

%w3m.build -d %name-%version

%install
rm -rf $RPM_BUILD_ROOT

%w3m.install -d %name-%version

#remove man page and help file for ja
rm -rf $RPM_BUILD_ROOT%{_mandir}/ja
rm -rf $RPM_BUILD_ROOT%{_datadir}/w3m/w3mhelp-funcdesc.ja.pl

%if %build_l10n
%else
# REMOVE l10n FILES
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
%endif

%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_bindir}
%{_bindir}/*
%dir %attr (0755, root, bin) %{_libdir}
%{_libdir}/w3m
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/w3m/*
%dir %attr(0755, root, bin) %{_mandir}
%dir %attr(0755, root, bin) %{_mandir}/man1
%{_mandir}/man1/*
%doc -d w3m-%{w3m.version} ChangeLog NEWS README
%dir %attr (0755, root, other) %{_datadir}/doc

%if %build_l10n
%files l10n
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%attr (-, root, other) %{_datadir}/locale
%endif

%changelog
* Fri Sep 19 2008 - [email protected]
- Add %doc for copyright files
* Thu Aug 06 2008 - [email protected]
- fix a libm dependency issue #6733315  
* Thu Jun 05 2008 - [email protected]
- renamed to SUNWw3m.spec 
* Wed Jun 04 2008 - [email protected]
- Add l10n packages with w3m fix.
* Mon May 26 2008 - [email protected]
- Add openssl dependency
* Tue Apr 15 2008 - [email protected]
- Remove l10n package as the libgsf files were the only l10n files.
* Mon Apr 14 2008 - [email protected]
- Move libgsf part into SUNWlibgsf. Remove -root and devel pkgs too.
* Thu Mar 27 2008 - [email protected]
- Add copyright file
* Wed Feb 27 2008 - [email protected]
- Remove man pages for ja
- Add Requires:{name} for -devel pkg
* Tue Feb 26 2008 - [email protected]
- Remove Requires: SUNWpostrun, Add Requires: SUNWdesktop-search-libs-root
- Move %{_mandir}/ja into -l1n pkg
- Use gconf-install.script for %post root
* Wed Feb 20 2008 - [email protected]
- Remove unused SOURCE0
* Tue Jan 29 2008 - [email protected]
- Add Build/Requires SUNWgnome-python-libs/-devel.
* Thu Jan 24 2008 - [email protected]
- Move libgc out.
* Wed Jan 02 2008 - [email protected]
- Initial spec-file created