author | dc144907 |
Tue, 23 Aug 2005 16:46:21 +0000 | |
changeset 5565 | b1beceba7539 |
parent 5518 | 235b0b4aa324 |
child 5571 | 9d5e456c5041 |
permissions | -rw-r--r-- |
5518 | 1 |
# |
2 |
# spec file for package libglade |
|
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 |
# |
|
40 | 8 |
Name: libglade |
190 | 9 |
License: LGPL |
10 |
Group: System/Libraries/GNOME |
|
5518 | 11 |
Version: 2.5.1 |
12 |
Release: 1 |
|
13 |
Distribution: Java Desktop System |
|
575 | 14 |
Vendor: Sun Microsystems, Inc. |
190 | 15 |
Summary: Library for loading GLADE interfaces at runtime |
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5518
diff
changeset
|
16 |
Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.5/%{name}-%{version}.tar.bz2 |
1436 | 17 |
Source1: libglade-2.0.3.gz |
40 | 18 |
URL: http://www.daa.com.au/~james/gnome/ |
19 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
190 | 20 |
Docdir: %{_defaultdocdir}/doc |
40 | 21 |
Autoreqprov: on |
1080 | 22 |
Prereq: /sbin/ldconfig |
40 | 23 |
|
5518 | 24 |
%define gtk2_version 2.5.0 |
3628 | 25 |
%define libxml2_version 2.6.7 |
26 |
%define python_xml_version 2.3.3 |
|
190 | 27 |
|
28 |
Requires: gtk2 >= %{gtk2_version} |
|
29 |
Requires: libxml2 >= %{libxml2_version} |
|
30 |
BuildRequires: gtk2-devel >= %{gtk2_version} |
|
31 |
BuildRequires: libxml2-devel >= %{libxml2_version} |
|
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5518
diff
changeset
|
32 |
# python-xml check disabled - pythn 2.4.1 built from source, not install via rpm |
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5518
diff
changeset
|
33 |
#FIXME: BuildRequires: python-xml >= %{python_xml_version} |
190 | 34 |
|
40 | 35 |
%description |
36 |
This library allows you to load glade interface files in a program at runtime. |
|
37 |
||
38 |
%package devel |
|
190 | 39 |
Summary: Development library for loading GLADE interfaces at runtime |
40 | 40 |
Group: Development/Libraries/GNOME |
191 | 41 |
Requires: %{name} = %{version} |
42 |
Requires: gtk2-devel >= %{gtk2_version} |
|
43 |
Requires: libxml2-devel >= %{libxml2_version} |
|
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5518
diff
changeset
|
44 |
#FIXME: See above: Requires: python-xml >= %{python_xml_version} |
40 | 45 |
|
46 |
%description devel |
|
47 |
This library allows you to load glade interface files in a program at runtime. |
|
48 |
||
49 |
%prep |
|
50 |
%setup -q |
|
51 |
||
4121 | 52 |
%ifos solaris |
4271 | 53 |
%ifarch amd64 sparcv9 |
4121 | 54 |
cd .. |
55 |
cp -rp libglade-%{version} libglade-%{version}-64 |
|
56 |
%endif |
|
4127 | 57 |
%endif |
4121 | 58 |
|
59 |
||
4455 | 60 |
|
40 | 61 |
%build |
2002 | 62 |
%ifos linux |
3263 | 63 |
if [ -x /usr/bin/getconf ]; then |
64 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
65 |
fi |
|
66 |
%else |
|
3846 | 67 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 68 |
%endif |
69 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
70 |
CPUS=1 |
|
71 |
fi |
|
4121 | 72 |
|
73 |
||
74 |
CONFLAGS="--prefix=%{_prefix}" |
|
75 |
||
76 |
%ifos solaris |
|
4271 | 77 |
%ifarch amd64 sparcv9 |
4121 | 78 |
CPUS=$(($CPUS*4)) |
79 |
||
80 |
cd ../libglade-%version-64 |
|
81 |
||
82 |
export CFLAGS="$CFLAGS64" |
|
83 |
export LDFLAGS="$LDFLAGS64" |
|
84 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH64" |
|
4365 | 85 |
export CC=${CC64:-$CC} |
86 |
save_PATH="$PATH" |
|
87 |
ccdir=`dirname $CC` |
|
88 |
export PATH=$ccdir:$PATH |
|
4121 | 89 |
|
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5518
diff
changeset
|
90 |
gtkdocize |
4121 | 91 |
libtoolize --force |
5518 | 92 |
aclocal $ACLOCAL_FLAGS -I ./m4 |
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5518
diff
changeset
|
93 |
autoheader |
4121 | 94 |
automake -a -c -f |
95 |
autoconf |
|
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 ../libglade-%version |
|
106 |
||
4365 | 107 |
export CFLAGS="$CFLAGS32" |
108 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
4121 | 109 |
export LDFLAGS="$LDFLAGS32" |
110 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" |
|
4365 | 111 |
export CC=${CC32:-$CC} |
112 |
export PATH="$save_PATH" |
|
4121 | 113 |
|
114 |
%endif |
|
4127 | 115 |
%endif |
4121 | 116 |
|
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5518
diff
changeset
|
117 |
gtkdocize |
1989 | 118 |
libtoolize --force |
5518 | 119 |
aclocal $ACLOCAL_FLAGS -I ./m4 |
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5518
diff
changeset
|
120 |
autoheader |
1989 | 121 |
automake -a -c -f |
122 |
autoconf |
|
190 | 123 |
CFLAGS="$RPM_OPT_FLAGS" \ |
124 |
./configure --prefix=%{_prefix} \ |
|
3660 | 125 |
--sysconfdir=%{_sysconfdir} \ |
126 |
--enable-gtk-doc |
|
3263 | 127 |
make -j $CPUS |
40 | 128 |
|
129 |
%install |
|
4121 | 130 |
|
131 |
%ifos solaris |
|
4271 | 132 |
%ifarch amd64 sparcv9 |
4121 | 133 |
cd ../libglade-%version-64 |
134 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
135 |
cd ../libglade-%version |
|
136 |
%endif |
|
4127 | 137 |
%endif |
4121 | 138 |
|
40 | 139 |
make DESTDIR=$RPM_BUILD_ROOT install |
1507 | 140 |
install -d $RPM_BUILD_ROOT%{_mandir}/man3 |
141 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
3628 | 142 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
143 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
|
40 | 144 |
|
145 |
%clean |
|
146 |
rm -rf $RPM_BUILD_ROOT |
|
147 |
||
190 | 148 |
%post |
149 |
/sbin/ldconfig |
|
150 |
||
151 |
%postun |
|
152 |
/sbin/ldconfig |
|
153 |
||
40 | 154 |
%files |
1058 | 155 |
%{_libdir}/lib*.so.* |
40 | 156 |
|
157 |
%files devel |
|
158 |
%defattr(-, root, root) |
|
1058 | 159 |
%{_libdir}/lib*.so |
190 | 160 |
%{_includedir}/libglade-2.0/ |
40 | 161 |
%{_libdir}/pkgconfig/*.pc |
162 |
%{_datadir}/gtk-doc/html/libglade |
|
163 |
%{_datadir}/xml/libglade |
|
1436 | 164 |
%{_mandir}/man3/* |
40 | 165 |
|
190 | 166 |
%changelog |
5518 | 167 |
* Fri May 06 2005 - [email protected] |
168 |
- Add "-I ./m4" to the ACLOCAL_FLAGS since it is needed to build |
|
169 |
on Solaris. |
|
170 |
||
171 |
* Fri May 05 2005 - [email protected] |
|
172 |
- Bump to 2.5.1 |
|
173 |
||
4365 | 174 |
* Fri Oct 29 2004 - [email protected] |
175 |
- use $CC64 for the 64-bit build if defined |
|
176 |
||
5518 | 177 |
* Sat Oct 02 2004 - [email protected] |
4121 | 178 |
- Create 64bit libraries for Solaris |
179 |
||
3660 | 180 |
* Wed Aug 18 2004 - [email protected] |
181 |
- added --enable-gtk-doc. |
|
182 |
||
3628 | 183 |
* Wed Jul 07 2004 - [email protected] |
184 |
- Ported to rpm4 |
|
185 |
||
3263 | 186 |
* Wed Jul 07 2004 - [email protected] |
187 |
- added "-j $CPUS" to make to speed up builds |
|
188 |
||
2227 | 189 |
* Tue Mar 16 2004 - <[email protected]> |
190 |
- Bump to 2.3.6 |
|
191 |
||
2002 | 192 |
* Wed Feb 25 2004 - <[email protected]> |
193 |
- use the jds versions of the autotools |
|
194 |
||
1989 | 195 |
* Wed Feb 25 2004 - <[email protected]> |
196 |
- autotoolize |
|
197 |
||
1791 | 198 |
* Wed Feb 18 2004 - <[email protected]> |
199 |
- Bump to 2.3.2 |
|
200 |
||
1436 | 201 |
* Mon Dec 15 2003 - <[email protected]> |
202 |
- Bump to 2.3.1 |
|
203 |
||
1201 | 204 |
* Mon Oct 6 2003 - <[email protected]> |
205 |
- upped some dep version numbers |
|
1436 | 206 |
|
1058 | 207 |
* Thu Aug 14 2003 - <[email protected]> |
208 |
- move lib*.so to -devel, remove *.a, *.la |
|
209 |
||
40 | 210 |
* Tue May 13 2003 - [email protected] |
211 |
- Initial Sun Spec File |