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 |
|
2493
|
7 |
%define t_suffix -build08b
|
2386
|
8 |
%{?tarball_suffix:%define t_suffix %tarball_suffix}
|
|
9 |
|
|
10 |
Name: libsoup
|
|
11 |
Version: 1.99.23
|
2493
|
12 |
Release: 324
|
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
|
|
98 |
MAKE=${MAKE:-make}
|
|
99 |
RPM_COMMAND=${RPM_COMMAND:-all}
|
|
100 |
DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"}
|
|
101 |
ARCH=%{_target_platform}
|
|
102 |
export MAKE RPM_COMMAND DESTDIR ARCH
|
|
103 |
case "$RPM_COMMAND" in
|
|
104 |
prepare|all)
|
|
105 |
libtoolize
|
|
106 |
aclocal $ACLOCAL_FLAGS -I %{_datadir}/aclocal/gnome2-macros
|
|
107 |
autoheader
|
|
108 |
automake -a -f -c
|
|
109 |
autoconf
|
|
110 |
./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}
|
|
111 |
;;
|
|
112 |
esac
|
|
113 |
case "$RPM_COMMAND" in
|
|
114 |
clean|all)
|
|
115 |
if [ "/" != "$DESTDIR" ]; then
|
|
116 |
rm -rf "$DESTDIR"
|
|
117 |
fi
|
|
118 |
;;
|
|
119 |
esac
|
|
120 |
case "$RPM_COMMAND" in
|
|
121 |
build|all)
|
|
122 |
${MAKE}
|
|
123 |
;;
|
|
124 |
esac
|
|
125 |
|
|
126 |
%install
|
|
127 |
MAKE=${MAKE:-make}
|
|
128 |
DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"}
|
|
129 |
# export DESTDIR
|
|
130 |
case "${RPM_COMMAND:-all}" in
|
|
131 |
install|all)
|
|
132 |
${MAKE} install prefix=${DESTDIR}%{_prefix} sysconfdir=${DESTDIR}%{_sysconfdir} mandir=${DESTDIR}%{_mandir} infodir=${DESTDIR}%{_datadir}/info localstatedir=${DESTDIR}/var
|
|
133 |
;;
|
|
134 |
esac
|
|
135 |
|
|
136 |
%clean
|
|
137 |
DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"}
|
|
138 |
export DESTDIR
|
|
139 |
case "${RPM_COMMAND:-all}" in
|
|
140 |
clean|all)
|
|
141 |
if [ "/" != "$DESTDIR" ]; then
|
|
142 |
rm -rf "$DESTDIR"
|
|
143 |
fi
|
|
144 |
;;
|
|
145 |
esac
|
|
146 |
|
|
147 |
|
|
148 |
%changelog
|
|
149 |
|