author | gman |
Sun, 18 Sep 2005 11:54:56 +0000 | |
changeset 5931 | 208a15418faf |
parent 5571 | 9d5e456c5041 |
child 6613 | 2643799d1f8e |
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} |
|
5931 | 32 |
BuildRequires: python-xml >= %{python_xml_version} |
190 | 33 |
|
40 | 34 |
%description |
35 |
This library allows you to load glade interface files in a program at runtime. |
|
36 |
||
37 |
%package devel |
|
190 | 38 |
Summary: Development library for loading GLADE interfaces at runtime |
40 | 39 |
Group: Development/Libraries/GNOME |
191 | 40 |
Requires: %{name} = %{version} |
41 |
Requires: gtk2-devel >= %{gtk2_version} |
|
42 |
Requires: libxml2-devel >= %{libxml2_version} |
|
5931 | 43 |
Requires: python-xml >= %{python_xml_version} |
40 | 44 |
|
45 |
%description devel |
|
46 |
This library allows you to load glade interface files in a program at runtime. |
|
47 |
||
48 |
%prep |
|
49 |
%setup -q |
|
50 |
||
4121 | 51 |
%ifos solaris |
4271 | 52 |
%ifarch amd64 sparcv9 |
4121 | 53 |
cd .. |
54 |
cp -rp libglade-%{version} libglade-%{version}-64 |
|
55 |
%endif |
|
4127 | 56 |
%endif |
4121 | 57 |
|
58 |
||
4455 | 59 |
|
40 | 60 |
%build |
2002 | 61 |
%ifos linux |
3263 | 62 |
if [ -x /usr/bin/getconf ]; then |
63 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
64 |
fi |
|
65 |
%else |
|
3846 | 66 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 67 |
%endif |
68 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
69 |
CPUS=1 |
|
70 |
fi |
|
4121 | 71 |
|
72 |
||
73 |
CONFLAGS="--prefix=%{_prefix}" |
|
74 |
||
75 |
%ifos solaris |
|
4271 | 76 |
%ifarch amd64 sparcv9 |
4121 | 77 |
CPUS=$(($CPUS*4)) |
78 |
||
79 |
cd ../libglade-%version-64 |
|
80 |
||
81 |
export CFLAGS="$CFLAGS64" |
|
82 |
export LDFLAGS="$LDFLAGS64" |
|
83 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH64" |
|
4365 | 84 |
export CC=${CC64:-$CC} |
85 |
save_PATH="$PATH" |
|
86 |
ccdir=`dirname $CC` |
|
87 |
export PATH=$ccdir:$PATH |
|
4121 | 88 |
|
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5518
diff
changeset
|
89 |
gtkdocize |
4121 | 90 |
libtoolize --force |
5518 | 91 |
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
|
92 |
autoheader |
4121 | 93 |
automake -a -c -f |
94 |
autoconf |
|
95 |
./configure $CONFLAGS \ |
|
96 |
--bindir=%{_bindir}/%{_arch64} \ |
|
97 |
--libdir=%{_libdir}/%{_arch64} \ |
|
98 |
--libexecdir=%{_libexecdir}/%{_arch64} \ |
|
99 |
--sysconfdir=%{_sysconfdir}/%{_arch64} \ |
|
100 |
--disable-gtk-doc |
|
101 |
||
102 |
make -j $CPUS |
|
103 |
||
104 |
cd ../libglade-%version |
|
105 |
||
4365 | 106 |
export CFLAGS="$CFLAGS32" |
107 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
4121 | 108 |
export LDFLAGS="$LDFLAGS32" |
109 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" |
|
4365 | 110 |
export CC=${CC32:-$CC} |
111 |
export PATH="$save_PATH" |
|
4121 | 112 |
|
113 |
%endif |
|
4127 | 114 |
%endif |
4121 | 115 |
|
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5518
diff
changeset
|
116 |
gtkdocize |
1989 | 117 |
libtoolize --force |
5518 | 118 |
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
|
119 |
autoheader |
1989 | 120 |
automake -a -c -f |
121 |
autoconf |
|
190 | 122 |
CFLAGS="$RPM_OPT_FLAGS" \ |
123 |
./configure --prefix=%{_prefix} \ |
|
3660 | 124 |
--sysconfdir=%{_sysconfdir} \ |
125 |
--enable-gtk-doc |
|
3263 | 126 |
make -j $CPUS |
40 | 127 |
|
128 |
%install |
|
4121 | 129 |
|
130 |
%ifos solaris |
|
4271 | 131 |
%ifarch amd64 sparcv9 |
4121 | 132 |
cd ../libglade-%version-64 |
133 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
134 |
cd ../libglade-%version |
|
135 |
%endif |
|
4127 | 136 |
%endif |
4121 | 137 |
|
40 | 138 |
make DESTDIR=$RPM_BUILD_ROOT install |
1507 | 139 |
install -d $RPM_BUILD_ROOT%{_mandir}/man3 |
140 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
3628 | 141 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
142 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
|
40 | 143 |
|
144 |
%clean |
|
145 |
rm -rf $RPM_BUILD_ROOT |
|
146 |
||
190 | 147 |
%post |
148 |
/sbin/ldconfig |
|
149 |
||
150 |
%postun |
|
151 |
/sbin/ldconfig |
|
152 |
||
40 | 153 |
%files |
1058 | 154 |
%{_libdir}/lib*.so.* |
40 | 155 |
|
156 |
%files devel |
|
157 |
%defattr(-, root, root) |
|
5571
9d5e456c5041
* libglade.spec: Add _bindir to %files devel to get libglade-convert.
dc144907
parents:
5565
diff
changeset
|
158 |
%{_bindir} |
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 |
5571
9d5e456c5041
* libglade.spec: Add _bindir to %files devel to get libglade-convert.
dc144907
parents:
5565
diff
changeset
|
167 |
* Wed Aug 24 2005 - [email protected] |
9d5e456c5041
* libglade.spec: Add _bindir to %files devel to get libglade-convert.
dc144907
parents:
5565
diff
changeset
|
168 |
- Add _bindir to %files devel to pick up libglade-convert. |
9d5e456c5041
* libglade.spec: Add _bindir to %files devel to get libglade-convert.
dc144907
parents:
5565
diff
changeset
|
169 |
|
5518 | 170 |
* Fri May 06 2005 - [email protected] |
171 |
- Add "-I ./m4" to the ACLOCAL_FLAGS since it is needed to build |
|
172 |
on Solaris. |
|
173 |
||
174 |
* Fri May 05 2005 - [email protected] |
|
175 |
- Bump to 2.5.1 |
|
176 |
||
4365 | 177 |
* Fri Oct 29 2004 - [email protected] |
178 |
- use $CC64 for the 64-bit build if defined |
|
179 |
||
5518 | 180 |
* Sat Oct 02 2004 - [email protected] |
4121 | 181 |
- Create 64bit libraries for Solaris |
182 |
||
3660 | 183 |
* Wed Aug 18 2004 - [email protected] |
184 |
- added --enable-gtk-doc. |
|
185 |
||
3628 | 186 |
* Wed Jul 07 2004 - [email protected] |
187 |
- Ported to rpm4 |
|
188 |
||
3263 | 189 |
* Wed Jul 07 2004 - [email protected] |
190 |
- added "-j $CPUS" to make to speed up builds |
|
191 |
||
2227 | 192 |
* Tue Mar 16 2004 - <[email protected]> |
193 |
- Bump to 2.3.6 |
|
194 |
||
2002 | 195 |
* Wed Feb 25 2004 - <[email protected]> |
196 |
- use the jds versions of the autotools |
|
197 |
||
1989 | 198 |
* Wed Feb 25 2004 - <[email protected]> |
199 |
- autotoolize |
|
200 |
||
1791 | 201 |
* Wed Feb 18 2004 - <[email protected]> |
202 |
- Bump to 2.3.2 |
|
203 |
||
1436 | 204 |
* Mon Dec 15 2003 - <[email protected]> |
205 |
- Bump to 2.3.1 |
|
206 |
||
1201 | 207 |
* Mon Oct 6 2003 - <[email protected]> |
208 |
- upped some dep version numbers |
|
1436 | 209 |
|
1058 | 210 |
* Thu Aug 14 2003 - <[email protected]> |
211 |
- move lib*.so to -devel, remove *.a, *.la |
|
212 |
||
40 | 213 |
* Tue May 13 2003 - [email protected] |
214 |
- Initial Sun Spec File |