author | miles |
Fri, 12 Nov 2004 13:25:47 +0000 | |
changeset 4541 | aa555c8d3378 |
parent 4455 | aea26bce3124 |
child 4547 | 34ec96b5e8d2 |
permissions | -rw-r--r-- |
160 | 1 |
Name: glib2 |
156 | 2 |
License: LGPL |
163 | 3 |
Group: System/Libraries |
2754 | 4 |
Version: 2.4.1 |
4409 | 5 |
Release: 25 |
1613 | 6 |
Distribution: Cinnabar |
575 | 7 |
Vendor: Sun Microsystems, Inc. |
160 | 8 |
Summary: Low level core compatibility library for GTK+ and GNOME |
2306 | 9 |
Source: http://ftp.gnome.org/pub/GNOME/sources/glib/2.4/glib-%{version}.tar.bz2 |
4541 | 10 |
Source1: glib2-l10n-po-1.8.tar.bz2 |
1432 | 11 |
Source2: glib-genmarshal.1.gz |
12 |
Source3: glib-mkenums.1.gz |
|
13 |
Source4: glib-gettextize.1.gz |
|
14 |
Source5: gobject-query.1.gz |
|
15 |
Source6: libglib-2.0.3.gz |
|
16 |
Source7: libgmodule-2.0.3.gz |
|
17 |
Source8: libgobject-2.0.3.gz |
|
18 |
Source9: libgthread-2.0.3.gz |
|
4455 | 19 |
Source10: l10n-configure.sh |
1613 | 20 |
Patch1: glib-01-gettext-macro.diff |
3486 | 21 |
Patch2: glib-02-sigchild.diff |
3980
b4a04c41bee6
Updating glib2.spec to include glib-03-g11n-allinguas.diff patch
yk150259
parents:
3858
diff
changeset
|
22 |
Patch3: glib-03-g11n-allinguas.diff |
4146 | 23 |
Patch4: glib-04-convert-utf8.diff |
160 | 24 |
URL: http://www.gtk.org |
156 | 25 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
160 | 26 |
Docdir: %{_defaultdocdir}/doc |
156 | 27 |
AutoReqProv: on |
1080 | 28 |
Prereq: /sbin/ldconfig |
156 | 29 |
|
170 | 30 |
%define pkgconfig_version 0.15.0 |
1192 | 31 |
%define gtk_doc_version 1.1 |
170 | 32 |
|
802 | 33 |
Requires: aaa_base |
170 | 34 |
BuildRequires: pkgconfig >= %{pkgconfig_version} |
35 |
BuildRequires: gtk-doc >= %{gtk_doc_version} |
|
156 | 36 |
|
37 |
%description |
|
160 | 38 |
Glib is the base compatibility library for GTK+ and GNOME. It provides data |
39 |
structure handling for C, portability wrappers, and interfaces for such |
|
40 |
runtime functionality as an event loop, threads, dynamic laoding, and an |
|
41 |
object system |
|
156 | 42 |
|
43 |
%package devel |
|
44 |
Summary: GIMP Toolkit and GIMP Drawing Kit support library |
|
160 | 45 |
Group: Low level core compatibility development library for GTK+ and GNOME |
191 | 46 |
Requires: %{name} = %{version} |
156 | 47 |
|
48 |
%description devel |
|
160 | 49 |
Glib is the base compatibility library for GTK+ and GNOME. It provides data |
50 |
structure handling for C, portability wrappers, and interfaces for such |
|
51 |
runtime functionality as an event loop, threads, dynamic laoding, and an |
|
52 |
object system |
|
156 | 53 |
|
54 |
%prep |
|
55 |
%setup -q -n glib-%{version} |
|
1613 | 56 |
%patch1 -p1 |
3486 | 57 |
%patch2 -p1 |
3980
b4a04c41bee6
Updating glib2.spec to include glib-03-g11n-allinguas.diff patch
yk150259
parents:
3858
diff
changeset
|
58 |
%patch3 -p1 |
4146 | 59 |
%patch4 -p1 |
1551 | 60 |
|
1507 | 61 |
bzcat %SOURCE1 | tar xvf - |
510 | 62 |
|
4121 | 63 |
%ifos solaris |
4271 | 64 |
%ifarch amd64 sparcv9 |
4121 | 65 |
cd .. |
66 |
cp -rp glib-%{version} glib-%{version}-64 |
|
67 |
%endif |
|
4127 | 68 |
%endif |
4121 | 69 |
|
4455 | 70 |
bash -x %SOURCE10 |
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 |
|
99 |
./configure $CONFLAGS \ |
|
100 |
--bindir=%{_bindir}/%{_arch64} \ |
|
101 |
--libdir=%{_libdir}/%{_arch64} \ |
|
102 |
--libexecdir=%{_libexecdir}/%{_arch64} \ |
|
103 |
--sysconfdir=%{_sysconfdir}/%{_arch64} \ |
|
104 |
--disable-gtk-doc |
|
105 |
||
106 |
make -j $CPUS |
|
107 |
||
108 |
cd ../glib-%version |
|
109 |
||
4365 | 110 |
export CC=${CC32:-$CC} |
111 |
export PATH="$save_PATH" |
|
4121 | 112 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" |
4365 | 113 |
export CFLAGS="$CFLAGS32" |
114 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
4127 | 115 |
%endif |
4121 | 116 |
%endif |
117 |
||
164 | 118 |
CFLAGS="$RPM_OPT_FLAGS" \ |
4121 | 119 |
./configure $CONFLAGS \ |
120 |
--sysconfdir=%{_sysconfdir} \ |
|
3660 | 121 |
--enable-gtk-doc |
3263 | 122 |
make -j $CPUS |
156 | 123 |
|
124 |
%install |
|
4121 | 125 |
|
126 |
%ifos solaris |
|
4271 | 127 |
%ifarch amd64 sparcv9 |
4121 | 128 |
cd ../glib-%version-64 |
129 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
130 |
cd ../glib-%version |
|
131 |
%endif |
|
4127 | 132 |
%endif |
4121 | 133 |
|
160 | 134 |
make DESTDIR=$RPM_BUILD_ROOT install |
1507 | 135 |
install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
136 |
install -d $RPM_BUILD_ROOT%{_mandir}/man3 |
|
137 |
install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man1 |
|
138 |
install --mode=0644 %SOURCE3 $RPM_BUILD_ROOT%{_mandir}/man1 |
|
139 |
install --mode=0644 %SOURCE4 $RPM_BUILD_ROOT%{_mandir}/man1 |
|
140 |
install --mode=0644 %SOURCE5 $RPM_BUILD_ROOT%{_mandir}/man1 |
|
141 |
install --mode=0644 %SOURCE6 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
142 |
install --mode=0644 %SOURCE7 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
143 |
install --mode=0644 %SOURCE8 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
144 |
install --mode=0644 %SOURCE9 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
1432 | 145 |
#Copy zh_HK from zh_TW |
146 |
#Fixes bug 4930405 |
|
1507 | 147 |
install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES |
148 |
install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/ |
|
3628 | 149 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
1432 | 150 |
|
156 | 151 |
%clean |
152 |
rm -rf $RPM_BUILD_ROOT |
|
153 |
||
160 | 154 |
%post |
155 |
/sbin/ldconfig |
|
156 | 156 |
|
160 | 157 |
%postun |
158 |
/sbin/ldconfig |
|
156 | 159 |
|
160 |
%files |
|
161 |
%defattr(-,root,root) |
|
1058 | 162 |
%{_libdir}/lib*.so.* |
3628 | 163 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
156 | 164 |
|
165 |
%files devel |
|
166 |
%defattr(-,root,root) |
|
168 | 167 |
%{_bindir}/* |
1058 | 168 |
%{_libdir}/lib*.so |
168 | 169 |
%{_includedir}/glib-2.0/* |
170 |
%{_libdir}/glib-2.0/include/*.h |
|
171 |
%{_libdir}/pkgconfig/*.pc |
|
172 |
%{_datadir}/aclocal/*.m4 |
|
173 |
%{_datadir}/glib-2.0/* |
|
3628 | 174 |
%{_datadir}/gtk-doc/html/* |
1432 | 175 |
%{_mandir}/man1/* |
176 |
%{_mandir}/man3/* |
|
156 | 177 |
|
178 |
%changelog |
|
4365 | 179 |
* Fri Oct 29 2004 - [email protected] |
180 |
- use $CC64 for the 64-bit build if defined |
|
181 |
||
4146 | 182 |
* Wed Oct 05 2004 - [email protected] |
183 |
- Added glib-04-convert-utf8.diff to fix CR 5055972 |
|
184 |
||
4121 | 185 |
* Sat Oct 2 2004 - [email protected] |
186 |
- Create 64bit libraries for Solaris |
|
187 |
||
3980
b4a04c41bee6
Updating glib2.spec to include glib-03-g11n-allinguas.diff patch
yk150259
parents:
3858
diff
changeset
|
188 |
* Thu Sep 16 2004 - [email protected] |
b4a04c41bee6
Updating glib2.spec to include glib-03-g11n-allinguas.diff patch
yk150259
parents:
3858
diff
changeset
|
189 |
- 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
|
190 |
|
3660 | 191 |
* Wed Aug 18 2004 - [email protected] |
192 |
- added --enable-gtk-doc |
|
193 |
||
3486 | 194 |
* Thu Aug 05 2004 - [email protected] |
195 |
- Add patch to fix glib get SIGCHLD everytime |
|
196 |
||
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
197 |
* 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
|
198 |
- 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
|
199 |
|
3628 | 200 |
* Thu Jul 08 2004 - [email protected] |
201 |
- ported to rpm4/suse91 |
|
202 |
||
3263 | 203 |
* Wed Jul 07 2004 - [email protected] |
204 |
- added "-j $CPUS" to make to speed up builds |
|
205 |
||
2754 | 206 |
* Fri May 14 2004 - [email protected] |
207 |
- Bump to 2.4.1 |
|
208 |
||
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
209 |
* 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
|
210 |
- 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
|
211 |
|
2350 | 212 |
* Mon Mar 29 2004 - [email protected] |
213 |
- Updated l10n content to glib2-l10n-po-1.0.tar.bz2 |
|
214 |
||
2306 | 215 |
* Wed Mar 24 2004 - <[email protected]> |
216 |
- Bump to 2.4.0 |
|
217 |
||
218 |
* Wed Mar 10 2004 - <[email protected]> |
|
2170 | 219 |
- remove glib-02 patch (it wasn't being applied anyway). |
220 |
- bump to 2.3.6 |
|
221 |
||
1822
5038661790c1
Add patch to change '...' to '__VA_ARGS__' to build (gaim 0.75) on Solaris.
dc144907
parents:
1613
diff
changeset
|
222 |
* 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
|
223 |
- 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
|
224 |
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
|
225 |
|
1613 | 226 |
* Tue Feb 10 2004 - <[email protected]> |
227 |
- Bump to 2.3.2, l10n to 0.7 |
|
228 |
||
1432 | 229 |
* Mon Dec 15 2003 - <[email protected]> |
230 |
- update to 2.3.1 |
|
231 |
||
1186 | 232 |
* Sat Oct 04 2003 - <[email protected]> |
233 |
- update to 2.2.3 |
|
234 |
||
1058 | 235 |
* Thu Aug 14 2003 - <[email protected]> |
236 |
- move lib*.so to -devel, remove *.a, *.la |
|
237 |
||
912 | 238 |
* Fri Aug 01 2003 - <[email protected]> 2.2.2-1 |
239 |
||
240 |
* Wed Jul 25 2003 - <[email protected]> |
|
802 | 241 |
- add aaa_base dependency. Fixes postinstall script breakage |
242 |
during OS install. |
|
243 |
||
510 | 244 |
* Wed Jul 09 2003 - <[email protected]> |
245 |
- add in sun po files |
|
246 |
||
912 | 247 |
* Thu May 12 2003 - <[email protected]> |
160 | 248 |
- Initial spec file for glib2 |