author | dermotm |
Wed, 07 Jul 2004 09:21:36 +0000 | |
changeset 3263 | 3c14210c0b99 |
parent 3224 | 8ca3f4526524 |
child 3315 | 724897b9c964 |
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 |
||
3215 | 7 |
%define t_suffix -build13-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 |
|
3224 | 12 |
Release: 335 |
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 |
|
21 |
#Patch0: libsoup.patch |
|
22 |
||
23 |
%define libxml2_devel_version 2.4.23 |
|
24 |
%define glib2_version 2.0 |
|
25 |
||
26 |
BuildRequires: glibc-devel |
|
27 |
BuildRequires: libtool |
|
28 |
BuildRequires: glib2-devel |
|
29 |
BuildRequires: libxml2-devel >= %{libxml2_devel_version} |
|
30 |
BuildRequires: popt |
|
31 |
BuildRequires: zlib-devel |
|
32 |
BuildRequires: gnutls-devel |
|
33 |
Summary: Simple Object Access Protocol implementation |
|
34 |
Group: System Environment/Libraries |
|
35 |
Requires: glib2 >= %{glib2_version} |
|
36 |
Requires: popt |
|
37 |
Requires: libxml2 |
|
38 |
||
39 |
%description |
|
40 |
Soup provides an queued asynchronous callback-based mechanism for sending and |
|
41 |
servicing SOAP requests, and a WSDL (Web Service Definition Language) to C |
|
42 |
compiler which generates client stubs and server skeletons for easily calling |
|
43 |
and implementing SOAP methods. |
|
44 |
||
45 |
%files |
|
46 |
%defattr(-, root, root) |
|
47 |
%doc COPYING ChangeLog AUTHORS INSTALL NEWS TODO README |
|
48 |
%{_libdir}/lib*.so.* |
|
49 |
||
50 |
||
51 |
%post |
|
52 |
ldconfig |
|
53 |
||
54 |
%package -n libsoup-devel |
|
55 |
Summary: Simple Object Access Protocol implementation |
|
56 |
Group: Development/Libraries |
|
57 |
Requires: %{name} = %{version}-%{release} |
|
58 |
Requires: glib2-devel |
|
59 |
Requires: libxml2-devel |
|
60 |
||
61 |
%description -n libsoup-devel |
|
62 |
Soup provides an queued asynchronous callback-based mechanism for sending and |
|
63 |
servicing SOAP requests, and a WSDL (Web Service Definition Language) to C |
|
64 |
compiler which generates client stubs and server skeletons for easily calling |
|
65 |
and implementing SOAP methods. |
|
66 |
||
67 |
This package allows you to develop applications that use the Soup library. |
|
68 |
||
69 |
%files -n libsoup-devel |
|
70 |
%defattr(-, root, root) |
|
71 |
%{_libdir}/lib*.so |
|
72 |
%{_libdir}/pkgconfig/*.pc |
|
73 |
%{_includedir}/* |
|
74 |
||
75 |
||
76 |
# $RPM_COMMAND is an environment variable used by the SUN build |
|
77 |
# system to control the build process with finer granularity than RPM |
|
78 |
# normally allows. This specfile will function as expected by RPM if |
|
79 |
# $RPM_COMMAND is unset. If you are not the SUN build system, |
|
80 |
# feel free to ignore it. |
|
81 |
||
82 |
%prep |
|
83 |
case "${RPM_COMMAND:-all}" in |
|
84 |
dist) |
|
85 |
%setup -q -D -n %{name}-%{version} |
|
86 |
;; |
|
87 |
all) |
|
88 |
%setup -q -n %{name}-%{version} |
|
89 |
;; |
|
90 |
esac |
|
91 |
#case "${RPM_COMMAND:-all}" in |
|
92 |
#dist|all) |
|
93 |
#%patch -p1 -P 0 |
|
94 |
# ;; |
|
95 |
#esac |
|
96 |
||
97 |
%build |
|
3263 | 98 |
%ifos linux |
99 |
if [ -x /usr/bin/getconf ]; then |
|
100 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
101 |
fi |
|
102 |
%else |
|
103 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l` |
|
104 |
%endif |
|
105 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
106 |
CPUS=1 |
|
107 |
fi |
|
108 |
||
2386 | 109 |
MAKE=${MAKE:-make} |
110 |
RPM_COMMAND=${RPM_COMMAND:-all} |
|
111 |
DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"} |
|
112 |
ARCH=%{_target_platform} |
|
113 |
export MAKE RPM_COMMAND DESTDIR ARCH |
|
114 |
case "$RPM_COMMAND" in |
|
115 |
prepare|all) |
|
116 |
libtoolize |
|
117 |
aclocal $ACLOCAL_FLAGS -I %{_datadir}/aclocal/gnome2-macros |
|
118 |
autoheader |
|
119 |
automake -a -f -c |
|
120 |
autoconf |
|
121 |
./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --mandir=%{_mandir} --infodir=%{_datadir}/info --localstatedir=/var --enable-more-warnings=no --enable-gtk-doc=no --with-gnutls-libs=%{_libdir} --with-gnutls-includes=%{_includedir} |
|
122 |
;; |
|
123 |
esac |
|
124 |
case "$RPM_COMMAND" in |
|
125 |
clean|all) |
|
126 |
if [ "/" != "$DESTDIR" ]; then |
|
127 |
rm -rf "$DESTDIR" |
|
128 |
fi |
|
129 |
;; |
|
130 |
esac |
|
131 |
case "$RPM_COMMAND" in |
|
132 |
build|all) |
|
3263 | 133 |
${MAKE} -j $CPUS |
2386 | 134 |
;; |
135 |
esac |
|
136 |
||
137 |
%install |
|
138 |
MAKE=${MAKE:-make} |
|
139 |
DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"} |
|
140 |
# export DESTDIR |
|
141 |
case "${RPM_COMMAND:-all}" in |
|
142 |
install|all) |
|
143 |
${MAKE} install prefix=${DESTDIR}%{_prefix} sysconfdir=${DESTDIR}%{_sysconfdir} mandir=${DESTDIR}%{_mandir} infodir=${DESTDIR}%{_datadir}/info localstatedir=${DESTDIR}/var |
|
144 |
;; |
|
145 |
esac |
|
146 |
||
147 |
%clean |
|
148 |
DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"} |
|
149 |
export DESTDIR |
|
150 |
case "${RPM_COMMAND:-all}" in |
|
151 |
clean|all) |
|
152 |
if [ "/" != "$DESTDIR" ]; then |
|
153 |
rm -rf "$DESTDIR" |
|
154 |
fi |
|
155 |
;; |
|
156 |
esac |
|
157 |
||
158 |
||
159 |
%changelog |
|
3263 | 160 |
* Wed Jul 07 2004 - [email protected] |
161 |
- added "-j $CPUS" to make to speed up builds |
|
162 |
||
3215 | 163 |
* Fri Jun 25 2004 - [email protected] |
164 |
- bump src tarball to build13 |
|
3103 | 165 |
* Thu Jun 10 2004 - [email protected] |
166 |
- bump src tarball to build12 |
|
2957 | 167 |
* Sun May 30 2004 - [email protected] |
168 |
- bump src tarball to build11 |
|
2763 | 169 |
* Fri May 14 2004 - [email protected] |
170 |
- bump src tarball to build10 |
|
2602 | 171 |
* Fri Apr 30 2004 - [email protected] |
172 |
- bump src tarball to build09 |