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