SUNWlibrsvg.spec
author henryz
Wed, 09 Apr 2008 07:35:21 +0000
changeset 12065 ec40d145a28b
parent 11934 37ad73e150e1
child 12263 930dc7240f6a
permissions -rw-r--r--
+2008-04-09 Henry Zhang <[email protected]> + + * patches/virt-manager-04-temporary-patch.diff: + Change the patch to fix AllY bug, 6686007 +

#
# spec file for package SUNWlibrsvg
#
# includes module(s): librsvg
#
# Copyright 2007 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner: alo
#
#FIXME: need 64-bit version for 64-bit gdk-pixbuf loader?

%include Solaris.inc

%use rsvg = librsvg.spec

Name:                    SUNWlibrsvg
Summary:                 SVG-format scalable graphics support library
Version:                 %{rsvg.version}
SUNW_BaseDir:            %{_basedir}
SUNW_Copyright:          %{name}.copyright
Source:                  %{name}-manpages-0.1.tar.gz
BuildRoot:               %{_tmppath}/%{name}-%{version}-build

%include default-depend.inc
BuildRequires: SUNWlibcroco-devel
BuildRequires: SUNWgnome-base-libs-devel
BuildRequires: SUNWgnome-vfs-devel
BuildRequires: SUNWgnome-print-devel
BuildRequires: SUNWlibpopt-devel
BuildRequires: SUNWfirefox-devel
Requires: SUNWgnome-base-libs
Requires: SUNWlibcroco
Requires: SUNWgnome-vfs
Requires: SUNWfontconfig
Requires: SUNWfreetype2
Requires: SUNWgnome-print
Requires: SUNWlibms
Requires: SUNWlibpopt
Requires: SUNWlxml
Requires: SUNWpostrun
# SFEgeckosdk provides /usr/bin/mozilla-config but not the required headers.
# SUNWfirefox-devel provides /usr/bin/firefox-config and the header files.
BuildConflicts: SFEgeckosdk

%package devel
Summary:                 %{summary} - development files
SUNW_BaseDir:            %{_basedir}
%include default-depend.inc

%prep
rm -rf %name-%version
mkdir %name-%version
%rsvg.prep -d %name-%version
cd %{_builddir}/%name-%version
gzcat %SOURCE0 | tar xf -

%build
export PKG_CONFIG_PATH=%{_pkg_config_path}
export MSGFMT="/usr/bin/msgfmt"
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
export PERL5LIB=%{_prefix}/perl5/site_perl/5.6.1/sun4-solaris-64int
export CFLAGS="%optflags -I%{_includedir} -I%{_includedir}/mps"
export RPM_OPT_FLAGS="$CFLAGS"
export LDFLAGS="%_ldflags"

%rsvg.build -d %name-%version

%install
%rsvg.install -d %name-%version
#Firefox has built-in support for svg
rm -rf $RPM_BUILD_ROOT%{_libdir}/mozilla
rm -rf $RPM_BUILD_ROOT%{_mandir}
cd %{_builddir}/%name-%version/sun-manpages
make install DESTDIR=$RPM_BUILD_ROOT

# Delete gtk-doc files before packagine.
rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc

%{?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

%post
( echo 'test -d %{_sysconfdir}/gtk-2.0 || exit 0';
  echo 'test -x %{_bindir}/gdk-pixbuf-query-loaders || exit 0';
  echo '%{_bindir}/gdk-pixbuf-query-loaders \';
  echo '    > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders' ) | \
      $BASEDIR/lib/postrun -u -c JDS_wait

%postun
test -x $BASEDIR/lib/postrun || exit 0
( echo 'test -d %{_sysconfdir}/gtk-2.0 || exit 0';
  echo 'test -x %{_bindir}/gdk-pixbuf-query-loaders || exit 0';
  echo '%{_bindir}/gdk-pixbuf-query-loaders \';
  echo '    > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders' ) | \
      $BASEDIR/lib/postrun -u -c JDS

%files
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_bindir}
%dir %attr (0755, root, bin) %{_libdir}
%{_bindir}/*
%{_libdir}/lib*.so*
%{_libdir}/gtk-2.0
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/pixmaps
%{_datadir}/pixmaps/*
%dir %attr(0755, root, bin) %{_mandir}
%dir %attr(0755, root, bin) %{_mandir}/man1
%{_mandir}/man1/*

%files devel
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_includedir}
%{_includedir}/*
%dir %attr (0755, root, bin) %{_libdir}
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/*
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr(0755, root, bin) %{_mandir}
%dir %attr(0755, root, bin) %{_mandir}/man3
%{_mandir}/man3/*


%changelog
* Thu Mar 27 2008 - [email protected]
- Added Copyright file.
* Fri Sep 28 2007 - [email protected]
- delete Nevada X dep
* Tue Jan 09 2007 - [email protected]
- Add BuildConflicts SFEgeckosdk because the build fails when SFEgeckosdk is
  installed. SFEgeckosdk provides /usr/bin/mozilla-config but not the required
  headers. Added BuildRequires SUNWfirefox-devel because it provides
  /usr/bin/firefox-config and the header files.
* Mon Sep 04 2006 - [email protected]
- New Manpage tarball
* Fri Jul 14 2006 - [email protected]
- update %post/%postun/etc scripts to support diskless client setup,
  part of 6448317
* Sun Jun 11 2006 - [email protected]
- change group from other to bin/sys
* Thu May 04 2006 - [email protected]
- merge -share pkg(s) into the base pkg(s)
* Thu Mar 23 2003 - [email protected]
- Updated package Summary description
* Mon Feb 20 2006 - [email protected]
- Update Build/Requires after running check-deps.pl script.
* Thu Feb  9 2006 - [email protected]
- Delete gtk-doc files before packaging.
* Mon Jan 09 2006 - [email protected]
- Remove gtk-doc dir from devel-share as files no longer installed.
* Sat Dec  3 2005 - [email protected]
- postrunify the gdk-pixbuf.loaders stuff
* Thu Sep 13 2005 - [email protected]
- Now use librsvg version number.
* Thu Sep 08 2005 - [email protected]
- Verified builds fine on Solaris and bump to 2.11.
* Tue Sep 06 2005 - [email protected]
- move mozilla plugin to /usr/sfw and add to %files
- fix %post/%postun scripts
* Wed Jul 27 2005 - [email protected]
- Created.