author | fujiwara |
Mon, 08 Nov 2004 05:40:13 +0000 | |
changeset 4467 | c50b112185a9 |
parent 4455 | aea26bce3124 |
child 4577 | 0f434c6785e9 |
permissions | -rw-r--r-- |
2386 | 1 |
# |
2 |
# License (c) 2003 Sun Microsystems Inc. |
|
3 |
# This file and all modifications and additions to the pristine |
|
4 |
# package are under the same license as the package itself. |
|
5 |
# |
|
6 |
||
4407 | 7 |
%define t_suffix -build22-cb |
2932
d9e62503fce0
use GMT when defining the date string for the nightly tarballs
laca
parents:
2798
diff
changeset
|
8 |
%{?nightly:%define t_suffix -%(TZ=GMT date +%Y%m%d)} |
2386 | 9 |
|
10 |
Name: libsoup |
|
11 |
Version: 1.99.23 |
|
4409 | 12 |
Release: 352 |
2386 | 13 |
Vendor: Sun Microsystems, Inc. |
14 |
Distribution: Java Desktop System, Release 3 |
|
15 |
Copyright: LGPL/GPL |
|
16 |
BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|
17 |
Docdir: %{_datadir}/doc |
|
18 |
Autoreqprov: on |
|
19 |
URL: http://www.sun.com/software/javadesktopsystem/ |
|
20 |
Source: %{name}-%{version}%{t_suffix}.tar.bz2 |
|
4455 | 21 |
Source1: l10n-configure.sh |
3628 | 22 |
Patch: libsoup-01-gnutls_cert_corrupted.diff |
2386 | 23 |
|
24 |
%define libxml2_devel_version 2.4.23 |
|
25 |
%define glib2_version 2.0 |
|
26 |
||
27 |
BuildRequires: glibc-devel |
|
28 |
BuildRequires: libtool |
|
29 |
BuildRequires: glib2-devel |
|
30 |
BuildRequires: libxml2-devel >= %{libxml2_devel_version} |
|
31 |
BuildRequires: popt |
|
32 |
BuildRequires: zlib-devel |
|
33 |
BuildRequires: gnutls-devel |
|
34 |
Summary: Simple Object Access Protocol implementation |
|
35 |
Group: System Environment/Libraries |
|
36 |
Requires: glib2 >= %{glib2_version} |
|
37 |
Requires: popt |
|
38 |
Requires: libxml2 |
|
39 |
||
40 |
%description |
|
41 |
Soup provides an queued asynchronous callback-based mechanism for sending and |
|
42 |
servicing SOAP requests, and a WSDL (Web Service Definition Language) to C |
|
43 |
compiler which generates client stubs and server skeletons for easily calling |
|
44 |
and implementing SOAP methods. |
|
45 |
||
46 |
%files |
|
47 |
%defattr(-, root, root) |
|
48 |
%doc COPYING ChangeLog AUTHORS INSTALL NEWS TODO README |
|
49 |
%{_libdir}/lib*.so.* |
|
50 |
||
51 |
||
52 |
%post |
|
53 |
ldconfig |
|
54 |
||
55 |
%package -n libsoup-devel |
|
56 |
Summary: Simple Object Access Protocol implementation |
|
57 |
Group: Development/Libraries |
|
58 |
Requires: %{name} = %{version}-%{release} |
|
59 |
Requires: glib2-devel |
|
60 |
Requires: libxml2-devel |
|
61 |
||
62 |
%description -n libsoup-devel |
|
63 |
Soup provides an queued asynchronous callback-based mechanism for sending and |
|
64 |
servicing SOAP requests, and a WSDL (Web Service Definition Language) to C |
|
65 |
compiler which generates client stubs and server skeletons for easily calling |
|
66 |
and implementing SOAP methods. |
|
67 |
||
68 |
This package allows you to develop applications that use the Soup library. |
|
69 |
||
70 |
%files -n libsoup-devel |
|
71 |
%defattr(-, root, root) |
|
72 |
%{_libdir}/lib*.so |
|
73 |
%{_libdir}/pkgconfig/*.pc |
|
74 |
%{_includedir}/* |
|
75 |
||
76 |
||
77 |
# $RPM_COMMAND is an environment variable used by the SUN build |
|
78 |
# system to control the build process with finer granularity than RPM |
|
79 |
# normally allows. This specfile will function as expected by RPM if |
|
80 |
# $RPM_COMMAND is unset. If you are not the SUN build system, |
|
81 |
# feel free to ignore it. |
|
82 |
||
83 |
%prep |
|
84 |
case "${RPM_COMMAND:-all}" in |
|
85 |
dist) |
|
86 |
%setup -q -D -n %{name}-%{version} |
|
87 |
;; |
|
88 |
all) |
|
89 |
%setup -q -n %{name}-%{version} |
|
90 |
;; |
|
91 |
esac |
|
3628 | 92 |
%patch -p1 |
2386 | 93 |
|
4467 | 94 |
bash -x %SOURCE1 |
95 |
||
2386 | 96 |
%build |
3263 | 97 |
%ifos linux |
98 |
if [ -x /usr/bin/getconf ]; then |
|
99 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
100 |
fi |
|
101 |
%else |
|
3846 | 102 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 103 |
%endif |
104 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
105 |
CPUS=1 |
|
106 |
fi |
|
107 |
||
2386 | 108 |
MAKE=${MAKE:-make} |
109 |
RPM_COMMAND=${RPM_COMMAND:-all} |
|
110 |
DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"} |
|
111 |
ARCH=%{_target_platform} |
|
112 |
export MAKE RPM_COMMAND DESTDIR ARCH |
|
113 |
case "$RPM_COMMAND" in |
|
114 |
prepare|all) |
|
115 |
libtoolize |
|
116 |
aclocal $ACLOCAL_FLAGS -I %{_datadir}/aclocal/gnome2-macros |
|
117 |
autoheader |
|
118 |
automake -a -f -c |
|
119 |
autoconf |
|
3628 | 120 |
./configure \ |
121 |
--prefix=%{_prefix} \ |
|
122 |
--sysconfdir=%{_sysconfdir} \ |
|
123 |
--mandir=%{_mandir} \ |
|
124 |
--infodir=%{_datadir}/info \ |
|
125 |
--localstatedir=/var \ |
|
126 |
--enable-more-warnings=no \ |
|
127 |
--enable-gtk-doc=no \ |
|
128 |
--with-gnutls-libs=%{_libdir} \ |
|
129 |
--with-gnutls-includes=%{_includedir} |
|
2386 | 130 |
;; |
131 |
esac |
|
132 |
case "$RPM_COMMAND" in |
|
133 |
clean|all) |
|
134 |
if [ "/" != "$DESTDIR" ]; then |
|
135 |
rm -rf "$DESTDIR" |
|
136 |
fi |
|
137 |
;; |
|
138 |
esac |
|
139 |
case "$RPM_COMMAND" in |
|
140 |
build|all) |
|
3263 | 141 |
${MAKE} -j $CPUS |
2386 | 142 |
;; |
143 |
esac |
|
144 |
||
145 |
%install |
|
146 |
MAKE=${MAKE:-make} |
|
147 |
DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"} |
|
148 |
# export DESTDIR |
|
149 |
case "${RPM_COMMAND:-all}" in |
|
150 |
install|all) |
|
151 |
${MAKE} install prefix=${DESTDIR}%{_prefix} sysconfdir=${DESTDIR}%{_sysconfdir} mandir=${DESTDIR}%{_mandir} infodir=${DESTDIR}%{_datadir}/info localstatedir=${DESTDIR}/var |
|
3628 | 152 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
153 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
|
2386 | 154 |
;; |
155 |
esac |
|
156 |
||
157 |
%clean |
|
158 |
DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"} |
|
159 |
export DESTDIR |
|
160 |
case "${RPM_COMMAND:-all}" in |
|
161 |
clean|all) |
|
162 |
if [ "/" != "$DESTDIR" ]; then |
|
163 |
rm -rf "$DESTDIR" |
|
164 |
fi |
|
165 |
;; |
|
166 |
esac |
|
167 |
||
168 |
||
169 |
%changelog |
|
4407 | 170 |
* Mon Nov 01 2004 - [email protected] |
171 |
- bump src tarball to build22 |
|
172 |
||
4274 | 173 |
* Mon Oct 18 2004 - [email protected] |
174 |
- bump src tarball to build21 |
|
175 |
||
4219 | 176 |
* Mon Oct 11 2004 - [email protected] |
177 |
- bump src tarball to build20b |
|
178 |
||
4002 | 179 |
* Mon Sep 20 2004 - [email protected] |
180 |
- bump src tarball to build19 |
|
181 |
||
3856 | 182 |
* Mon Sep 06 2004 - [email protected] |
183 |
- bump src tarball to build18 |
|
184 |
||
3676 | 185 |
* Mon Aug 23 2004 - [email protected] |
186 |
- bump src tarball to build17 |
|
187 |
||
3517 | 188 |
* Mon Aug 09 2004 - [email protected] |
189 |
- bump src tarball to build16 |
|
190 |
||
3423 | 191 |
* Mon Jul 26 2004 - [email protected] |
192 |
- bump src tarball to build15 |
|
193 |
||
3628 | 194 |
* Mon Jul 19 2004 - [email protected] |
195 |
- rpm4 fixes |
|
196 |
- add patch to build with gnutls without GNUTLS_CERT_CORRUPTED |
|
197 |
||
3263 | 198 |
* Wed Jul 07 2004 - [email protected] |
199 |
- added "-j $CPUS" to make to speed up builds |
|
200 |
||
3215 | 201 |
* Fri Jun 25 2004 - [email protected] |
202 |
- bump src tarball to build13 |
|
3103 | 203 |
* Thu Jun 10 2004 - [email protected] |
204 |
- bump src tarball to build12 |
|
2957 | 205 |
* Sun May 30 2004 - [email protected] |
206 |
- bump src tarball to build11 |
|
2763 | 207 |
* Fri May 14 2004 - [email protected] |
208 |
- bump src tarball to build10 |
|
2602 | 209 |
* Fri Apr 30 2004 - [email protected] |
210 |
- bump src tarball to build09 |