SUNWlibgoffice.spec revision 20307
10139N/A#
10139N/A# spec file for package SUNWlibgoffice
10139N/A#
20358N/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
17185N/A# package are under the same license as the package itself.
10139N/A#
10139N/A%define owner jefftsai
17176N/A#
17176N/A
17176N/A%include Solaris.inc
10139N/A
15322N/A%use goffice = goffice.spec
10139N/A
20358N/AName: SUNWlibgoffice
11020N/ASummary: goffice - Document centric set of APIs
10139N/AVersion: %{goffice.version}
18615N/ASUNW_Pkg: SUNWlibgoffice
10139N/AIPS_package_name: library/desktop/goffice
10139N/AMeta(info.classification): %{classification_prefix}:Development/System
10139N/ASUNW_Copyright: %{name}.copyright
11207N/ALicense: %{goffice.license}
16428N/ASUNW_BaseDir: %{_basedir}
16428N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
12786N/ASource1: %{name}-manpages-0.1.tar.gz
19019N/A
18966N/A%include default-depend.inc
19044N/A%include gnome-consolidation.inc
19019N/ARequires: SUNWlibglade
20118N/ARequires: SUNWlxml
20118N/ARequires: SUNWzlib
10139N/ARequires: SUNWlibgsf
10139N/ARequires: SUNWlibms
10139N/ARequires: SUNWgnome-libs
10139N/ABuildRequires: SUNWlibglade-devel
10139N/ABuildRequires: SUNWlxml-devel
10139N/ABuildRequires: SUNWgnome-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
10139N/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}
10139N/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
18966N/Aexport CFLAGS="$CFLAGS -I/usr/gnu/include -L/usr/gnu/lib -R/usr/gnu/lib -lintl"
19019N/A%endif
20118N/Aexport RPM_OPT_FLAGS="$CFLAGS"
10139N/Aexport LDFLAGS="%_ldflags"
10139N/A
10139N/A%goffice.build -d %name-%version
10139N/A
10139N/A%install
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A%goffice.install -d %name-%version
10139N/A
10139N/A# install man page
10139N/Arm -rf $RPM_BUILD_ROOT%{_mandir}
10139N/Acd %{_builddir}/%name-%version/sun-manpages
10139N/Amake install DESTDIR=$RPM_BUILD_ROOT
10139N/A
16777N/A%if %build_l10n
10392N/A%else
13004N/A# REMOVE l10n FILES
13004N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/locale
10139N/A%endif
11881N/A
11314N/A%clean
11391N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%files
10139N/A%doc -d goffice-%{goffice.version} README AUTHORS
11314N/A%doc(bzip2) -d goffice-%{goffice.version} COPYING ChangeLog po/ChangeLog tools/ChangeLog NEWS
11020N/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*
11314N/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/*
11314N/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
11207N/A%{_libdir}/pkgconfig/*
11328N/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
10139N/A* Wed Sep 10 2008 - halton.huo@sun.com
10139N/A- Add %doc to %files for new copyright
10139N/A* Wed Aug 06 2008 - halton.huo@sun.com
10139N/A- Use sgml format instead for man pages.
10139N/A* Tue Aug 05 2008 - halton.huo@sun.com
10139N/A- Add man page for libgoffice
10139N/A* Tue Jul 01 2008 - halton.huo@sun.com
10139N/A- Add copyright
10139N/A* Mon Jun 30 2008 - halton.huo@sun.com
10139N/A- Copied from SFEgoffice and rename to SUNWlibgoffice
10139N/A* Tue Jun 24 2008 - nonsea@users.sourceforge.net
10139N/A- Split base part to base/goffice.spec
10139N/A- Bump to 0.6.4
10139N/A* Mon Apr 14 2008 - trisk@acm.jhu.edu
10139N/A- Bump to 0.6.2, update dependencies
10139N/A* Tue Sep 04 2007 - Thomas Wagner
20358N/A- bump to 0.15.1, add %{version} to Download-Dir (might change again)
20358N/A- conditional !%build_l10n rmdir $RPM_BUILD_ROOT/%{_datadir}/locale
19856N/A* Sat May 26 2007 - Thomas Wagner
19856N/A- bump to 0.15.0
19028N/A- set compiler to gcc
19028N/A- builds with Avahi, if present
18966N/A* Thu Apr 06 2007 - Thomas Wagner
18966N/A- Initial spec
18496N/A
18496N/A
18245N/A
18245N/A