author | dermotm |
Mon, 24 Jul 2006 12:30:39 +0000 | |
branch | gnome-2-10 |
changeset 19949 | 94f49bf19351 |
parent 19719 | d184ca39d269 |
permissions | -rw-r--r-- |
624 | 1 |
# |
19693 | 2 |
# spec file for package libgsf |
3 |
# |
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc. |
|
5 |
# This file and all modifications and additions to the pristine |
|
6 |
# package are under the same license as the package itself. |
|
624 | 7 |
# |
8 |
||
9 |
##################################### |
|
10 |
## Package Information Section ## |
|
11 |
##################################### |
|
12 |
||
13 |
Name: libgsf |
|
14 |
License: LGPL |
|
15 |
Group: System/Libraries |
|
19419 | 16 |
Version: 1.12.1 |
19329 | 17 |
Release: 1 |
19693 | 18 |
Distribution: Java Desktop System |
624 | 19 |
Vendor: Sun Microsystems, Inc. |
20 |
Summary: The GNOME Structured File Library |
|
19334 | 21 |
Source: http://ftp.gnome.org/pub/gnome/sources/libgsf/1.12/%{name}-%{version}.tar.bz2 |
22 |
Patch0: libgsf-01-uninstalled-pc.diff |
|
624 | 23 |
URL: http://ftp.gnome.org/pub/gnome/sources/libgsf/ |
24 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
25 |
Docdir: %{_defaultdocdir}/doc |
|
26 |
Autoreqprov: on |
|
1080 | 27 |
Prereq: /sbin/ldconfig |
624 | 28 |
|
29 |
##################################### |
|
30 |
## Package Defines Section ## |
|
31 |
##################################### |
|
32 |
||
19334 | 33 |
%define glib2_version 2.6.0 |
3628 | 34 |
%define zlib_version 1.2.1 |
35 |
%define libxml2_version 2.6.7 |
|
624 | 36 |
%define bzip2_version 1.0.2 |
3628 | 37 |
%define libbonobo_version 2.6.0 |
38 |
%define gnome_vfs_version 2.6.0 |
|
624 | 39 |
|
40 |
##################################### |
|
41 |
## Package Requirements Section ## |
|
42 |
##################################### |
|
43 |
||
44 |
Requires: glib2 >= %{glib2_version} |
|
45 |
Requires: libxml2 >= %{libxml2_version} |
|
46 |
Requires: zlib >= %{zlib_version} |
|
47 |
Requires: bzip2 >= %{bzip2_version} |
|
48 |
Requires: libbonobo >= %{libbonobo_version} |
|
49 |
Requires: gnome-vfs >= %{gnome_vfs_version} |
|
50 |
BuildRequires: glib2-devel >= %{glib2_version} |
|
51 |
BuildRequires: libxml2-devel >= %{libxml2_version} |
|
52 |
BuildRequires: zlib-devel >= %{zlib_version} |
|
53 |
BuildRequires: bzip2 >= %{bzip2_version} |
|
54 |
BuildRequires: libbonobo-devel >= %{libbonobo_version} |
|
55 |
BuildRequires: gnome-vfs-devel >= %{gnome_vfs_version} |
|
56 |
||
57 |
##################################### |
|
58 |
## Package Description Section ## |
|
59 |
##################################### |
|
60 |
||
61 |
%description |
|
62 |
libgsf project aims to provide an efficient extensible i/o abstraction for |
|
63 |
dealing with different structured file formats. |
|
64 |
||
65 |
##################################### |
|
66 |
## Package Development Section ## |
|
67 |
##################################### |
|
68 |
||
69 |
%package devel |
|
70 |
Summary: libgsf development headers |
|
71 |
Group: Development/Libraries |
|
72 |
Requires: %{name} = %{version} |
|
73 |
Requires: glib2-devel >= %{glib2_version} |
|
74 |
Requires: libxml2-devel >= %{libxml2_version} |
|
75 |
Requires: zlib-devel >= %{zlib_version} |
|
76 |
Requires: bzip2 >= %{bzip2_version} |
|
77 |
Requires: libbonobo-devel >= %{libbonobo_version} |
|
78 |
Requires: gnome-vfs-devel >= %{gnome_vfs_version} |
|
79 |
||
80 |
%description devel |
|
81 |
libgsf development headers |
|
82 |
||
83 |
##################################### |
|
84 |
## Package Preparation Section ## |
|
85 |
##################################### |
|
86 |
||
87 |
%prep |
|
88 |
%setup -q |
|
2444 | 89 |
%patch0 -p1 |
624 | 90 |
|
91 |
##################################### |
|
92 |
## Package Build Section ## |
|
93 |
##################################### |
|
94 |
||
4455 | 95 |
|
624 | 96 |
%build |
3263 | 97 |
%ifos linux |
98 |
if [ -x /usr/bin/getconf ]; then |
|
99 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
100 |
fi |
|
101 |
%else |
|
3846 | 102 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 103 |
%endif |
104 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
105 |
CPUS=1 |
|
106 |
fi |
|
107 |
||
624 | 108 |
CFLAGS="$RPM_OPT_FLAGS" \ |
19243 | 109 |
aclocal $ACLOCAL_FLAGS |
3751 | 110 |
automake -a -c -f |
111 |
autoconf |
|
624 | 112 |
./configure --prefix=%{_prefix} \ |
4536 | 113 |
--bindir=%{_bindir} \ |
114 |
--libdir=%{_libdir} \ |
|
115 |
--includedir=%{_includedir} \ |
|
624 | 116 |
--sysconfdir=%{_sysconfdir} \ |
4536 | 117 |
--with-gnome \ |
118 |
--with-bz2 \ |
|
119 |
--enable-gtk-doc \ |
|
120 |
--with-html-dir=%{_datadir}/gtk-doc/html/libgsf |
|
3263 | 121 |
make -j $CPUS |
624 | 122 |
|
123 |
%install |
|
124 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
3628 | 125 |
#Clean up unpackaged files |
126 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
|
127 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
|
624 | 128 |
|
129 |
%clean |
|
130 |
rm -rf $RPM_BUILD_ROOT |
|
131 |
||
132 |
######################################### |
|
133 |
## Package Post[Un] Install Section ## |
|
134 |
######################################### |
|
135 |
||
136 |
%post |
|
137 |
/sbin/ldconfig |
|
138 |
||
139 |
%postun |
|
140 |
/sbin/ldconfig |
|
141 |
||
142 |
##################################### |
|
143 |
## Package Files Section ## |
|
144 |
##################################### |
|
145 |
||
146 |
%files |
|
147 |
%defattr(-,root,root) |
|
1058 | 148 |
%{_libdir}/*.so.* |
624 | 149 |
|
150 |
%files devel |
|
151 |
%defattr(-,root,root) |
|
152 |
%{_includedir}/* |
|
1058 | 153 |
%{_libdir}/*.so |
624 | 154 |
%{_libdir}/pkgconfig/* |
3812 | 155 |
%{_datadir}/gtk-doc/html/libgsf/* |
624 | 156 |
|
157 |
%changelog |
|
19419 | 158 |
* Wed Jun 15 2005 - [email protected] |
159 |
- Bump to 1.12.1 |
|
160 |
||
19355 | 161 |
* Tue May 24 2005 - [email protected] |
162 |
- Turn on --enable-gtk-doc on Solaris since it works now. |
|
163 |
||
19353 | 164 |
* Tue May 24 2005 - [email protected] |
165 |
- libgsf-02-gtkdoc.diff removed |
|
19354 | 166 |
|
19329 | 167 |
* Thu May 19 2005 - [email protected] |
168 |
- ported to 2.10 |
|
19334 | 169 |
|
4536 | 170 |
* Fri Nov 12 2004 - [email protected] |
171 |
- added --libdir and --bindir to configure opts so they can be redirected |
|
172 |
on Solaris |
|
173 |
||
4023 | 174 |
* Mon Sep 20 2004 - [email protected] |
175 |
- added patch 01 (gtkdoc) back - it's needed to build on linux |
|
176 |
||
3909
5a1f6ef62c64
* libgsf.spec: Disable gtk-doc on Solaris to get module to build.
dc144907
parents:
3858
diff
changeset
|
177 |
* Mon Sep 13 2004 - [email protected] |
5a1f6ef62c64
* libgsf.spec: Disable gtk-doc on Solaris to get module to build.
dc144907
parents:
3858
diff
changeset
|
178 |
- Disable gtk-doc on Solaris to get module to build. |
5a1f6ef62c64
* libgsf.spec: Disable gtk-doc on Solaris to get module to build.
dc144907
parents:
3858
diff
changeset
|
179 |
|
3812 | 180 |
* Wed Sep 01 2004 - [email protected] |
181 |
- fixed gtk-doc path problem |
|
3909
5a1f6ef62c64
* libgsf.spec: Disable gtk-doc on Solaris to get module to build.
dc144907
parents:
3858
diff
changeset
|
182 |
|
3751 | 183 |
* Tue Aug 24 2004 - [email protected] |
184 |
- Enabling gtk-docs and setting with-html-dir to place them in |
|
185 |
the standard gtk-doc location. |
|
186 |
||
3628 | 187 |
* Thu Jul 07 2004 - [email protected] |
188 |
- ported to rpm4 |
|
189 |
||
3263 | 190 |
* Wed Jul 07 2004 - [email protected] |
191 |
- added "-j $CPUS" to make to speed up builds |
|
192 |
||
2444 | 193 |
* Mon Apr 12 2004 - <[email protected] |
194 |
- Added patch 1 to add uninstalled.pc file for Solaris build. |
|
195 |
||
1941 | 196 |
* Tue Feb 24 2004 - <[email protected]> |
197 |
- Fixed distro typo |
|
198 |
||
1919 | 199 |
* Tue Feb 24 2004 - <[email protected]> |
200 |
- Update Distro |
|
201 |
||
1329 | 202 |
* Tue Oct 21 2003 - <[email protected]> |
203 |
- Updated to 1.8.2. |
|
204 |
||
1058 | 205 |
* Thu Aug 14 2003 - <[email protected]> |
206 |
- move lib*.so to -devel, remove *.a, *.la |
|
207 |
||
624 | 208 |
* Thu Jul 17 2003 - [email protected] |
209 |
- Initial package |