Name: kdsoap Version: 2.2.0 Release: %autorelease Summary: A Qt-based client-side and server-side SOAP component # Note that this project requires the 3rd party 'libkode' submodule # that is licensed separately with LGPL-2.0-or-later; however, libkode # is used for code-generation only and the resulting code can be made # available under any license. # # Various other freely distributable files are contained in the unittests # and are not used in the library code itself. License: MIT URL: https://github.com/KDAB/KDSoap Source0: https://github.com/KDAB/KDSoap/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz Source1: https://github.com/KDAB/KDSoap/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz.asc Source2: https://www.kdab.com/kdab-products.asc BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt6Core) BuildRequires: gnupg2 %global _description %{expand: KDSoap can be used to create client applications for web services and also provides the means to create web services without the need for any further component such as a dedicated web server.} %description %{_description} For more information, see https://www.kdab.com/development-resources/qt-tools/kd-soap/ %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}-devel-common%{?_isa} = %{version}-%{release} %description devel This package contains header files and associated tools and libraries to develop programs which need to access web services using the SOAP protocol. %package -n kdsoap6 Summary: Qt 6 version of %{name} %description -n kdsoap6 %{_description} %package -n kdsoap6-devel Summary: Development files for kdsoap6 Requires: kdsoap6%{?_isa} = %{version}-%{release} Requires: %{name}-devel-common%{?_isa} = %{version}-%{release} %description -n kdsoap6-devel This package contains header files and associated tools and libraries to develop programs which need to access web services using the SOAP protocol. %package devel-common Summary: Header files and other common development files for kdsoap and kdsoap6 %description devel-common %{summary}. %package doc Summary: Documentation for %{name} BuildArch: noarch %description doc Documentation for %{name} %prep %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %autosetup %build %global _vpath_builddir %{_target_platform}-qt5 %cmake -DKDSoap_EXAMPLES=false -DKDSoap_QT6=OFF %cmake_build %global _vpath_builddir %{_target_platform}-qt6 %cmake -DKDSoap_EXAMPLES=false -DKDSoap_QT6=ON %cmake_build %install %global _vpath_builddir %{_target_platform}-qt5 %cmake_install %global _vpath_builddir %{_target_platform}-qt6 %cmake_install rm -rf $RPM_BUILD_ROOT/%{_datarootdir}/doc/KDSoap{,-qt6} %check %global _vpath_builddir %{_target_platform}-qt5 %ctest %global _vpath_builddir %{_target_platform}-qt6 %ctest %files %{_libdir}/libkdsoap-server.so.2* %{_libdir}/libkdsoap.so.2* %doc README.md %license LICENSES/MIT.txt %files -n kdsoap6 %{_libdir}/libkdsoap-server-qt6.so.2* %{_libdir}/libkdsoap-qt6.so.2* %doc README.md %license LICENSES/MIT.txt %files devel %doc kdsoap.pri kdwsdl2cpp.pri %{_libdir}/libkdsoap-server.so %{_libdir}/libkdsoap.so %{_bindir}/kdwsdl2cpp %{_libdir}/cmake/KDSoap/ %{_libdir}/qt5/mkspecs/modules/* %{_includedir}/KDSoapClient/ %{_includedir}/KDSoapServer/ %files -n kdsoap6-devel %doc kdsoap.pri kdwsdl2cpp.pri %{_libdir}/libkdsoap-server-qt6.so %{_libdir}/libkdsoap-qt6.so %{_bindir}/kdwsdl2cpp-qt6 %{_libdir}/cmake/KDSoap-qt6/ %{_libdir}/qt6/mkspecs/modules/* %{_includedir}/KDSoapClient-Qt6/ %{_includedir}/KDSoapServer-Qt6/ %files devel-common %dir %{_datadir}/mkspecs %dir %{_datadir}/mkspecs/features %{_datadir}/mkspecs/features/kdsoap.prf %files doc %doc docs %changelog %autochangelog