Search
SailfishOS Open Build Service
>
Projects
>
home:aa13q
:
tmp
>
gsoap
> _service:tar_git:gsoap.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:gsoap.spec of Package gsoap
# # spec file for package gsoap # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # 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/ # Name: gsoap %define lver 2.8.88 %define lname libgsoap-2_8_88 Version: 2.8.88+master.20210318134502.ba3c715 Release: 1 Summary: Toolkit for SOAP/REST-based C/C++ server and client web service applications License: SUSE-GPL-2.0+-with-openssl-exception Group: Development/Libraries/C and C++ Url: http://www.genivia.com/dev.html Source: gsoap-%version.tar.xz Source2: sanitize_source.sh Patch1: gsoap-automake1_13.diff Patch2: gsoap-01-sharedlibs.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf BuildRequires: automake BuildRequires: bison BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: xz BuildRequires: pkgconfig(gnutls) BuildRequires: pkgconfig(libcrypto) BuildRequires: pkgconfig(libssl) BuildRequires: pkgconfig(zlib) %if 0%{?suse_version} BuildRequires: fdupes %endif %description gSOAP is a toolkit for C and C++ server and client Web service applications, and is responsible for e.g. HTTP request handling and the serialization of XML. It 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. It also supports WS-Addressing and WS-Security. %package devel Summary: Development files for the gSOAP toolkit Group: Development/Libraries/C and C++ Obsoletes: libgsoap-devel < %version-%release Provides: libgsoap-devel = %version-%release %description devel This package contains the runtime development programs, include headers and development library symlinks for libgsoap. %package -n %lname Summary: Runtime libraries for gSOAP Group: Development/Libraries/C and C++ %description -n %lname gSOAP is a toolkit for C and C++ server and client Web service applications, and is responsible for e.g. HTTP request handling and the serialization of XML. %package doc Summary: Runtime and development documentation for gsoap Group: Documentation/HTML BuildArch: noarch %description doc This subpackage contains the documentation for the gSOAP toolkit. %prep %setup -q -c # FIXME: ugly # ls ../../SOURCES/ # sh ../../SOURCES/sanitize_source.sh # hardlink not supported cp ../../SOURCES/%name-%lver.tar.xz ./ unxz %name-%lver.tar.xz tar -xvf %name-%lver.tar mv %name-%lver/* ./ rm -rf %name-%lver ## cmp gsoap/stdsoap2.cpp gsoap/stdsoap2.c %patch -P 1 -p1 ln -fs stdsoap2.cpp gsoap/stdsoap2.c %build # The version is used for filenames, and GSOAP changed its ABI between # 2.8.22 and 2.8.28, so we need the full version. perl -i -lpe 's{AC_INIT\(gsoap, 2.8\)}{AC_INIT([gsoap], [%version])}' \ configure.ac # Rebuild configure - fix that utterly long mktime test. # Also needed because Makefile.am and configure.ac are touched. autoreconf -fi export CFLAGS+=" -fPIC" export CXXFLAGS+=" -fPIC" # https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/gsoap # needed for programs which use gsoap and have -fPIC enabled # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=353724 echo $CFLAGS echo $CXXFLAGS # %configure --enable-ipv6 --disable-static %configure --disable-namespaces pushd gsoap/src/ # build prerequisites for parallel build first make soapcpp2_yacc.c popd make %{?_smp_mflags} %install b="%buildroot" make install DESTDIR="$b" # rm -f "$b/%_libdir"/*.la mkdir -p "$b/%_defaultdocdir" cp -a gsoap/doc "$b/%_defaultdocdir/%name" find "$b" -type f -name "*inconsolata*" -exec chmod a-x "{}" "+" %if 0%{?fdupes:1} %fdupes %buildroot/%_prefix %endif %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig %files devel %defattr(-,root,root) %_bindir/*soap* %_bindir/*wsdl* %_datadir/%name/ %_includedir/*soap* %_libdir/libgsoap.a %_libdir/libgsoapck.a %_libdir/libgsoapssl.a %_libdir/libgsoap++.a %_libdir/libgsoapck++.a %_libdir/libgsoapssl++.a %_libdir/pkgconfig/*gsoap*.pc %files -n %lname %defattr(-,root,root) %_libdir/libgsoap*.a %files doc %defattr(-,root,root) %_defaultdocdir/%name/ %changelog