18110
|
1 |
#
|
|
2 |
# spec file for package goffice
|
|
3 |
#
|
19974
|
4 |
# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
|
18110
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
20107
|
8 |
%define owner jefftsai
|
18110
|
9 |
#
|
|
10 |
|
|
11 |
%define OSR gnome.org:0
|
|
12 |
|
|
13 |
Name: goffice
|
|
14 |
Summary: Set of document centric objects and utilities for glib/gtk
|
|
15 |
License: GPL v2
|
|
16 |
Group: System/Libraries
|
20027
|
17 |
Version: 0.8.9
|
18110
|
18 |
Vendor: Gnome Community
|
|
19 |
Release: 1
|
|
20 |
Distribution: Java Desktop System
|
|
21 |
Vendor: Sun Microsystems, Inc.
|
|
22 |
URL: http://www.gnome.org/
|
|
23 |
Source: http://download.gnome.org/sources/%{name}/0.8/%{name}-%{version}.tar.bz2
|
|
24 |
%if %build_l10n
|
|
25 |
Source1: l10n-configure.sh
|
|
26 |
%endif
|
|
27 |
BuildRoot: %{tmpdir}/%{name}-%{version}-root
|
|
28 |
|
|
29 |
Patch1: libgoffice-01-fixxref-modules.diff
|
|
30 |
|
|
31 |
BuildRequires: automake1.8
|
|
32 |
BuildRequires: intltool
|
|
33 |
BuildRequires: gtk+2-devel
|
|
34 |
BuildRequires: libgnomeprint-devel >= 2.8.2
|
|
35 |
BuildRequires: libgsf-devel >= 1:1.13.3
|
|
36 |
BuildRequires: libglade2.0-devel
|
|
37 |
BuildRequires: gtk-doc
|
|
38 |
BuildRequires: perl-XML-Parser
|
|
39 |
|
|
40 |
|
|
41 |
%description
|
|
42 |
GOffice -- A glib/gtk set of document centric objects and utilities
|
|
43 |
|
|
44 |
%prep
|
|
45 |
%setup -q
|
|
46 |
%patch1 -p1
|
|
47 |
|
|
48 |
%build
|
|
49 |
%ifos linux
|
|
50 |
if [ -x /usr/bin/getconf ]; then
|
|
51 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
52 |
fi
|
|
53 |
%else
|
|
54 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
55 |
%endif
|
|
56 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
57 |
CPUS=1
|
|
58 |
fi
|
|
59 |
|
|
60 |
libtoolize --force
|
|
61 |
intltoolize --force --automake
|
|
62 |
|
|
63 |
%if %build_l10n
|
|
64 |
sh %SOURCE1 --enable-copyright
|
|
65 |
%endif
|
|
66 |
|
|
67 |
aclocal $ACLOCAL_FLAGS
|
|
68 |
autoheader
|
|
69 |
automake -a -f -c --gnu
|
|
70 |
autoconf
|
|
71 |
|
|
72 |
CFLAGS="$RPM_OPT_FLAGS"
|
|
73 |
./configure --prefix=%{_prefix} \
|
|
74 |
--libdir=%{_libdir} \
|
|
75 |
--libexecdir=%{_libexecdir} \
|
|
76 |
--datadir=%{_datadir} \
|
|
77 |
--mandir=%{_mandir} \
|
|
78 |
--sysconfdir=%{_sysconfdir} \
|
|
79 |
--without-long-double \
|
|
80 |
%gtk_doc_option
|
|
81 |
|
|
82 |
make -j $CPUS
|
|
83 |
|
|
84 |
|
|
85 |
%install
|
|
86 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
|
|
87 |
make -i install DESTDIR=$RPM_BUILD_ROOT
|
|
88 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
|
|
89 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
90 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
|
91 |
|
|
92 |
|
|
93 |
%clean
|
|
94 |
rm -rf $RPM_BUILD_ROOT
|
|
95 |
|
|
96 |
%files
|
|
97 |
%defattr(-,root,root)
|
|
98 |
%doc README NEWS AUTHORS BUGS ChangeLog MAINTAINERS
|
|
99 |
%{_libdir}/lib*.so*
|
|
100 |
%dir %{_libdir}/%name/
|
|
101 |
%{_datadir}/%name
|
|
102 |
%{_datadir}/pixmaps/%name
|
|
103 |
%{_includedir}/libgoffice-0.3/
|
|
104 |
%attr(644,root,root) %{_libdir}/lib*a
|
|
105 |
%{_libdir}/pkgconfig/*.pc
|
|
106 |
%{_datadir}/gtk-doc/html/goffice/
|
|
107 |
|
|
108 |
|
|
109 |
%changelog
|
20027
|
110 |
* Thu Aug 26 2010 - [email protected]
|
|
111 |
- Bump to 0.8.9.
|
18206
|
112 |
* Mon Jul 5 2010 - [email protected]
|
|
113 |
- Bump to 0.8.7.
|
18110
|
114 |
* Mon May 31 2010 - [email protected]
|
|
115 |
- Bump to 0.8.5
|
|
116 |
* Fri May 21 2010 - [email protected]
|
|
117 |
- Bump to 0.8.4
|
|
118 |
* Sun May 09 2010 - [email protected]
|
|
119 |
- Bump to 0.8.3
|
|
120 |
* Mon Apr 19 2010 - [email protected]
|
|
121 |
- Bump to 0.8.2
|
|
122 |
* Sun Mar 14 2010 - [email protected]
|
|
123 |
- Add libgoffice-01-fixxref-modules.diff to fix build issue.
|
|
124 |
* Tue Mar 09 2010 - [email protected]
|
|
125 |
- Bump to 0.8.1
|
|
126 |
* Mon Feb 22 2010 - [email protected]
|
|
127 |
- Bump to 0.8.0
|
|
128 |
* Tue Jan 26 2010 - [email protected]
|
|
129 |
- Bump to 0.7.18
|
|
130 |
- Remove upstreamed patch 01-unamed-union.diff
|
|
131 |
* Wed Dec 16 2009 - [email protected]
|
|
132 |
- Bump to 0.7.17
|
|
133 |
* Mon Nov 30 2009 - [email protected]
|
|
134 |
- Bump to 0.7.16
|
|
135 |
* Wed Nov 02 2009 - [email protected]
|
|
136 |
- Bump to 0.7.15
|
|
137 |
* Wed Oct 14 2009 - [email protected]
|
|
138 |
- Bump to 0.7.14
|
|
139 |
* Tue Seo 21 2009 - [email protected]
|
|
140 |
- Bump to 0.7.13
|
|
141 |
* Sun Sep 06 2009 - [email protected]
|
|
142 |
- Bump to 0.7.12
|
|
143 |
* Tue Sep 01 2009 - [email protected]
|
|
144 |
- Bump to 0.7.11
|
|
145 |
* Mon Aug 31 2009 - [email protected]
|
|
146 |
- Bump to 0.7.10
|
|
147 |
- Add patch -unamed-union.diff to fix bugzilla #593608
|
|
148 |
* Mon Aug 17 2009 - [email protected]
|
|
149 |
- Bump to 0.7.9
|
|
150 |
* Mon Jun 22 2009 - [email protected]
|
|
151 |
- Bump to 0.7.8
|
|
152 |
* Mon May 25 2009 - [email protected]
|
|
153 |
- Bump to 0.7.7
|
|
154 |
* Thu Mar 07 2009 - [email protected]
|
|
155 |
- Bump to 0.7.6
|
|
156 |
* Wed Apr 29 2009 - [email protected]
|
|
157 |
- Bump to 0.7.5
|
|
158 |
* Mon Mar 23 2009 - [email protected]
|
|
159 |
- Bump to 0.7.4
|
|
160 |
* Thu Feb 26 2009 - [email protected]
|
|
161 |
- Bump to 0.7.3
|
|
162 |
* Mon Dec 29 2008 - [email protected]
|
|
163 |
- Add --without-long-double to fix CR #6761452
|
|
164 |
* Mon Oct 20 2008 - [email protected]
|
|
165 |
- Bump to 0.7.2
|
|
166 |
* Mon Sep 01 2008 - [email protected]
|
|
167 |
- Bump to 0.7.1
|
|
168 |
- Remove upstreamed patch no-sunmath-lib.diff
|
|
169 |
* Wed Jun 25 2008 - [email protected]
|
|
170 |
- Bump to 0.7.0
|
|
171 |
* Tue Jun 24 2008 - [email protected]
|
|
172 |
- Initial version
|