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