author | dermotm |
Mon, 18 Oct 2004 09:30:38 +0000 | |
changeset 4276 | 2a2c7f354601 |
parent 4271 | eb46de360ab6 |
child 4365 | d8676a6421af |
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 |
4265 | 10 |
Source1: glib2-l10n-po-1.6.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" |
|
91 |
||
92 |
./configure $CONFLAGS \ |
|
93 |
--bindir=%{_bindir}/%{_arch64} \ |
|
94 |
--libdir=%{_libdir}/%{_arch64} \ |
|
95 |
--libexecdir=%{_libexecdir}/%{_arch64} \ |
|
96 |
--sysconfdir=%{_sysconfdir}/%{_arch64} \ |
|
97 |
--disable-gtk-doc |
|
98 |
||
99 |
make -j $CPUS |
|
100 |
||
101 |
cd ../glib-%version |
|
102 |
||
103 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" |
|
4127 | 104 |
%endif |
4121 | 105 |
%endif |
106 |
||
164 | 107 |
CFLAGS="$RPM_OPT_FLAGS" \ |
4121 | 108 |
./configure $CONFLAGS \ |
109 |
--sysconfdir=%{_sysconfdir} \ |
|
3660 | 110 |
--enable-gtk-doc |
3263 | 111 |
make -j $CPUS |
156 | 112 |
|
113 |
%install |
|
4121 | 114 |
|
115 |
%ifos solaris |
|
4271 | 116 |
%ifarch amd64 sparcv9 |
4121 | 117 |
cd ../glib-%version-64 |
118 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
119 |
cd ../glib-%version |
|
120 |
%endif |
|
4127 | 121 |
%endif |
4121 | 122 |
|
160 | 123 |
make DESTDIR=$RPM_BUILD_ROOT install |
1507 | 124 |
install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
125 |
install -d $RPM_BUILD_ROOT%{_mandir}/man3 |
|
126 |
install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man1 |
|
127 |
install --mode=0644 %SOURCE3 $RPM_BUILD_ROOT%{_mandir}/man1 |
|
128 |
install --mode=0644 %SOURCE4 $RPM_BUILD_ROOT%{_mandir}/man1 |
|
129 |
install --mode=0644 %SOURCE5 $RPM_BUILD_ROOT%{_mandir}/man1 |
|
130 |
install --mode=0644 %SOURCE6 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
131 |
install --mode=0644 %SOURCE7 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
132 |
install --mode=0644 %SOURCE8 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
133 |
install --mode=0644 %SOURCE9 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
1432 | 134 |
#Copy zh_HK from zh_TW |
135 |
#Fixes bug 4930405 |
|
1507 | 136 |
install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES |
137 |
install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/ |
|
3628 | 138 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
1432 | 139 |
|
156 | 140 |
%clean |
141 |
rm -rf $RPM_BUILD_ROOT |
|
142 |
||
160 | 143 |
%post |
144 |
/sbin/ldconfig |
|
156 | 145 |
|
160 | 146 |
%postun |
147 |
/sbin/ldconfig |
|
156 | 148 |
|
149 |
%files |
|
150 |
%defattr(-,root,root) |
|
1058 | 151 |
%{_libdir}/lib*.so.* |
3628 | 152 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
156 | 153 |
|
154 |
%files devel |
|
155 |
%defattr(-,root,root) |
|
168 | 156 |
%{_bindir}/* |
1058 | 157 |
%{_libdir}/lib*.so |
168 | 158 |
%{_includedir}/glib-2.0/* |
159 |
%{_libdir}/glib-2.0/include/*.h |
|
160 |
%{_libdir}/pkgconfig/*.pc |
|
161 |
%{_datadir}/aclocal/*.m4 |
|
162 |
%{_datadir}/glib-2.0/* |
|
3628 | 163 |
%{_datadir}/gtk-doc/html/* |
1432 | 164 |
%{_mandir}/man1/* |
165 |
%{_mandir}/man3/* |
|
156 | 166 |
|
167 |
%changelog |
|
4146 | 168 |
* Wed Oct 05 2004 - [email protected] |
169 |
- Added glib-04-convert-utf8.diff to fix CR 5055972 |
|
170 |
||
4121 | 171 |
* Sat Oct 2 2004 - [email protected] |
172 |
- Create 64bit libraries for Solaris |
|
173 |
||
3980
b4a04c41bee6
Updating glib2.spec to include glib-03-g11n-allinguas.diff patch
yk150259
parents:
3858
diff
changeset
|
174 |
* Thu Sep 16 2004 - [email protected] |
b4a04c41bee6
Updating glib2.spec to include glib-03-g11n-allinguas.diff patch
yk150259
parents:
3858
diff
changeset
|
175 |
- 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
|
176 |
|
3660 | 177 |
* Wed Aug 18 2004 - [email protected] |
178 |
- added --enable-gtk-doc |
|
179 |
||
3486 | 180 |
* Thu Aug 05 2004 - [email protected] |
181 |
- Add patch to fix glib get SIGCHLD everytime |
|
182 |
||
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
183 |
* 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
|
184 |
- 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
|
185 |
|
3628 | 186 |
* Thu Jul 08 2004 - [email protected] |
187 |
- ported to rpm4/suse91 |
|
188 |
||
3263 | 189 |
* Wed Jul 07 2004 - [email protected] |
190 |
- added "-j $CPUS" to make to speed up builds |
|
191 |
||
2754 | 192 |
* Fri May 14 2004 - [email protected] |
193 |
- Bump to 2.4.1 |
|
194 |
||
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
195 |
* 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
|
196 |
- 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
|
197 |
|
2350 | 198 |
* Mon Mar 29 2004 - [email protected] |
199 |
- Updated l10n content to glib2-l10n-po-1.0.tar.bz2 |
|
200 |
||
2306 | 201 |
* Wed Mar 24 2004 - <[email protected]> |
202 |
- Bump to 2.4.0 |
|
203 |
||
204 |
* Wed Mar 10 2004 - <[email protected]> |
|
2170 | 205 |
- remove glib-02 patch (it wasn't being applied anyway). |
206 |
- bump to 2.3.6 |
|
207 |
||
1822
5038661790c1
Add patch to change '...' to '__VA_ARGS__' to build (gaim 0.75) on Solaris.
dc144907
parents:
1613
diff
changeset
|
208 |
* 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
|
209 |
- 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
|
210 |
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
|
211 |
|
1613 | 212 |
* Tue Feb 10 2004 - <[email protected]> |
213 |
- Bump to 2.3.2, l10n to 0.7 |
|
214 |
||
1432 | 215 |
* Mon Dec 15 2003 - <[email protected]> |
216 |
- update to 2.3.1 |
|
217 |
||
1186 | 218 |
* Sat Oct 04 2003 - <[email protected]> |
219 |
- update to 2.2.3 |
|
220 |
||
1058 | 221 |
* Thu Aug 14 2003 - <[email protected]> |
222 |
- move lib*.so to -devel, remove *.a, *.la |
|
223 |
||
912 | 224 |
* Fri Aug 01 2003 - <[email protected]> 2.2.2-1 |
225 |
||
226 |
* Wed Jul 25 2003 - <[email protected]> |
|
802 | 227 |
- add aaa_base dependency. Fixes postinstall script breakage |
228 |
during OS install. |
|
229 |
||
510 | 230 |
* Wed Jul 09 2003 - <[email protected]> |
231 |
- add in sun po files |
|
232 |
||
912 | 233 |
* Thu May 12 2003 - <[email protected]> |
160 | 234 |
- Initial spec file for glib2 |