SUNWlibgoffice.spec revision 20892
13561N/A#
13561N/A# spec file for package SUNWlibgoffice
13561N/A#
13561N/A# includes module(s): goffice
13561N/A#
13561N/A# Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
13561N/A# This file and all modifications and additions to the pristine
13561N/A# package are under the same license as the package itself.
13561N/A#
17177N/A%define owner jefftsai
17177N/A#
17177N/A
13561N/A%include Solaris.inc
13561N/A
13561N/A%use goffice = goffice.spec
13561N/A
13561N/AName: SUNWlibgoffice
13561N/ASummary: goffice - Document centric set of APIs
13561N/AVersion: %{goffice.version}
13561N/ASUNW_Pkg: SUNWlibgoffice
13561N/AIPS_package_name: library/desktop/goffice
13561N/AMeta(info.classification): %{classification_prefix}:Development/System
13561N/ASUNW_Copyright: %{name}.copyright
13561N/ALicense: %{goffice.license}
13561N/ASUNW_BaseDir: %{_basedir}
13561N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
13561N/ASource1: %{name}-manpages-0.1.tar.gz
13561N/A
13561N/A%include default-depend.inc
13561N/A%include desktop-incorporation.inc
13561N/ARequires: library/desktop/libglade
13561N/ARequires: library/libxml2
13561N/ARequires: library/zlib
13561N/ARequires: library/desktop/libgsf
13561N/ARequires: system/library/math
13561N/ARequires: library/gnome/gnome-libs
13561N/ABuildRequires: library/desktop/libglade
13561N/ABuildRequires: library/libxml2
13561N/ABuildRequires: library/gnome/gnome-libs
13561N/A%if %option_with_gnu_iconv
13561N/ARequires: SUNWgnu-libiconv
13561N/ARequires: SUNWgnu-gettext
13561N/A%else
13561N/ARequires: system/library/iconv/utf-8
13561N/A%endif
13561N/A
13561N/A%package devel
13561N/ASummary: %{summary} - development files
13561N/ASUNW_BaseDir: %{_basedir}
13561N/A
13561N/A%package l10n
13561N/ASummary: %{summary} - l10n files
13561N/A
13561N/A%prep
13561N/Arm -rf %name-%version
13561N/Amkdir -p %name-%version
13561N/A%goffice.prep -d %name-%version
13561N/Acd %{_builddir}/%name-%version
13561N/Agzcat %SOURCE1 | tar xf -
13561N/A
13561N/A%build
13561N/Aexport ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
13561N/Aexport CFLAGS="%optflags"
%if %option_with_gnu_iconv
export CFLAGS="$CFLAGS -I/usr/gnu/include -L/usr/gnu/lib -R/usr/gnu/lib -lintl"
%endif
export RPM_OPT_FLAGS="$CFLAGS"
export LDFLAGS="%_ldflags"
%goffice.build -d %name-%version
%install
rm -rf $RPM_BUILD_ROOT
%goffice.install -d %name-%version
# install man page
rm -rf $RPM_BUILD_ROOT%{_mandir}
cd %{_builddir}/%name-%version/sun-manpages
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%doc -d goffice-%{goffice.version} README AUTHORS
%doc(bzip2) -d goffice-%{goffice.version} COPYING ChangeLog po/ChangeLog tools/ChangeLog NEWS
%dir %attr (0755, root, other) %{_datadir}/doc
%defattr(-, root, bin)
%dir %attr (0755, root, bin) %{_libdir}
%{_libdir}/libgoffice*.so*
%{_libdir}/goffice
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/goffice
%dir %attr (0755, root, other) %{_datadir}/pixmaps
%{_datadir}/pixmaps/*
%dir %attr(0755, root, bin) %{_mandir}
%dir %attr(0755, root, bin) %{_mandir}/*
%{_mandir}/*/*
%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) %dir %{_datadir}
%{_datadir}/gtk-doc
%files l10n
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%attr (-, root, other) %{_datadir}/locale
%changelog
* Fri Feb 10 2012 - padraig.obriain@oracle.com
- Update Requires and BuildRequires to be IPS package names.
* Wed Nov 05 2008 - halton.huo@sun.com
- Add po/ChangeLog to %files
* Wed Sep 10 2008 - halton.huo@sun.com
- Add %doc to %files for new copyright
* Wed Aug 06 2008 - halton.huo@sun.com
- Use sgml format instead for man pages.
* Tue Aug 05 2008 - halton.huo@sun.com
- Add man page for libgoffice
* Tue Jul 01 2008 - halton.huo@sun.com
- Add copyright
* Mon Jun 30 2008 - halton.huo@sun.com
- Copied from SFEgoffice and rename to SUNWlibgoffice
* Tue Jun 24 2008 - nonsea@users.sourceforge.net
- Split base part to base/goffice.spec
- Bump to 0.6.4
* Mon Apr 14 2008 - trisk@acm.jhu.edu
- Bump to 0.6.2, update dependencies
* Tue Sep 04 2007 - Thomas Wagner
- bump to 0.15.1, add %{version} to Download-Dir (might change again)
- conditional !%build_l10n rmdir $RPM_BUILD_ROOT/%{_datadir}/locale
* Sat May 26 2007 - Thomas Wagner
- bump to 0.15.0
- set compiler to gcc
- builds with Avahi, if present
* Thu Apr 06 2007 - Thomas Wagner
- Initial spec