2011-11-11 10:58:26 +01:00
|
|
|
#
|
|
|
|
# spec file for package gsoap
|
|
|
|
#
|
2013-02-28 23:51:41 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-11-11 10:58:26 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-04-01 20:58:18 +02:00
|
|
|
|
|
|
|
Name: gsoap
|
2011-10-18 17:40:06 +02:00
|
|
|
%define lname libgsoap-2_8-0
|
2012-04-01 20:58:18 +02:00
|
|
|
Summary: Toolkit for C/C++ server and client web service applications
|
|
|
|
License: SUSE-GPL-2.0+-with-openssl-exception
|
|
|
|
Group: Development/Libraries/C and C++
|
2013-06-27 08:46:00 +02:00
|
|
|
Version: 2.8.15
|
2012-04-01 20:58:18 +02:00
|
|
|
Release: 0
|
|
|
|
Url: http://gsoap2.sf.net/
|
|
|
|
|
2013-06-27 08:46:00 +02:00
|
|
|
#DL-URL: http://downloads.sf.net/gsoap2/gsoap_2.8.15.zip
|
2012-04-01 20:58:18 +02:00
|
|
|
Source: gsoap-%version.tar.xz
|
|
|
|
Source2: sanitize_source.sh
|
2013-02-28 23:51:41 +01:00
|
|
|
Patch0: gsoap-automake1_13.diff
|
2012-04-01 20:58:18 +02:00
|
|
|
Patch1: gsoap-01-sharedlibs.diff
|
|
|
|
Patch2: gsoap-02-typepuns.diff
|
|
|
|
Patch4: gsoap-04-strerror.diff
|
|
|
|
Patch5: gsoap-05-ipv6.diff
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
2011-10-18 20:38:14 +02:00
|
|
|
%if 0%{?suse_version} >= 1130
|
2012-04-01 20:58:18 +02:00
|
|
|
BuildRequires: pkgconfig(gnutls)
|
|
|
|
BuildRequires: pkgconfig(libcrypto)
|
|
|
|
BuildRequires: pkgconfig(libssl)
|
2011-10-19 21:48:23 +02:00
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 0 && 0%{?suse_version} < 1130
|
2012-04-01 20:58:18 +02:00
|
|
|
BuildRequires: libgnutls-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: fdupes
|
2011-10-18 20:44:53 +02:00
|
|
|
%endif
|
2011-10-19 21:48:23 +02:00
|
|
|
%if 0%{?fedora_version} > 0
|
2012-04-01 20:58:18 +02:00
|
|
|
BuildRequires: gnutls-devel
|
|
|
|
BuildRequires: openssl-devel
|
2011-10-19 21:48:23 +02:00
|
|
|
%endif
|
2011-10-18 20:44:53 +02:00
|
|
|
%if 0%{?suse_version} >= 1140
|
2012-04-01 20:58:18 +02:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
2011-10-18 20:38:14 +02:00
|
|
|
%else
|
2012-04-01 20:58:18 +02:00
|
|
|
BuildRequires: zlib-devel
|
2011-10-18 20:38:14 +02:00
|
|
|
%endif
|
2012-04-01 20:58:18 +02:00
|
|
|
BuildRequires: xz
|
2011-07-10 21:38:59 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
The gSOAP toolkit provides a cross-platform software development
|
|
|
|
toolkit for C and C++ server and client Web service applications, and
|
|
|
|
simplifies the overall use of XML in any type of application. The
|
|
|
|
toolkit supports SOAP 1.1/1.2 RPC encoding and document/literal
|
|
|
|
styles, WSDL 1.1, MTOM/MIME/DIME attachments (streaming),
|
|
|
|
SOAP-over-UDP, request-response and one-way messaging. The toolkit
|
|
|
|
also supports WS-Addressing and WS-Security, with several other WS-*
|
|
|
|
available or under development.
|
|
|
|
|
|
|
|
%package devel
|
2012-04-01 20:58:18 +02:00
|
|
|
Summary: Development files for the gSOAP toolkit
|
|
|
|
Group: Development/Libraries/C and C++
|
2011-07-10 21:38:59 +02:00
|
|
|
|
|
|
|
%description devel
|
2011-10-18 17:40:06 +02:00
|
|
|
This package contains the runtime development programs for gSOAP.
|
2011-07-10 21:38:59 +02:00
|
|
|
|
2011-10-18 17:40:06 +02:00
|
|
|
%package -n %lname
|
2012-04-01 20:58:18 +02:00
|
|
|
Summary: Runtime libraries for gSOAP
|
|
|
|
Group: Development/Libraries/C and C++
|
2011-07-10 21:38:59 +02:00
|
|
|
|
2011-10-18 17:40:06 +02:00
|
|
|
%description -n %lname
|
2011-07-10 21:38:59 +02:00
|
|
|
The gSOAP toolkit provides a cross-platform software development
|
|
|
|
toolkit for C and C++ server and client Web service applications, and
|
|
|
|
simplifies the overall use of XML in any type of application. The
|
|
|
|
toolkit supports SOAP 1.1/1.2 RPC encoding and document/literal
|
|
|
|
styles, WSDL 1.1, MTOM/MIME/DIME attachments (streaming),
|
|
|
|
SOAP-over-UDP, request-response and one-way messaging. The toolkit
|
|
|
|
also supports WS-Addressing and WS-Security, with several other WS-*
|
|
|
|
available or under development.
|
|
|
|
|
|
|
|
%package -n libgsoap-devel
|
2012-04-01 20:58:18 +02:00
|
|
|
Summary: Development files for libgsoap
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %lname = %version
|
2011-07-10 21:38:59 +02:00
|
|
|
|
|
|
|
%description -n libgsoap-devel
|
2011-10-18 17:40:06 +02:00
|
|
|
This package contains the include headers and development library
|
|
|
|
symlinks for libgsoap.
|
2011-07-10 21:38:59 +02:00
|
|
|
|
|
|
|
%prep
|
2011-10-18 17:33:14 +02:00
|
|
|
%if 0%{?__xz:1}
|
2013-06-27 10:47:04 +02:00
|
|
|
%setup -q
|
2011-10-18 17:33:14 +02:00
|
|
|
%else
|
|
|
|
tar -xf "%{S:0}" --use=xz;
|
|
|
|
%setup -DTq
|
|
|
|
%endif
|
2013-02-28 23:51:41 +01:00
|
|
|
%patch -P 0 -P 1 -P 2 -P 4 -P 5 -p1
|
2011-07-10 21:38:59 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
# Rebuild configure - fix that utterly long mktime test.
|
|
|
|
autoreconf -fi;
|
|
|
|
|
2013-06-27 10:47:04 +02:00
|
|
|
%configure --enable-ipv6 --disable-static
|
2011-07-10 21:38:59 +02:00
|
|
|
pushd gsoap/src/;
|
2013-06-27 10:47:04 +02:00
|
|
|
# build prerequisites for parallel build first
|
2011-07-10 21:38:59 +02:00
|
|
|
make soapcpp2_yacc.c;
|
|
|
|
popd;
|
|
|
|
make %{?_smp_mflags};
|
|
|
|
|
|
|
|
%install
|
|
|
|
b="%buildroot";
|
|
|
|
make install DESTDIR="$b";
|
2012-02-08 16:21:40 +01:00
|
|
|
rm -f "$b/%_libdir"/*.la;
|
2012-04-01 20:58:18 +02:00
|
|
|
%if 0%{?fdupes:1}
|
2011-07-10 21:38:59 +02:00
|
|
|
%fdupes %buildroot
|
2012-04-01 20:58:18 +02:00
|
|
|
%endif
|
2011-07-10 21:38:59 +02:00
|
|
|
|
2011-10-18 17:40:06 +02:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2011-07-10 21:38:59 +02:00
|
|
|
|
2011-10-18 17:40:06 +02:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2011-07-10 21:38:59 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_bindir/*
|
|
|
|
%_datadir/%name
|
|
|
|
|
2011-10-18 17:40:06 +02:00
|
|
|
%files -n %lname
|
2011-07-10 21:38:59 +02:00
|
|
|
%defattr(-,root,root)
|
2011-10-18 17:40:06 +02:00
|
|
|
%_libdir/*-2.8.so.*
|
2011-07-10 21:38:59 +02:00
|
|
|
|
|
|
|
%files -n libgsoap-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/*
|
|
|
|
%_libdir/*.so
|
|
|
|
%_libdir/pkgconfig/*
|
|
|
|
|
|
|
|
%changelog
|