author | dc144907 |
Sun, 15 Jan 2006 12:47:43 +0000 | |
changeset 6564 | 480b9993069a |
parent 6411 | b683b0f84918 |
child 6587 | 1ac34d6f9507 |
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 |
6564
480b9993069a
* control-center.spec, eog.spec, gcalctool.spec, gdm.spec, gedit.spec,
dc144907
parents:
6411
diff
changeset
|
11 |
Version: %{?cvs:2.9.%cvs}%{?!cvs:2.9.2} |
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 |
|
77 |
%endif |
|
4127 | 78 |
%endif |
4121 | 79 |
|
4455 | 80 |
|
156 | 81 |
%build |
3263 | 82 |
%ifos linux |
83 |
if [ -x /usr/bin/getconf ]; then |
|
84 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
85 |
fi |
|
86 |
%else |
|
3846 | 87 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 88 |
%endif |
89 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
90 |
CPUS=1 |
|
91 |
fi |
|
92 |
||
4121 | 93 |
CONFLAGS="--prefix=%{_prefix} --mandir=%{_mandir}" |
94 |
||
95 |
%ifos solaris |
|
4271 | 96 |
%ifarch amd64 sparcv9 |
4121 | 97 |
CPUS=$(($CPUS*4)) |
98 |
||
99 |
cd ../glib-%version-64 |
|
100 |
||
101 |
export CFLAGS="$CFLAGS64" |
|
102 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH64" |
|
4365 | 103 |
export CC=${CC64:-$CC} |
104 |
save_PATH="$PATH" |
|
105 |
ccdir=`dirname $CC` |
|
106 |
export PATH=$ccdir:$PATH |
|
4121 | 107 |
|
6296 | 108 |
cp %SOURCE9 . |
5518 | 109 |
aclocal $ACLOCAL_FLAGS |
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5526
diff
changeset
|
110 |
libtoolize --force --copy |
6296 | 111 |
gtkdocize |
112 |
intltoolize --copy --force --automake |
|
5518 | 113 |
autoheader |
114 |
automake -a -c -f |
|
115 |
autoconf |
|
4121 | 116 |
./configure $CONFLAGS \ |
117 |
--bindir=%{_bindir}/%{_arch64} \ |
|
118 |
--libdir=%{_libdir}/%{_arch64} \ |
|
119 |
--libexecdir=%{_libexecdir}/%{_arch64} \ |
|
120 |
--sysconfdir=%{_sysconfdir}/%{_arch64} \ |
|
121 |
--disable-gtk-doc |
|
122 |
||
123 |
make -j $CPUS |
|
124 |
||
125 |
cd ../glib-%version |
|
126 |
||
4365 | 127 |
export CC=${CC32:-$CC} |
128 |
export PATH="$save_PATH" |
|
4121 | 129 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" |
4365 | 130 |
export CFLAGS="$CFLAGS32" |
131 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
4127 | 132 |
%endif |
4121 | 133 |
%endif |
134 |
||
6296 | 135 |
cp %SOURCE9 . |
5518 | 136 |
aclocal $ACLOCAL_FLAGS |
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5526
diff
changeset
|
137 |
libtoolize --force --copy |
6296 | 138 |
gtkdocize |
139 |
intltoolize --copy --force --automake |
|
5518 | 140 |
autoheader |
141 |
automake -a -c -f |
|
142 |
autoconf |
|
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5526
diff
changeset
|
143 |
CFLAGS="$RPM_OPT_FLAGS" \ |
4121 | 144 |
./configure $CONFLAGS \ |
145 |
--sysconfdir=%{_sysconfdir} \ |
|
3660 | 146 |
--enable-gtk-doc |
3263 | 147 |
make -j $CPUS |
156 | 148 |
|
149 |
%install |
|
4121 | 150 |
|
151 |
%ifos solaris |
|
4271 | 152 |
%ifarch amd64 sparcv9 |
4121 | 153 |
cd ../glib-%version-64 |
154 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
155 |
cd ../glib-%version |
|
156 |
%endif |
|
6215 | 157 |
rm -f $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/glib-gettextize |
158 |
rm -f $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/glib-mkenums |
|
4127 | 159 |
%endif |
4121 | 160 |
|
160 | 161 |
make DESTDIR=$RPM_BUILD_ROOT install |
1507 | 162 |
install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
163 |
install -d $RPM_BUILD_ROOT%{_mandir}/man3 |
|
5518 | 164 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man3 |
1507 | 165 |
install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man1 |
166 |
install --mode=0644 %SOURCE3 $RPM_BUILD_ROOT%{_mandir}/man1 |
|
167 |
install --mode=0644 %SOURCE4 $RPM_BUILD_ROOT%{_mandir}/man1 |
|
168 |
install --mode=0644 %SOURCE5 $RPM_BUILD_ROOT%{_mandir}/man1 |
|
169 |
install --mode=0644 %SOURCE6 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
170 |
install --mode=0644 %SOURCE7 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
171 |
install --mode=0644 %SOURCE8 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
1432 | 172 |
#Copy zh_HK from zh_TW |
173 |
#Fixes bug 4930405 |
|
1507 | 174 |
install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES |
175 |
install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/ |
|
3628 | 176 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
1432 | 177 |
|
156 | 178 |
%clean |
179 |
rm -rf $RPM_BUILD_ROOT |
|
180 |
||
160 | 181 |
%post |
182 |
/sbin/ldconfig |
|
156 | 183 |
|
160 | 184 |
%postun |
185 |
/sbin/ldconfig |
|
156 | 186 |
|
187 |
%files |
|
188 |
%defattr(-,root,root) |
|
1058 | 189 |
%{_libdir}/lib*.so.* |
3628 | 190 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
156 | 191 |
|
192 |
%files devel |
|
193 |
%defattr(-,root,root) |
|
168 | 194 |
%{_bindir}/* |
1058 | 195 |
%{_libdir}/lib*.so |
168 | 196 |
%{_includedir}/glib-2.0/* |
197 |
%{_libdir}/glib-2.0/include/*.h |
|
198 |
%{_libdir}/pkgconfig/*.pc |
|
199 |
%{_datadir}/aclocal/*.m4 |
|
200 |
%{_datadir}/glib-2.0/* |
|
3628 | 201 |
%{_datadir}/gtk-doc/html/* |
1432 | 202 |
%{_mandir}/man1/* |
203 |
%{_mandir}/man3/* |
|
156 | 204 |
|
205 |
%changelog |
|
6564
480b9993069a
* control-center.spec, eog.spec, gcalctool.spec, gdm.spec, gedit.spec,
dc144907
parents:
6411
diff
changeset
|
206 |
* Sun Jan 15 2006 - [email protected] |
480b9993069a
* control-center.spec, eog.spec, gcalctool.spec, gdm.spec, gedit.spec,
dc144907
parents:
6411
diff
changeset
|
207 |
- Bump to 2.9.2. |
480b9993069a
* control-center.spec, eog.spec, gcalctool.spec, gdm.spec, gedit.spec,
dc144907
parents:
6411
diff
changeset
|
208 |
|
6407
63cc4bd950df
* glib2.spec: Bump to 2.9.1. Remove upstream patch 05-logname.
dc144907
parents:
6297
diff
changeset
|
209 |
* Tue Dec 20 2005 - [email protected] |
6409 | 210 |
- 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
|
211 |
|
6297
325024482887
* eel.spec eog.spec evolution.spec evolution-data-server.spec
dc144907
parents:
6296
diff
changeset
|
212 |
* Tue Nov 29 2005 - [email protected] |
325024482887
* eel.spec eog.spec evolution.spec evolution-data-server.spec
dc144907
parents:
6296
diff
changeset
|
213 |
- Bump to 2.8.4. |
325024482887
* eel.spec eog.spec evolution.spec evolution-data-server.spec
dc144907
parents:
6296
diff
changeset
|
214 |
|
6296 | 215 |
* Mon Nov 28 2005 - [email protected] |
216 |
- prepare for building from CVS snapshots: |
|
217 |
- use a macro for Version |
|
218 |
- fix autotool order, add some more |
|
219 |
- cp mkinstalldirs so that we don't need to add even more autotool foo |
|
220 |
||
6080
4b30e2aa0fc7
* bug-buddy.spec control-center.spec eel.spec eog.spec
dc144907
parents:
6017
diff
changeset
|
221 |
* Tue Oct 11 2005 - [email protected] |
4b30e2aa0fc7
* bug-buddy.spec control-center.spec eel.spec eog.spec
dc144907
parents:
6017
diff
changeset
|
222 |
- Bump to 2.8.3 |
4b30e2aa0fc7
* bug-buddy.spec control-center.spec eel.spec eog.spec
dc144907
parents:
6017
diff
changeset
|
223 |
|
6017 | 224 |
* Tue Sep 27 2005 - [email protected] |
225 |
- Bump to 2.8.2 |
|
226 |
||
5526 | 227 |
* Mon Aug 15 2005 - [email protected] |
228 |
- Bump to 2.8.0 |
|
229 |
||
5518 | 230 |
* Wed Jun 15 2005 - [email protected] |
231 |
- Bump to 2.6.5 |
|
232 |
- Remove patch glib-04-uninstalled-pc.diff |
|
233 |
||
234 |
* Fri May 06 2005 - [email protected] |
|
235 |
- Add patch 04 to add needed uninstalled.pc files to allow other |
|
236 |
base-libs libraries to build. This requires calling autoconf |
|
237 |
aclocal, etc. |
|
238 |
- Fix naming of patches since the patches were renamed but this |
|
239 |
spec file not updated. |
|
240 |
||
241 |
* Fri May 06 2005 - [email protected] |
|
242 |
- Bump to 2.6.4 |
|
243 |
||
4752 | 244 |
* Wed Nov 15 2004 - [email protected] |
245 |
- Bump to 2.4.8, since otherwise glib-gettextize doesn't create |
|
246 |
mkinstalldirs properly, and consequently it means I can't create |
|
247 |
tarballs from CVS sources. We also get a rake of nice bug fixes |
|
248 |
as a result. |
|
249 |
||
4547 | 250 |
* Fri Nov 12 2004 - [email protected] |
251 |
- Modify the default path that glib sets (if the user does not have PATH |
|
252 |
set), so it does not include "." since ARC determined this is a |
|
253 |
security concern. When building on Sun, set it to just "/usr/bin" |
|
254 |
since "/bin" is a symlink to "/usr/bin". On Linux set it to |
|
255 |
"/bin:/usr/bin". |
|
256 |
||
4365 | 257 |
* Fri Oct 29 2004 - [email protected] |
258 |
- use $CC64 for the 64-bit build if defined |
|
259 |
||
4146 | 260 |
* Wed Oct 05 2004 - [email protected] |
261 |
- Added glib-04-convert-utf8.diff to fix CR 5055972 |
|
262 |
||
4121 | 263 |
* Sat Oct 2 2004 - [email protected] |
264 |
- Create 64bit libraries for Solaris |
|
265 |
||
3980
b4a04c41bee6
Updating glib2.spec to include glib-03-g11n-allinguas.diff patch
yk150259
parents:
3858
diff
changeset
|
266 |
* Thu Sep 16 2004 - [email protected] |
b4a04c41bee6
Updating glib2.spec to include glib-03-g11n-allinguas.diff patch
yk150259
parents:
3858
diff
changeset
|
267 |
- 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
|
268 |
|
3660 | 269 |
* Wed Aug 18 2004 - [email protected] |
270 |
- added --enable-gtk-doc |
|
271 |
||
3486 | 272 |
* Thu Aug 05 2004 - [email protected] |
273 |
- Add patch to fix glib get SIGCHLD everytime |
|
274 |
||
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
275 |
* 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
|
276 |
- 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
|
277 |
|
3628 | 278 |
* Thu Jul 08 2004 - [email protected] |
279 |
- ported to rpm4/suse91 |
|
280 |
||
3263 | 281 |
* Wed Jul 07 2004 - [email protected] |
282 |
- added "-j $CPUS" to make to speed up builds |
|
283 |
||
2754 | 284 |
* Fri May 14 2004 - [email protected] |
285 |
- Bump to 2.4.1 |
|
286 |
||
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
287 |
* 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
|
288 |
- 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
|
289 |
|
2350 | 290 |
* Mon Mar 29 2004 - [email protected] |
291 |
- Updated l10n content to glib2-l10n-po-1.0.tar.bz2 |
|
292 |
||
2306 | 293 |
* Wed Mar 24 2004 - <[email protected]> |
294 |
- Bump to 2.4.0 |
|
295 |
||
296 |
* Wed Mar 10 2004 - <[email protected]> |
|
2170 | 297 |
- remove glib-02 patch (it wasn't being applied anyway). |
298 |
- bump to 2.3.6 |
|
299 |
||
1822
5038661790c1
Add patch to change '...' to '__VA_ARGS__' to build (gaim 0.75) on Solaris.
dc144907
parents:
1613
diff
changeset
|
300 |
* 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
|
301 |
- 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
|
302 |
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
|
303 |
|
1613 | 304 |
* Tue Feb 10 2004 - <[email protected]> |
305 |
- Bump to 2.3.2, l10n to 0.7 |
|
306 |
||
1432 | 307 |
* Mon Dec 15 2003 - <[email protected]> |
308 |
- update to 2.3.1 |
|
309 |
||
1186 | 310 |
* Sat Oct 04 2003 - <[email protected]> |
311 |
- update to 2.2.3 |
|
312 |
||
1058 | 313 |
* Thu Aug 14 2003 - <[email protected]> |
314 |
- move lib*.so to -devel, remove *.a, *.la |
|
315 |
||
912 | 316 |
* Fri Aug 01 2003 - <[email protected]> 2.2.2-1 |
317 |
||
318 |
* Wed Jul 25 2003 - <[email protected]> |
|
802 | 319 |
- add aaa_base dependency. Fixes postinstall script breakage |
320 |
during OS install. |
|
321 |
||
510 | 322 |
* Wed Jul 09 2003 - <[email protected]> |
323 |
- add in sun po files |
|
324 |
||
912 | 325 |
* Thu May 12 2003 - <[email protected]> |
160 | 326 |
- Initial spec file for glib2 |