author | dc144907 |
Sun, 12 Feb 2006 21:17:53 +0000 | |
changeset 6734 | aaa7593d81b3 |
parent 6679 | 305a9f3ef3e7 |
child 6735 | df16cf7afb5a |
permissions | -rw-r--r-- |
5518 | 1 |
# |
2 |
# spec file for package glib2 |
|
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. |
|
7 |
# |
|
160 | 8 |
Name: glib2 |
156 | 9 |
License: LGPL |
163 | 10 |
Group: System/Libraries |
6679 | 11 |
Version: %{?cvs:2.9.%cvs}%{?!cvs:2.9.5} |
5518 | 12 |
Release: 1 |
13 |
Distribution: Java Desktop System |
|
575 | 14 |
Vendor: Sun Microsystems, Inc. |
160 | 15 |
Summary: Low level core compatibility library for GTK+ and GNOME |
6408 | 16 |
Source: http://ftp.gnome.org/pub/GNOME/sources/glib/2.9/glib-%{version}.tar.bz2 |
5518 | 17 |
Source1: libgthread-2.0.3.gz |
1432 | 18 |
Source2: glib-genmarshal.1.gz |
19 |
Source3: glib-mkenums.1.gz |
|
20 |
Source4: glib-gettextize.1.gz |
|
21 |
Source5: gobject-query.1.gz |
|
22 |
Source6: libglib-2.0.3.gz |
|
23 |
Source7: libgmodule-2.0.3.gz |
|
24 |
Source8: libgobject-2.0.3.gz |
|
6296 | 25 |
Source9: mkinstalldirs |
1613 | 26 |
Patch1: glib-01-gettext-macro.diff |
5518 | 27 |
Patch2: glib-02-convert-utf8.diff |
5526 | 28 |
Patch3: glib-03-default-path.diff |
6095 | 29 |
Patch4: glib-04-gmodule-always-lazy.diff |
6407
63cc4bd950df
* glib2.spec: Bump to 2.9.1. Remove upstream patch 05-logname.
dc144907
parents:
6297
diff
changeset
|
30 |
Patch5: glib-05-solaris-thread-flags.diff |
6411
b683b0f84918
* glib2.spec: Add 06-feature_tests compilation patch.
dc144907
parents:
6409
diff
changeset
|
31 |
Patch6: glib-06-feature_tests.diff |
160 | 32 |
URL: http://www.gtk.org |
156 | 33 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
160 | 34 |
Docdir: %{_defaultdocdir}/doc |
156 | 35 |
AutoReqProv: on |
1080 | 36 |
Prereq: /sbin/ldconfig |
156 | 37 |
|
170 | 38 |
%define pkgconfig_version 0.15.0 |
1192 | 39 |
%define gtk_doc_version 1.1 |
6409 | 40 |
%define intltool_version 0.34.1 |
170 | 41 |
|
802 | 42 |
Requires: aaa_base |
170 | 43 |
BuildRequires: pkgconfig >= %{pkgconfig_version} |
44 |
BuildRequires: gtk-doc >= %{gtk_doc_version} |
|
6409 | 45 |
BuildRequires: intltool >= %{intltool_version} |
156 | 46 |
|
47 |
%description |
|
160 | 48 |
Glib is the base compatibility library for GTK+ and GNOME. It provides data |
49 |
structure handling for C, portability wrappers, and interfaces for such |
|
50 |
runtime functionality as an event loop, threads, dynamic laoding, and an |
|
51 |
object system |
|
156 | 52 |
|
53 |
%package devel |
|
54 |
Summary: GIMP Toolkit and GIMP Drawing Kit support library |
|
5590 | 55 |
Group: Development/Libraries |
191 | 56 |
Requires: %{name} = %{version} |
156 | 57 |
|
58 |
%description devel |
|
160 | 59 |
Glib is the base compatibility library for GTK+ and GNOME. It provides data |
60 |
structure handling for C, portability wrappers, and interfaces for such |
|
61 |
runtime functionality as an event loop, threads, dynamic laoding, and an |
|
62 |
object system |
|
156 | 63 |
|
64 |
%prep |
|
65 |
%setup -q -n glib-%{version} |
|
1613 | 66 |
%patch1 -p1 |
3486 | 67 |
%patch2 -p1 |
3980
b4a04c41bee6
Updating glib2.spec to include glib-03-g11n-allinguas.diff patch
yk150259
parents:
3858
diff
changeset
|
68 |
%patch3 -p1 |
6095 | 69 |
%patch4 -p1 |
6156 | 70 |
%patch5 -p1 |
6411
b683b0f84918
* glib2.spec: Add 06-feature_tests compilation patch.
dc144907
parents:
6409
diff
changeset
|
71 |
%patch6 -p1 |
510 | 72 |
|
4121 | 73 |
%ifos solaris |
4271 | 74 |
%ifarch amd64 sparcv9 |
4121 | 75 |
cd .. |
76 |
cp -rp glib-%{version} glib-%{version}-64 |
|
6613 | 77 |
cd glib-%{version} |
4121 | 78 |
%endif |
4127 | 79 |
%endif |
4121 | 80 |
|
4455 | 81 |
|
156 | 82 |
%build |
3263 | 83 |
%ifos linux |
84 |
if [ -x /usr/bin/getconf ]; then |
|
85 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
86 |
fi |
|
87 |
%else |
|
3846 | 88 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 89 |
%endif |
90 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
91 |
CPUS=1 |
|
92 |
fi |
|
93 |
||
4121 | 94 |
CONFLAGS="--prefix=%{_prefix} --mandir=%{_mandir}" |
95 |
||
96 |
%ifos solaris |
|
4271 | 97 |
%ifarch amd64 sparcv9 |
4121 | 98 |
CPUS=$(($CPUS*4)) |
99 |
||
100 |
cd ../glib-%version-64 |
|
101 |
||
102 |
export CFLAGS="$CFLAGS64" |
|
103 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH64" |
|
4365 | 104 |
export CC=${CC64:-$CC} |
105 |
save_PATH="$PATH" |
|
106 |
ccdir=`dirname $CC` |
|
107 |
export PATH=$ccdir:$PATH |
|
4121 | 108 |
|
6296 | 109 |
cp %SOURCE9 . |
5518 | 110 |
aclocal $ACLOCAL_FLAGS |
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5526
diff
changeset
|
111 |
libtoolize --force --copy |
6296 | 112 |
gtkdocize |
113 |
intltoolize --copy --force --automake |
|
6734 | 114 |
glib-gettextize --force |
5518 | 115 |
autoheader |
116 |
automake -a -c -f |
|
117 |
autoconf |
|
4121 | 118 |
./configure $CONFLAGS \ |
119 |
--bindir=%{_bindir}/%{_arch64} \ |
|
120 |
--libdir=%{_libdir}/%{_arch64} \ |
|
121 |
--libexecdir=%{_libexecdir}/%{_arch64} \ |
|
122 |
--sysconfdir=%{_sysconfdir}/%{_arch64} \ |
|
123 |
--disable-gtk-doc |
|
124 |
||
125 |
make -j $CPUS |
|
126 |
||
127 |
cd ../glib-%version |
|
128 |
||
4365 | 129 |
export CC=${CC32:-$CC} |
130 |
export PATH="$save_PATH" |
|
4121 | 131 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" |
4365 | 132 |
export CFLAGS="$CFLAGS32" |
133 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
4127 | 134 |
%endif |
4121 | 135 |
%endif |
136 |
||
6296 | 137 |
cp %SOURCE9 . |
5518 | 138 |
aclocal $ACLOCAL_FLAGS |
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5526
diff
changeset
|
139 |
libtoolize --force --copy |
6296 | 140 |
gtkdocize |
141 |
intltoolize --copy --force --automake |
|
5518 | 142 |
autoheader |
143 |
automake -a -c -f |
|
144 |
autoconf |
|
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5526
diff
changeset
|
145 |
CFLAGS="$RPM_OPT_FLAGS" \ |
4121 | 146 |
./configure $CONFLAGS \ |
147 |
--sysconfdir=%{_sysconfdir} \ |
|
3660 | 148 |
--enable-gtk-doc |
3263 | 149 |
make -j $CPUS |
156 | 150 |
|
151 |
%install |
|
4121 | 152 |
|
153 |
%ifos solaris |
|
4271 | 154 |
%ifarch amd64 sparcv9 |
4121 | 155 |
cd ../glib-%version-64 |
156 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
157 |
cd ../glib-%version |
|
158 |
%endif |
|
6215 | 159 |
rm -f $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/glib-gettextize |
160 |
rm -f $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/glib-mkenums |
|
4127 | 161 |
%endif |
4121 | 162 |
|
160 | 163 |
make DESTDIR=$RPM_BUILD_ROOT install |
1507 | 164 |
install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
165 |
install -d $RPM_BUILD_ROOT%{_mandir}/man3 |
|
5518 | 166 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man3 |
1507 | 167 |
install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man1 |
168 |
install --mode=0644 %SOURCE3 $RPM_BUILD_ROOT%{_mandir}/man1 |
|
169 |
install --mode=0644 %SOURCE4 $RPM_BUILD_ROOT%{_mandir}/man1 |
|
170 |
install --mode=0644 %SOURCE5 $RPM_BUILD_ROOT%{_mandir}/man1 |
|
171 |
install --mode=0644 %SOURCE6 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
172 |
install --mode=0644 %SOURCE7 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
173 |
install --mode=0644 %SOURCE8 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
1432 | 174 |
#Copy zh_HK from zh_TW |
175 |
#Fixes bug 4930405 |
|
1507 | 176 |
install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES |
177 |
install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/ |
|
3628 | 178 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
1432 | 179 |
|
156 | 180 |
%clean |
181 |
rm -rf $RPM_BUILD_ROOT |
|
182 |
||
160 | 183 |
%post |
184 |
/sbin/ldconfig |
|
156 | 185 |
|
160 | 186 |
%postun |
187 |
/sbin/ldconfig |
|
156 | 188 |
|
189 |
%files |
|
190 |
%defattr(-,root,root) |
|
1058 | 191 |
%{_libdir}/lib*.so.* |
3628 | 192 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
156 | 193 |
|
194 |
%files devel |
|
195 |
%defattr(-,root,root) |
|
168 | 196 |
%{_bindir}/* |
1058 | 197 |
%{_libdir}/lib*.so |
168 | 198 |
%{_includedir}/glib-2.0/* |
199 |
%{_libdir}/glib-2.0/include/*.h |
|
200 |
%{_libdir}/pkgconfig/*.pc |
|
201 |
%{_datadir}/aclocal/*.m4 |
|
202 |
%{_datadir}/glib-2.0/* |
|
3628 | 203 |
%{_datadir}/gtk-doc/html/* |
1432 | 204 |
%{_mandir}/man1/* |
205 |
%{_mandir}/man3/* |
|
156 | 206 |
|
207 |
%changelog |
|
6734 | 208 |
* Sun Feb 12 2006 - [email protected] |
209 |
- Call glib-gettextize to fix infinite loop in configure. |
|
210 |
||
6679 | 211 |
* Fri Jan 27 2006 - [email protected] |
212 |
- Bump to 2.9.5 |
|
213 |
||
6587
1ac34d6f9507
* zenity.spec, sound-juicer.spec, nautilus-cd-burner.spec, nautilus.spec
dc144907
parents:
6564
diff
changeset
|
214 |
* Tue Jan 17 2006 - [email protected] |
1ac34d6f9507
* zenity.spec, sound-juicer.spec, nautilus-cd-burner.spec, nautilus.spec
dc144907
parents:
6564
diff
changeset
|
215 |
- Bump to 2.9.3 |
1ac34d6f9507
* zenity.spec, sound-juicer.spec, nautilus-cd-burner.spec, nautilus.spec
dc144907
parents:
6564
diff
changeset
|
216 |
|
6564
480b9993069a
* control-center.spec, eog.spec, gcalctool.spec, gdm.spec, gedit.spec,
dc144907
parents:
6411
diff
changeset
|
217 |
* Sun Jan 15 2006 - [email protected] |
480b9993069a
* control-center.spec, eog.spec, gcalctool.spec, gdm.spec, gedit.spec,
dc144907
parents:
6411
diff
changeset
|
218 |
- Bump to 2.9.2. |
480b9993069a
* control-center.spec, eog.spec, gcalctool.spec, gdm.spec, gedit.spec,
dc144907
parents:
6411
diff
changeset
|
219 |
|
6407
63cc4bd950df
* glib2.spec: Bump to 2.9.1. Remove upstream patch 05-logname.
dc144907
parents:
6297
diff
changeset
|
220 |
* Tue Dec 20 2005 - [email protected] |
6409 | 221 |
- Bump to 2.9.1. Remove upstream patch 05-logname. Add intltool BuildRequires. |
6407
63cc4bd950df
* glib2.spec: Bump to 2.9.1. Remove upstream patch 05-logname.
dc144907
parents:
6297
diff
changeset
|
222 |
|
6297
325024482887
* eel.spec eog.spec evolution.spec evolution-data-server.spec
dc144907
parents:
6296
diff
changeset
|
223 |
* Tue Nov 29 2005 - [email protected] |
325024482887
* eel.spec eog.spec evolution.spec evolution-data-server.spec
dc144907
parents:
6296
diff
changeset
|
224 |
- Bump to 2.8.4. |
325024482887
* eel.spec eog.spec evolution.spec evolution-data-server.spec
dc144907
parents:
6296
diff
changeset
|
225 |
|
6296 | 226 |
* Mon Nov 28 2005 - [email protected] |
227 |
- prepare for building from CVS snapshots: |
|
228 |
- use a macro for Version |
|
229 |
- fix autotool order, add some more |
|
230 |
- cp mkinstalldirs so that we don't need to add even more autotool foo |
|
231 |
||
6080
4b30e2aa0fc7
* bug-buddy.spec control-center.spec eel.spec eog.spec
dc144907
parents:
6017
diff
changeset
|
232 |
* Tue Oct 11 2005 - [email protected] |
4b30e2aa0fc7
* bug-buddy.spec control-center.spec eel.spec eog.spec
dc144907
parents:
6017
diff
changeset
|
233 |
- Bump to 2.8.3 |
4b30e2aa0fc7
* bug-buddy.spec control-center.spec eel.spec eog.spec
dc144907
parents:
6017
diff
changeset
|
234 |
|
6017 | 235 |
* Tue Sep 27 2005 - [email protected] |
236 |
- Bump to 2.8.2 |
|
237 |
||
5526 | 238 |
* Mon Aug 15 2005 - [email protected] |
239 |
- Bump to 2.8.0 |
|
240 |
||
5518 | 241 |
* Wed Jun 15 2005 - [email protected] |
242 |
- Bump to 2.6.5 |
|
243 |
- Remove patch glib-04-uninstalled-pc.diff |
|
244 |
||
245 |
* Fri May 06 2005 - [email protected] |
|
246 |
- Add patch 04 to add needed uninstalled.pc files to allow other |
|
247 |
base-libs libraries to build. This requires calling autoconf |
|
248 |
aclocal, etc. |
|
249 |
- Fix naming of patches since the patches were renamed but this |
|
250 |
spec file not updated. |
|
251 |
||
252 |
* Fri May 06 2005 - [email protected] |
|
253 |
- Bump to 2.6.4 |
|
254 |
||
4752 | 255 |
* Wed Nov 15 2004 - [email protected] |
256 |
- Bump to 2.4.8, since otherwise glib-gettextize doesn't create |
|
257 |
mkinstalldirs properly, and consequently it means I can't create |
|
258 |
tarballs from CVS sources. We also get a rake of nice bug fixes |
|
259 |
as a result. |
|
260 |
||
4547 | 261 |
* Fri Nov 12 2004 - [email protected] |
262 |
- Modify the default path that glib sets (if the user does not have PATH |
|
263 |
set), so it does not include "." since ARC determined this is a |
|
264 |
security concern. When building on Sun, set it to just "/usr/bin" |
|
265 |
since "/bin" is a symlink to "/usr/bin". On Linux set it to |
|
266 |
"/bin:/usr/bin". |
|
267 |
||
4365 | 268 |
* Fri Oct 29 2004 - [email protected] |
269 |
- use $CC64 for the 64-bit build if defined |
|
270 |
||
4146 | 271 |
* Wed Oct 05 2004 - [email protected] |
272 |
- Added glib-04-convert-utf8.diff to fix CR 5055972 |
|
273 |
||
4121 | 274 |
* Sat Oct 2 2004 - [email protected] |
275 |
- Create 64bit libraries for Solaris |
|
276 |
||
3980
b4a04c41bee6
Updating glib2.spec to include glib-03-g11n-allinguas.diff patch
yk150259
parents:
3858
diff
changeset
|
277 |
* Thu Sep 16 2004 - [email protected] |
b4a04c41bee6
Updating glib2.spec to include glib-03-g11n-allinguas.diff patch
yk150259
parents:
3858
diff
changeset
|
278 |
- Added glib-03-g11n-allinguas.diff to include hu lingua |
b4a04c41bee6
Updating glib2.spec to include glib-03-g11n-allinguas.diff patch
yk150259
parents:
3858
diff
changeset
|
279 |
|
3660 | 280 |
* Wed Aug 18 2004 - [email protected] |
281 |
- added --enable-gtk-doc |
|
282 |
||
3486 | 283 |
* Thu Aug 05 2004 - [email protected] |
284 |
- Add patch to fix glib get SIGCHLD everytime |
|
285 |
||
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
286 |
* Thu Jul 08 2004 - [email protected] |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
287 |
- Updated l10n content to glib2-l10n-po-1.2.tar.bz2 |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
288 |
|
3628 | 289 |
* Thu Jul 08 2004 - [email protected] |
290 |
- ported to rpm4/suse91 |
|
291 |
||
3263 | 292 |
* Wed Jul 07 2004 - [email protected] |
293 |
- added "-j $CPUS" to make to speed up builds |
|
294 |
||
2754 | 295 |
* Fri May 14 2004 - [email protected] |
296 |
- Bump to 2.4.1 |
|
297 |
||
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
298 |
* Wed May 12 2004 - [email protected] |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
299 |
- Updated l10n content to glib2-l10n-po-1.1.tar.bz2 |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
300 |
|
2350 | 301 |
* Mon Mar 29 2004 - [email protected] |
302 |
- Updated l10n content to glib2-l10n-po-1.0.tar.bz2 |
|
303 |
||
2306 | 304 |
* Wed Mar 24 2004 - <[email protected]> |
305 |
- Bump to 2.4.0 |
|
306 |
||
307 |
* Wed Mar 10 2004 - <[email protected]> |
|
2170 | 308 |
- remove glib-02 patch (it wasn't being applied anyway). |
309 |
- bump to 2.3.6 |
|
310 |
||
1822
5038661790c1
Add patch to change '...' to '__VA_ARGS__' to build (gaim 0.75) on Solaris.
dc144907
parents:
1613
diff
changeset
|
311 |
* Thu Feb 19 2004 - <[email protected]> |
5038661790c1
Add patch to change '...' to '__VA_ARGS__' to build (gaim 0.75) on Solaris.
dc144907
parents:
1613
diff
changeset
|
312 |
- Add patch for glib/gmessages.h to change '...' to '__VA_ARGS__' to build |
5038661790c1
Add patch to change '...' to '__VA_ARGS__' to build (gaim 0.75) on Solaris.
dc144907
parents:
1613
diff
changeset
|
313 |
on Solaris. May revisit to use '#ifdef __sun' |
5038661790c1
Add patch to change '...' to '__VA_ARGS__' to build (gaim 0.75) on Solaris.
dc144907
parents:
1613
diff
changeset
|
314 |
|
1613 | 315 |
* Tue Feb 10 2004 - <[email protected]> |
316 |
- Bump to 2.3.2, l10n to 0.7 |
|
317 |
||
1432 | 318 |
* Mon Dec 15 2003 - <[email protected]> |
319 |
- update to 2.3.1 |
|
320 |
||
1186 | 321 |
* Sat Oct 04 2003 - <[email protected]> |
322 |
- update to 2.2.3 |
|
323 |
||
1058 | 324 |
* Thu Aug 14 2003 - <[email protected]> |
325 |
- move lib*.so to -devel, remove *.a, *.la |
|
326 |
||
912 | 327 |
* Fri Aug 01 2003 - <[email protected]> 2.2.2-1 |
328 |
||
329 |
* Wed Jul 25 2003 - <[email protected]> |
|
802 | 330 |
- add aaa_base dependency. Fixes postinstall script breakage |
331 |
during OS install. |
|
332 |
||
510 | 333 |
* Wed Jul 09 2003 - <[email protected]> |
334 |
- add in sun po files |
|
335 |
||
912 | 336 |
* Thu May 12 2003 - <[email protected]> |
160 | 337 |
- Initial spec file for glib2 |