18861N/A#
18861N/A# spec file for package goffice
18861N/A#
20903N/A# Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
18861N/A# This file and all modifications and additions to the pristine
18861N/A# package are under the same license as the package itself.
18861N/A#
19026N/A%define owner jefftsai
18861N/A#
18861N/A
18861N/A%define OSR gnome.org:0
18861N/A
18861N/AName: goffice
18861N/ASummary: Set of document centric objects and utilities for glib/gtk
18861N/ALicense: GPL v2
18861N/AGroup: System/Libraries
20841N/AVersion: 0.8.17
18861N/AVendor: Gnome Community
18861N/ARelease: 1
18861N/ADistribution: Java Desktop System
18861N/AVendor: Sun Microsystems, Inc.
18861N/AURL: http://www.gnome.org/
18861N/ASource: http://download.gnome.org/sources/%{name}/0.8/%{name}-%{version}.tar.bz2
18861N/A%if %build_l10n
18861N/ASource1: l10n-configure.sh
18861N/A%endif
18861N/ABuildRoot: %{tmpdir}/%{name}-%{version}-root
18861N/A
18861N/APatch1: libgoffice-01-fixxref-modules.diff
18861N/A
18861N/ABuildRequires: automake1.8
18861N/ABuildRequires: intltool
18861N/ABuildRequires: gtk+2-devel
18861N/ABuildRequires: libgnomeprint-devel >= 2.8.2
18861N/ABuildRequires: libgsf-devel >= 1:1.13.3
18861N/ABuildRequires: libglade2.0-devel
18861N/ABuildRequires: gtk-doc
18861N/ABuildRequires: perl-XML-Parser
18861N/A
18861N/A
18861N/A%description
18861N/AGOffice -- A glib/gtk set of document centric objects and utilities
18861N/A
18861N/A%prep
18861N/A%setup -q
18861N/A%patch1 -p1
18861N/A
18861N/A%build
18861N/A%ifos linux
18861N/Aif [ -x /usr/bin/getconf ]; then
18861N/A CPUS=`getconf _NPROCESSORS_ONLN`
18861N/Afi
18861N/A%else
18861N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
18861N/A%endif
18861N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
18861N/A CPUS=1
18861N/Afi
18861N/A
18861N/Alibtoolize --force
18861N/Aintltoolize --force --automake
18861N/A
18861N/A%if %build_l10n
18861N/Ash %SOURCE1 --enable-copyright
18861N/A%endif
18861N/A
18861N/Aaclocal $ACLOCAL_FLAGS
18861N/Aautoheader
18861N/Aautomake -a -f -c --gnu
18861N/Aautoconf
18861N/A
20903N/ACFLAGS="$RPM_OPT_FLAGS -I/usr/include/pcre"
18861N/A./configure --prefix=%{_prefix} \
18861N/A --libdir=%{_libdir} \
18861N/A --libexecdir=%{_libexecdir} \
18861N/A --datadir=%{_datadir} \
18861N/A --mandir=%{_mandir} \
18861N/A --sysconfdir=%{_sysconfdir} \
18861N/A --without-long-double \
18861N/A %gtk_doc_option
18861N/A
18861N/Amake -j $CPUS
18861N/A
18861N/A
18861N/A%install
18861N/Aexport GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
18861N/Amake -i install DESTDIR=$RPM_BUILD_ROOT
18861N/Aunset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
18861N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
18861N/Afind $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
18861N/A
18861N/A
18861N/A%clean
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/A
18861N/A%files
18861N/A%defattr(-,root,root)
18861N/A%doc README NEWS AUTHORS BUGS ChangeLog MAINTAINERS
18861N/A%{_libdir}/lib*.so*
18861N/A%dir %{_libdir}/%name/
18861N/A%{_datadir}/%name
18861N/A%{_datadir}/pixmaps/%name
18861N/A%{_includedir}/libgoffice-0.3/
18861N/A%attr(644,root,root) %{_libdir}/lib*a
18861N/A%{_libdir}/pkgconfig/*.pc
18861N/A%{_datadir}/gtk-doc/html/goffice/
18861N/A
18861N/A
18861N/A%changelog
20903N/A* Wed May 02 2012 - brian.cameron@oracle.com
20903N/A- Add -I/usr/include/pcre to CFLAGS.
20841N/A* Fri Sep 30 2011 - brian.cameron@oracle.com
20841N/A- Bump to 0.8.17.
19026N/A* Wed Oct 20 2010 - brian.cameron@oracle.com
19026N/A- Bump to 0.8.11.
19026N/A* Thu Aug 26 2010 - brian.cameron@oracle.com
19026N/A- Bump to 0.8.9.
19026N/A* Mon Jul 5 2010 - christian.kelly@oracle.com
19026N/A- Bump to 0.8.7.
18861N/A* Mon May 31 2010 - halton.huo@sun.com
18861N/A- Bump to 0.8.5
18861N/A* Fri May 21 2010 - halton.huo@sun.com
18861N/A- Bump to 0.8.4
18861N/A* Sun May 09 2010 - halton.huo@sun.com
18861N/A- Bump to 0.8.3
18861N/A* Mon Apr 19 2010 - halton.huo@sun.com
18861N/A- Bump to 0.8.2
18861N/A* Sun Mar 14 2010 - christian.kelly@sun.com
18861N/A- Add libgoffice-01-fixxref-modules.diff to fix build issue.
18861N/A* Tue Mar 09 2010 - halton.huo@sun.com
18861N/A- Bump to 0.8.1
18861N/A* Mon Feb 22 2010 - halton.huo@sun.com
18861N/A- Bump to 0.8.0
18861N/A* Tue Jan 26 2010 - halton.huo@sun.com
18861N/A- Bump to 0.7.18
18861N/A- Remove upstreamed patch 01-unamed-union.diff
18861N/A* Wed Dec 16 2009 - halton.huo@sun.com
18861N/A- Bump to 0.7.17
18861N/A* Mon Nov 30 2009 - halton.huo@sun.com
18861N/A- Bump to 0.7.16
18861N/A* Wed Nov 02 2009 - halton.huo@sun.com
18861N/A- Bump to 0.7.15
18861N/A* Wed Oct 14 2009 - dave.lin@sun.com
18861N/A- Bump to 0.7.14
18861N/A* Tue Seo 21 2009 - dave.lin@sun.com
18861N/A- Bump to 0.7.13
18861N/A* Sun Sep 06 2009 - dave.lin@sun.com
18861N/A- Bump to 0.7.12
18861N/A* Tue Sep 01 2009 - dave.lin@sun.com
18861N/A- Bump to 0.7.11
18861N/A* Mon Aug 31 2009 - halton.huo@sun.com
18861N/A- Bump to 0.7.10
18861N/A- Add patch -unamed-union.diff to fix bugzilla #593608
18861N/A* Mon Aug 17 2009 - halton.huo@sun.com
18861N/A- Bump to 0.7.9
18861N/A* Mon Jun 22 2009 - halton.huo@sun.com
18861N/A- Bump to 0.7.8
18861N/A* Mon May 25 2009 - halton.huo@sun.com
18861N/A- Bump to 0.7.7
18861N/A* Thu Mar 07 2009 - halton.huo@sun.com
18861N/A- Bump to 0.7.6
18861N/A* Wed Apr 29 2009 - halton.huo@sun.com
18861N/A- Bump to 0.7.5
18861N/A* Mon Mar 23 2009 - halton.huo@sun.com
18861N/A- Bump to 0.7.4
18861N/A* Thu Feb 26 2009 - dave.lin@sun.com
18861N/A- Bump to 0.7.3
18861N/A* Mon Dec 29 2008 - halton.huo@sun.com
18861N/A- Add --without-long-double to fix CR #6761452
18861N/A* Mon Oct 20 2008 - halton.huo@sun.com
18861N/A- Bump to 0.7.2
18861N/A* Mon Sep 01 2008 - halton.huo@sun.com
18861N/A- Bump to 0.7.1
18861N/A- Remove upstreamed patch no-sunmath-lib.diff
18861N/A* Wed Jun 25 2008 - nonsea@users.sourceforge.net
18861N/A- Bump to 0.7.0
18861N/A* Tue Jun 24 2008 - nonsea@users.sourceforge.net
18861N/A- Initial version