SUNWlibgoffice.spec revision 19343
10139N/A#
10139N/A# spec file for package SUNWlibgoffice
10139N/A#
12217N/A# includes module(s): goffice
10139N/A#
10139N/A# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
10139N/A# This file and all modifications and additions to the pristine
16044N/A# package are under the same license as the package itself.
10139N/A#
10139N/A%define owner halton
10139N/A#
10139N/A
10139N/A%include Solaris.inc
16164N/A
10139N/A%use goffice = goffice.spec
10139N/A
10139N/AName: SUNWlibgoffice
10139N/ASummary: goffice - Document centric set of APIs
16164N/AVersion: %{goffice.version}
10411N/ASUNW_Pkg: SUNWlibgoffice
10142N/AIPS_package_name: library/desktop/goffice
12773N/AMeta(info.classification): %{classification_prefix}:Development/System
12773N/ASUNW_Copyright: %{name}.copyright
12773N/ALicense: %{goffice.license}
10411N/ASUNW_BaseDir: %{_basedir}
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10548N/ASource1: %{name}-manpages-0.1.tar.gz
15880N/A
15880N/A%include default-depend.inc
10139N/A%include gnome-consolidation.inc
10139N/ARequires: SUNWlibglade
10139N/ARequires: SUNWlxml
10139N/ARequires: SUNWzlib
10139N/ARequires: SUNWlibgsf
10139N/ARequires: SUNWlibms
10139N/ARequires: SUNWgnome-libs
10139N/ARequires: SUNWgnome-python26-libs
10139N/ABuildRequires: SUNWlibglade-devel
10139N/ABuildRequires: SUNWlxml-devel
10139N/ABuildRequires: SUNWgnome-libs-devel
10139N/ABuildRequires: SUNWgnome-python26-libs-devel
10139N/A%if %option_with_gnu_iconv
10139N/ARequires: SUNWgnu-libiconv
10139N/ARequires: SUNWgnu-gettext
10139N/A%else
10139N/ARequires: SUNWuiu8
10139N/A%endif
10139N/A
10139N/A%package devel
10139N/ASummary: %{summary} - development files
10139N/ASUNW_BaseDir: %{_basedir}
10139N/A%include default-depend.inc
10139N/A%include gnome-consolidation.inc
10139N/ARequires: %name
10139N/ABuildRequires: SUNWgnome-libs-devel
10139N/A
10139N/A%if %build_l10n
10142N/A%package l10n
10139N/AIPS_package_name: library/desktop/goffice/l10n
10139N/ASummary: %{summary} - l10n files
10139N/ASUNW_BaseDir(relocate_from:%{_prefix}): %{_dto_il10n_basedir}
15880N/A%include default-depend.inc
10139N/A%include gnome-consolidation.inc
10139N/ARequires: %{name}
10139N/A%endif
10139N/A
10139N/A%prep
10139N/Arm -rf %name-%version
10139N/Amkdir -p %name-%version
10139N/A%goffice.prep -d %name-%version
10139N/Acd %{_builddir}/%name-%version
10139N/Agzcat %SOURCE1 | tar xf -
10139N/A
10139N/A%build
10139N/Aexport ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
10139N/Aexport CFLAGS="%optflags"
10139N/A%if %option_with_gnu_iconv
10139N/Aexport CFLAGS="$CFLAGS -I/usr/gnu/include -L/usr/gnu/lib -R/usr/gnu/lib -lintl"
10139N/A%endif
10139N/Aexport RPM_OPT_FLAGS="$CFLAGS"
10139N/Aexport LDFLAGS="%_ldflags"
10139N/A
10139N/A%goffice.build -d %name-%version
10139N/A
12773N/A%install
12773N/Arm -rf $RPM_BUILD_ROOT
12773N/A%goffice.install -d %name-%version
12773N/A
12773N/A# install man page
10139N/Arm -rf $RPM_BUILD_ROOT%{_mandir}
16174N/Acd %{_builddir}/%name-%version/sun-manpages
10139N/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
11965N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%files
10139N/A%doc -d goffice-%{goffice.version} README AUTHORS
10139N/A%doc(bzip2) -d goffice-%{goffice.version} COPYING ChangeLog po/ChangeLog tools/ChangeLog NEWS
10139N/A%dir %attr (0755, root, other) %{_datadir}/doc
10139N/A%defattr(-, root, bin)
10139N/A%dir %attr (0755, root, bin) %{_libdir}
10139N/A%{_libdir}/libgoffice*.so*
10139N/A%{_libdir}/goffice
10139N/A%dir %attr (0755, root, sys) %{_datadir}
10139N/A%{_datadir}/goffice
10139N/A%dir %attr (0755, root, other) %{_datadir}/pixmaps
10139N/A%{_datadir}/pixmaps/*
10139N/A%dir %attr(0755, root, bin) %{_mandir}
10139N/A%dir %attr(0755, root, bin) %{_mandir}/*
10139N/A%{_mandir}/*/*
10139N/A
10139N/A%files devel
10139N/A%defattr (-, root, bin)
10139N/A%dir %attr (0755, root, bin) %{_includedir}
10139N/A%{_includedir}/*
10139N/A%dir %attr (0755, root, bin) %{_libdir}
10139N/A%dir %attr (0755, root, other) %{_libdir}/pkgconfig
10139N/A%{_libdir}/pkgconfig/*
10139N/A%dir %attr (0755, root, sys) %dir %{_datadir}
10139N/A%{_datadir}/gtk-doc
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
10139N/A%endif
10139N/A
10139N/A%changelog
10139N/A* Wed Nov 05 2008 - halton.huo@sun.com
10139N/A- Add po/ChangeLog to %files
16164N/A* Wed Sep 10 2008 - halton.huo@sun.com
16164N/A- Add %doc to %files for new copyright
16164N/A* Wed Aug 06 2008 - halton.huo@sun.com
16149N/A- Use sgml format instead for man pages.
16149N/A* Tue Aug 05 2008 - halton.huo@sun.com
16044N/A- Add man page for libgoffice
16044N/A* Tue Jul 01 2008 - halton.huo@sun.com
15880N/A- Add copyright
15880N/A* Mon Jun 30 2008 - halton.huo@sun.com
15880N/A- Copied from SFEgoffice and rename to SUNWlibgoffice
15448N/A* Tue Jun 24 2008 - nonsea@users.sourceforge.net
15448N/A- Split base part to base/goffice.spec
14482N/A- Bump to 0.6.4
14482N/A* Mon Apr 14 2008 - trisk@acm.jhu.edu
14203N/A- Bump to 0.6.2, update dependencies
14203N/A* Tue Sep 04 2007 - Thomas Wagner
14117N/A- bump to 0.15.1, add %{version} to Download-Dir (might change again)
14117N/A- conditional !%build_l10n rmdir $RPM_BUILD_ROOT/%{_datadir}/locale
13958N/A* Sat May 26 2007 - Thomas Wagner
13958N/A- bump to 0.15.0
13777N/A- set compiler to gcc
13777N/A- builds with Avahi, if present
13619N/A* Thu Apr 06 2007 - Thomas Wagner
13619N/A- Initial spec
13431N/A
13431N/A
13380N/A