author | gman |
Mon, 15 Aug 2005 03:06:15 +0000 | |
changeset 5526 | 2695b109e6ff |
parent 5518 | 235b0b4aa324 |
child 5565 | b1beceba7539 |
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 |
5526 | 11 |
Version: 2.8.0 |
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 |
5526 | 16 |
Source: http://ftp.gnome.org/pub/GNOME/sources/glib/2.8/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 |
|
1613 | 25 |
Patch1: glib-01-gettext-macro.diff |
5518 | 26 |
Patch2: glib-02-convert-utf8.diff |
5526 | 27 |
Patch3: glib-03-default-path.diff |
160 | 28 |
URL: http://www.gtk.org |
156 | 29 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
160 | 30 |
Docdir: %{_defaultdocdir}/doc |
156 | 31 |
AutoReqProv: on |
1080 | 32 |
Prereq: /sbin/ldconfig |
156 | 33 |
|
170 | 34 |
%define pkgconfig_version 0.15.0 |
1192 | 35 |
%define gtk_doc_version 1.1 |
170 | 36 |
|
802 | 37 |
Requires: aaa_base |
170 | 38 |
BuildRequires: pkgconfig >= %{pkgconfig_version} |
39 |
BuildRequires: gtk-doc >= %{gtk_doc_version} |
|
156 | 40 |
|
41 |
%description |
|
160 | 42 |
Glib is the base compatibility library for GTK+ and GNOME. It provides data |
43 |
structure handling for C, portability wrappers, and interfaces for such |
|
44 |
runtime functionality as an event loop, threads, dynamic laoding, and an |
|
45 |
object system |
|
156 | 46 |
|
47 |
%package devel |
|
48 |
Summary: GIMP Toolkit and GIMP Drawing Kit support library |
|
160 | 49 |
Group: Low level core compatibility development library for GTK+ and GNOME |
191 | 50 |
Requires: %{name} = %{version} |
156 | 51 |
|
52 |
%description devel |
|
160 | 53 |
Glib is the base compatibility library for GTK+ and GNOME. It provides data |
54 |
structure handling for C, portability wrappers, and interfaces for such |
|
55 |
runtime functionality as an event loop, threads, dynamic laoding, and an |
|
56 |
object system |
|
156 | 57 |
|
58 |
%prep |
|
59 |
%setup -q -n glib-%{version} |
|
1613 | 60 |
%patch1 -p1 |
3486 | 61 |
%patch2 -p1 |
3980
b4a04c41bee6
Updating glib2.spec to include glib-03-g11n-allinguas.diff patch
yk150259
parents:
3858
diff
changeset
|
62 |
%patch3 -p1 |
510 | 63 |
|
4121 | 64 |
%ifos solaris |
4271 | 65 |
%ifarch amd64 sparcv9 |
4121 | 66 |
cd .. |
67 |
cp -rp glib-%{version} glib-%{version}-64 |
|
68 |
%endif |
|
4127 | 69 |
%endif |
4121 | 70 |
|
4455 | 71 |
|
156 | 72 |
%build |
3263 | 73 |
%ifos linux |
74 |
if [ -x /usr/bin/getconf ]; then |
|
75 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
76 |
fi |
|
77 |
%else |
|
3846 | 78 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 79 |
%endif |
80 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
81 |
CPUS=1 |
|
82 |
fi |
|
83 |
||
4121 | 84 |
CONFLAGS="--prefix=%{_prefix} --mandir=%{_mandir}" |
85 |
||
86 |
%ifos solaris |
|
4271 | 87 |
%ifarch amd64 sparcv9 |
4121 | 88 |
CPUS=$(($CPUS*4)) |
89 |
||
90 |
cd ../glib-%version-64 |
|
91 |
||
92 |
export CFLAGS="$CFLAGS64" |
|
93 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH64" |
|
4365 | 94 |
export CC=${CC64:-$CC} |
95 |
save_PATH="$PATH" |
|
96 |
ccdir=`dirname $CC` |
|
97 |
export PATH=$ccdir:$PATH |
|
4121 | 98 |
|
5518 | 99 |
aclocal $ACLOCAL_FLAGS |
100 |
libtoolize --force |
|
101 |
autoheader |
|
102 |
automake -a -c -f |
|
103 |
autoconf |
|
4121 | 104 |
./configure $CONFLAGS \ |
105 |
--bindir=%{_bindir}/%{_arch64} \ |
|
106 |
--libdir=%{_libdir}/%{_arch64} \ |
|
107 |
--libexecdir=%{_libexecdir}/%{_arch64} \ |
|
108 |
--sysconfdir=%{_sysconfdir}/%{_arch64} \ |
|
109 |
--disable-gtk-doc |
|
110 |
||
111 |
make -j $CPUS |
|
112 |
||
113 |
cd ../glib-%version |
|
114 |
||
4365 | 115 |
export CC=${CC32:-$CC} |
116 |
export PATH="$save_PATH" |
|
4121 | 117 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" |
4365 | 118 |
export CFLAGS="$CFLAGS32" |
119 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
4127 | 120 |
%endif |
4121 | 121 |
%endif |
122 |
||
164 | 123 |
CFLAGS="$RPM_OPT_FLAGS" \ |
5518 | 124 |
aclocal $ACLOCAL_FLAGS |
125 |
libtoolize --force |
|
126 |
autoheader |
|
127 |
automake -a -c -f |
|
128 |
autoconf |
|
4121 | 129 |
./configure $CONFLAGS \ |
130 |
--sysconfdir=%{_sysconfdir} \ |
|
3660 | 131 |
--enable-gtk-doc |
3263 | 132 |
make -j $CPUS |
156 | 133 |
|
134 |
%install |
|
4121 | 135 |
|
136 |
%ifos solaris |
|
4271 | 137 |
%ifarch amd64 sparcv9 |
4121 | 138 |
cd ../glib-%version-64 |
139 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
140 |
cd ../glib-%version |
|
141 |
%endif |
|
4127 | 142 |
%endif |
4121 | 143 |
|
160 | 144 |
make DESTDIR=$RPM_BUILD_ROOT install |
1507 | 145 |
install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
146 |
install -d $RPM_BUILD_ROOT%{_mandir}/man3 |
|
5518 | 147 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man3 |
1507 | 148 |
install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man1 |
149 |
install --mode=0644 %SOURCE3 $RPM_BUILD_ROOT%{_mandir}/man1 |
|
150 |
install --mode=0644 %SOURCE4 $RPM_BUILD_ROOT%{_mandir}/man1 |
|
151 |
install --mode=0644 %SOURCE5 $RPM_BUILD_ROOT%{_mandir}/man1 |
|
152 |
install --mode=0644 %SOURCE6 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
153 |
install --mode=0644 %SOURCE7 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
154 |
install --mode=0644 %SOURCE8 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
1432 | 155 |
#Copy zh_HK from zh_TW |
156 |
#Fixes bug 4930405 |
|
1507 | 157 |
install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES |
158 |
install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/ |
|
3628 | 159 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
1432 | 160 |
|
156 | 161 |
%clean |
162 |
rm -rf $RPM_BUILD_ROOT |
|
163 |
||
160 | 164 |
%post |
165 |
/sbin/ldconfig |
|
156 | 166 |
|
160 | 167 |
%postun |
168 |
/sbin/ldconfig |
|
156 | 169 |
|
170 |
%files |
|
171 |
%defattr(-,root,root) |
|
1058 | 172 |
%{_libdir}/lib*.so.* |
3628 | 173 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
156 | 174 |
|
175 |
%files devel |
|
176 |
%defattr(-,root,root) |
|
168 | 177 |
%{_bindir}/* |
1058 | 178 |
%{_libdir}/lib*.so |
168 | 179 |
%{_includedir}/glib-2.0/* |
180 |
%{_libdir}/glib-2.0/include/*.h |
|
181 |
%{_libdir}/pkgconfig/*.pc |
|
182 |
%{_datadir}/aclocal/*.m4 |
|
183 |
%{_datadir}/glib-2.0/* |
|
3628 | 184 |
%{_datadir}/gtk-doc/html/* |
1432 | 185 |
%{_mandir}/man1/* |
186 |
%{_mandir}/man3/* |
|
156 | 187 |
|
188 |
%changelog |
|
5526 | 189 |
* Mon Aug 15 2005 - [email protected] |
190 |
- Bump to 2.8.0 |
|
191 |
||
5518 | 192 |
* Wed Jun 15 2005 - [email protected] |
193 |
- Bump to 2.6.5 |
|
194 |
- Remove patch glib-04-uninstalled-pc.diff |
|
195 |
||
196 |
* Fri May 06 2005 - [email protected] |
|
197 |
- Add patch 04 to add needed uninstalled.pc files to allow other |
|
198 |
base-libs libraries to build. This requires calling autoconf |
|
199 |
aclocal, etc. |
|
200 |
- Fix naming of patches since the patches were renamed but this |
|
201 |
spec file not updated. |
|
202 |
||
203 |
* Fri May 06 2005 - [email protected] |
|
204 |
- Bump to 2.6.4 |
|
205 |
||
4752 | 206 |
* Wed Nov 15 2004 - [email protected] |
207 |
- Bump to 2.4.8, since otherwise glib-gettextize doesn't create |
|
208 |
mkinstalldirs properly, and consequently it means I can't create |
|
209 |
tarballs from CVS sources. We also get a rake of nice bug fixes |
|
210 |
as a result. |
|
211 |
||
4547 | 212 |
* Fri Nov 12 2004 - [email protected] |
213 |
- Modify the default path that glib sets (if the user does not have PATH |
|
214 |
set), so it does not include "." since ARC determined this is a |
|
215 |
security concern. When building on Sun, set it to just "/usr/bin" |
|
216 |
since "/bin" is a symlink to "/usr/bin". On Linux set it to |
|
217 |
"/bin:/usr/bin". |
|
218 |
||
4365 | 219 |
* Fri Oct 29 2004 - [email protected] |
220 |
- use $CC64 for the 64-bit build if defined |
|
221 |
||
4146 | 222 |
* Wed Oct 05 2004 - [email protected] |
223 |
- Added glib-04-convert-utf8.diff to fix CR 5055972 |
|
224 |
||
4121 | 225 |
* Sat Oct 2 2004 - [email protected] |
226 |
- Create 64bit libraries for Solaris |
|
227 |
||
3980
b4a04c41bee6
Updating glib2.spec to include glib-03-g11n-allinguas.diff patch
yk150259
parents:
3858
diff
changeset
|
228 |
* Thu Sep 16 2004 - [email protected] |
b4a04c41bee6
Updating glib2.spec to include glib-03-g11n-allinguas.diff patch
yk150259
parents:
3858
diff
changeset
|
229 |
- 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
|
230 |
|
3660 | 231 |
* Wed Aug 18 2004 - [email protected] |
232 |
- added --enable-gtk-doc |
|
233 |
||
3486 | 234 |
* Thu Aug 05 2004 - [email protected] |
235 |
- Add patch to fix glib get SIGCHLD everytime |
|
236 |
||
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
237 |
* 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
|
238 |
- 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
|
239 |
|
3628 | 240 |
* Thu Jul 08 2004 - [email protected] |
241 |
- ported to rpm4/suse91 |
|
242 |
||
3263 | 243 |
* Wed Jul 07 2004 - [email protected] |
244 |
- added "-j $CPUS" to make to speed up builds |
|
245 |
||
2754 | 246 |
* Fri May 14 2004 - [email protected] |
247 |
- Bump to 2.4.1 |
|
248 |
||
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
249 |
* 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
|
250 |
- 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
|
251 |
|
2350 | 252 |
* Mon Mar 29 2004 - [email protected] |
253 |
- Updated l10n content to glib2-l10n-po-1.0.tar.bz2 |
|
254 |
||
2306 | 255 |
* Wed Mar 24 2004 - <[email protected]> |
256 |
- Bump to 2.4.0 |
|
257 |
||
258 |
* Wed Mar 10 2004 - <[email protected]> |
|
2170 | 259 |
- remove glib-02 patch (it wasn't being applied anyway). |
260 |
- bump to 2.3.6 |
|
261 |
||
1822
5038661790c1
Add patch to change '...' to '__VA_ARGS__' to build (gaim 0.75) on Solaris.
dc144907
parents:
1613
diff
changeset
|
262 |
* 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
|
263 |
- 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
|
264 |
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
|
265 |
|
1613 | 266 |
* Tue Feb 10 2004 - <[email protected]> |
267 |
- Bump to 2.3.2, l10n to 0.7 |
|
268 |
||
1432 | 269 |
* Mon Dec 15 2003 - <[email protected]> |
270 |
- update to 2.3.1 |
|
271 |
||
1186 | 272 |
* Sat Oct 04 2003 - <[email protected]> |
273 |
- update to 2.2.3 |
|
274 |
||
1058 | 275 |
* Thu Aug 14 2003 - <[email protected]> |
276 |
- move lib*.so to -devel, remove *.a, *.la |
|
277 |
||
912 | 278 |
* Fri Aug 01 2003 - <[email protected]> 2.2.2-1 |
279 |
||
280 |
* Wed Jul 25 2003 - <[email protected]> |
|
802 | 281 |
- add aaa_base dependency. Fixes postinstall script breakage |
282 |
during OS install. |
|
283 |
||
510 | 284 |
* Wed Jul 09 2003 - <[email protected]> |
285 |
- add in sun po files |
|
286 |
||
912 | 287 |
* Thu May 12 2003 - <[email protected]> |
160 | 288 |
- Initial spec file for glib2 |