SUNWlibgoffice.spec revision 18861
13582N/A#
13582N/A# spec file for package SUNWlibgoffice
16131N/A#
16131N/A# includes module(s): goffice
16131N/A#
13582N/A# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
17185N/A# This file and all modifications and additions to the pristine
13582N/A# package are under the same license as the package itself.
17176N/A#
17176N/A%define owner halton
17176N/A#
15438N/A
15438N/A%include Solaris.inc
15438N/A
17191N/A%use goffice = goffice.spec
15438N/A
15438N/AName: SUNWlibgoffice
15438N/ASummary: goffice - Document centric set of APIs
15438N/AVersion: %{goffice.version}
17191N/ASUNW_Pkg: SUNWlibgoffice
15438N/AIPS_package_name: library/desktop/goffice
16714N/AMeta(info.classification): %{classification_prefix}:Development/System
15438N/ASUNW_Copyright: %{name}.copyright
16714N/ASUNW_BaseDir: %{_basedir}
15438N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
15438N/ASource1: %{name}-manpages-0.1.tar.gz
15438N/A
15438N/A%include default-depend.inc
15438N/ARequires: SUNWlibglade
13582N/ARequires: SUNWlxml
13582N/ARequires: SUNWzlib
13582N/ARequires: SUNWlibgsf
13582N/ARequires: SUNWlibms
15438N/ARequires: SUNWgnome-libs
13582N/ARequires: SUNWgnome-python-libs
13582N/ABuildRequires: SUNWlibglade-devel
13582N/ABuildRequires: SUNWlxml-devel
13582N/ABuildRequires: SUNWgnome-libs-devel
13582N/ABuildRequires: SUNWgnome-python-libs-devel
13582N/A%if %option_with_gnu_iconv
13582N/ARequires: SUNWgnu-libiconv
13582N/ARequires: SUNWgnu-gettext
13582N/A%else
13582N/ARequires: SUNWuiu8
13582N/A%endif
15438N/A
15438N/A%package devel
15438N/ASummary: %{summary} - development files
15438N/ASUNW_BaseDir: %{_basedir}
15438N/A%include default-depend.inc
15438N/ARequires: %name
15438N/ABuildRequires: SUNWgnome-libs-devel
15438N/A
15438N/A%if %build_l10n
15438N/A%package l10n
15438N/ASummary: %{summary} - l10n files
15438N/ASUNW_BaseDir: %{_basedir}
15438N/A%include default-depend.inc
15438N/ARequires: %{name}
15438N/A%endif
13582N/A
13582N/A%prep
13582N/Arm -rf %name-%version
15438N/Amkdir -p %name-%version
15438N/A%goffice.prep -d %name-%version
15438N/Acd %{_builddir}/%name-%version
13582N/Agzcat %SOURCE1 | tar xf -
13582N/A
13582N/A%build
13582N/Aexport ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
13582N/Aexport CFLAGS="%optflags"
15438N/A%if %option_with_gnu_iconv
15438N/Aexport CFLAGS="$CFLAGS -I/usr/gnu/include -L/usr/gnu/lib -R/usr/gnu/lib -lintl"
15438N/A%endif
15438N/Aexport RPM_OPT_FLAGS="$CFLAGS"
15438N/Aexport LDFLAGS="%_ldflags"
15438N/A
15438N/A%goffice.build -d %name-%version
15438N/A
13582N/A%install
13582N/Arm -rf $RPM_BUILD_ROOT
17191N/A%goffice.install -d %name-%version
17191N/A
16714N/A# install man page
16714N/Arm -rf $RPM_BUILD_ROOT%{_mandir}
15438N/Acd %{_builddir}/%name-%version/sun-manpages
15438N/Amake install DESTDIR=$RPM_BUILD_ROOT
%if %build_l10n
%else
# REMOVE l10n FILES
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
%endif
%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
%if %build_l10n
%files l10n
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%attr (-, root, other) %{_datadir}/locale
%endif
%changelog
* 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