18110
|
1 |
#
|
|
2 |
# spec file for package SUNWlibgoffice
|
|
3 |
#
|
|
4 |
# includes module(s): goffice
|
|
5 |
#
|
|
6 |
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
|
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
|
10 |
%define owner halton
|
|
11 |
#
|
|
12 |
|
|
13 |
%include Solaris.inc
|
|
14 |
|
|
15 |
%use goffice = goffice.spec
|
|
16 |
|
|
17 |
Name: SUNWlibgoffice
|
|
18 |
Summary: goffice - Document centric set of APIs
|
|
19 |
Version: %{goffice.version}
|
|
20 |
SUNW_Pkg: SUNWlibgoffice
|
|
21 |
IPS_package_name: library/desktop/goffice
|
|
22 |
Meta(info.classification): %{classification_prefix}:Development/System
|
|
23 |
SUNW_Copyright: %{name}.copyright
|
|
24 |
SUNW_BaseDir: %{_basedir}
|
|
25 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
26 |
Source1: %{name}-manpages-0.1.tar.gz
|
|
27 |
|
|
28 |
%include default-depend.inc
|
|
29 |
Requires: SUNWlibglade
|
|
30 |
Requires: SUNWlxml
|
|
31 |
Requires: SUNWzlib
|
|
32 |
Requires: SUNWlibgsf
|
|
33 |
Requires: SUNWlibms
|
|
34 |
Requires: SUNWgnome-libs
|
20090
|
35 |
Requires: SUNWgnome-python26-libs
|
18110
|
36 |
BuildRequires: SUNWlibglade-devel
|
|
37 |
BuildRequires: SUNWlxml-devel
|
|
38 |
BuildRequires: SUNWgnome-libs-devel
|
20090
|
39 |
BuildRequires: SUNWgnome-python26-libs-devel
|
18110
|
40 |
%if %option_with_gnu_iconv
|
|
41 |
Requires: SUNWgnu-libiconv
|
|
42 |
Requires: SUNWgnu-gettext
|
|
43 |
%else
|
|
44 |
Requires: SUNWuiu8
|
|
45 |
%endif
|
|
46 |
|
|
47 |
%package devel
|
|
48 |
Summary: %{summary} - development files
|
|
49 |
SUNW_BaseDir: %{_basedir}
|
|
50 |
%include default-depend.inc
|
|
51 |
Requires: %name
|
|
52 |
BuildRequires: SUNWgnome-libs-devel
|
|
53 |
|
|
54 |
%if %build_l10n
|
|
55 |
%package l10n
|
|
56 |
Summary: %{summary} - l10n files
|
|
57 |
SUNW_BaseDir: %{_basedir}
|
|
58 |
%include default-depend.inc
|
|
59 |
Requires: %{name}
|
|
60 |
%endif
|
|
61 |
|
|
62 |
%prep
|
|
63 |
rm -rf %name-%version
|
|
64 |
mkdir -p %name-%version
|
|
65 |
%goffice.prep -d %name-%version
|
|
66 |
cd %{_builddir}/%name-%version
|
|
67 |
gzcat %SOURCE1 | tar xf -
|
|
68 |
|
|
69 |
%build
|
|
70 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
|
|
71 |
export CFLAGS="%optflags"
|
|
72 |
%if %option_with_gnu_iconv
|
|
73 |
export CFLAGS="$CFLAGS -I/usr/gnu/include -L/usr/gnu/lib -R/usr/gnu/lib -lintl"
|
|
74 |
%endif
|
|
75 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
76 |
export LDFLAGS="%_ldflags"
|
|
77 |
|
|
78 |
%goffice.build -d %name-%version
|
|
79 |
|
|
80 |
%install
|
|
81 |
rm -rf $RPM_BUILD_ROOT
|
|
82 |
%goffice.install -d %name-%version
|
|
83 |
|
|
84 |
# install man page
|
|
85 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
86 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
87 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
88 |
|
|
89 |
%if %build_l10n
|
|
90 |
%else
|
|
91 |
# REMOVE l10n FILES
|
|
92 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
93 |
%endif
|
|
94 |
|
|
95 |
%clean
|
|
96 |
rm -rf $RPM_BUILD_ROOT
|
|
97 |
|
|
98 |
%files
|
|
99 |
%doc -d goffice-%{goffice.version} README AUTHORS
|
|
100 |
%doc(bzip2) -d goffice-%{goffice.version} COPYING ChangeLog po/ChangeLog tools/ChangeLog NEWS
|
|
101 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
|
102 |
%defattr(-, root, bin)
|
|
103 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
104 |
%{_libdir}/libgoffice*.so*
|
|
105 |
%{_libdir}/goffice
|
|
106 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
107 |
%{_datadir}/goffice
|
|
108 |
%dir %attr (0755, root, other) %{_datadir}/pixmaps
|
|
109 |
%{_datadir}/pixmaps/*
|
|
110 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
111 |
%dir %attr(0755, root, bin) %{_mandir}/*
|
|
112 |
%{_mandir}/*/*
|
|
113 |
|
|
114 |
%files devel
|
|
115 |
%defattr (-, root, bin)
|
|
116 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
117 |
%{_includedir}/*
|
|
118 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
119 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
120 |
%{_libdir}/pkgconfig/*
|
|
121 |
%dir %attr (0755, root, sys) %dir %{_datadir}
|
|
122 |
%{_datadir}/gtk-doc
|
|
123 |
|
|
124 |
%if %build_l10n
|
|
125 |
%files l10n
|
|
126 |
%defattr (-, root, bin)
|
|
127 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
128 |
%attr (-, root, other) %{_datadir}/locale
|
|
129 |
%endif
|
|
130 |
|
|
131 |
%changelog
|
|
132 |
* Wed Nov 05 2008 - [email protected]
|
|
133 |
- Add po/ChangeLog to %files
|
|
134 |
* Wed Sep 10 2008 - [email protected]
|
|
135 |
- Add %doc to %files for new copyright
|
|
136 |
* Wed Aug 06 2008 - [email protected]
|
|
137 |
- Use sgml format instead for man pages.
|
|
138 |
* Tue Aug 05 2008 - [email protected]
|
|
139 |
- Add man page for libgoffice
|
|
140 |
* Tue Jul 01 2008 - [email protected]
|
|
141 |
- Add copyright
|
|
142 |
* Mon Jun 30 2008 - [email protected]
|
|
143 |
- Copied from SFEgoffice and rename to SUNWlibgoffice
|
|
144 |
* Tue Jun 24 2008 - [email protected]
|
|
145 |
- Split base part to base/goffice.spec
|
|
146 |
- Bump to 0.6.4
|
|
147 |
* Mon Apr 14 2008 - [email protected]
|
|
148 |
- Bump to 0.6.2, update dependencies
|
|
149 |
* Tue Sep 04 2007 - Thomas Wagner
|
|
150 |
- bump to 0.15.1, add %{version} to Download-Dir (might change again)
|
|
151 |
- conditional !%build_l10n rmdir $RPM_BUILD_ROOT/%{_datadir}/locale
|
|
152 |
* Sat May 26 2007 - Thomas Wagner
|
|
153 |
- bump to 0.15.0
|
|
154 |
- set compiler to gcc
|
|
155 |
- builds with Avahi, if present
|
|
156 |
* Thu Apr 06 2007 - Thomas Wagner
|
|
157 |
- Initial spec
|
|
158 |
|