2020-02-26 09:46:02 +00:00
|
|
|
#
|
|
|
|
# spec file for package kdsoap
|
|
|
|
#
|
2024-01-26 07:53:13 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2020-02-26 09:46:02 +00: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 https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2023-01-04 03:20:52 +00:00
|
|
|
|
2021-07-08 13:06:51 +00:00
|
|
|
%define soname 2
|
2022-05-25 07:45:01 +00:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == ""
|
|
|
|
%define qt5 1
|
|
|
|
%define pkg_suffix %{nil}
|
|
|
|
%define lib_suffix %{soname}
|
|
|
|
%define mkspecsdir %{_libqt5_archdatadir}/mkspecs
|
|
|
|
%endif
|
|
|
|
%if "%{flavor}" == "qt6"
|
|
|
|
%define qt6 1
|
|
|
|
%define pkg_suffix -qt6
|
|
|
|
# to have libkdsoap-qt6-2
|
|
|
|
%define lib_suffix -%{soname}
|
|
|
|
%define mkspecsdir %{_qt6_mkspecsdir}
|
|
|
|
%endif
|
|
|
|
Name: kdsoap%{pkg_suffix}
|
2024-04-04 06:32:24 +00:00
|
|
|
Version: 2.2.0
|
2020-02-26 09:46:02 +00:00
|
|
|
Release: 0
|
2021-07-08 13:06:51 +00:00
|
|
|
Summary: A Qt-based client-side and server-side SOAP component
|
2020-02-26 09:46:02 +00:00
|
|
|
# No "or later" clause, licenses specified explicitly
|
2023-01-04 03:20:52 +00:00
|
|
|
License: MIT
|
2020-02-26 09:46:02 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
URL: https://www.kdab.com/products/kd-soap
|
2022-05-25 07:45:01 +00:00
|
|
|
Source: https://github.com/KDAB/KDSoap/releases/download/kdsoap-%{version}/kdsoap-%{version}.tar.gz
|
2023-01-04 03:20:52 +00:00
|
|
|
BuildRequires: cmake > 3.12
|
2020-02-26 09:46:02 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: pkgconfig
|
2022-05-25 07:45:01 +00:00
|
|
|
%if 0%{?qt5}
|
|
|
|
BuildRequires: cmake(Qt5Core)
|
2021-07-08 13:06:51 +00:00
|
|
|
BuildRequires: cmake(Qt5Network)
|
|
|
|
BuildRequires: cmake(Qt5Widgets)
|
|
|
|
BuildRequires: cmake(Qt5Xml)
|
2022-05-25 07:45:01 +00:00
|
|
|
%endif
|
|
|
|
%if 0%{?qt6}
|
|
|
|
BuildRequires: cmake(Qt6Core)
|
|
|
|
BuildRequires: cmake(Qt6Network)
|
|
|
|
BuildRequires: cmake(Qt6Widgets)
|
|
|
|
BuildRequires: cmake(Qt6Xml)
|
|
|
|
%endif
|
2020-02-26 09:46:02 +00:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
|
|
|
|
%description
|
|
|
|
KD Soap is a Qt-based client-side and server-side SOAP component.
|
|
|
|
It 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.
|
|
|
|
|
2022-05-25 07:45:01 +00:00
|
|
|
%package -n libkdsoap%{pkg_suffix}%{lib_suffix}
|
2021-07-08 13:06:51 +00:00
|
|
|
Summary: A Qt-based client-side and server-side SOAP component
|
2020-02-26 09:46:02 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2022-05-25 07:45:01 +00:00
|
|
|
%description -n libkdsoap%{pkg_suffix}%{lib_suffix}
|
2020-02-26 09:46:02 +00:00
|
|
|
KD Soap is a Qt-based client-side and server-side SOAP component.
|
|
|
|
This package provides the library for the client-side component.
|
|
|
|
|
2022-05-25 07:45:01 +00:00
|
|
|
%package -n libkdsoap-server%{pkg_suffix}%{lib_suffix}
|
2021-07-08 13:06:51 +00:00
|
|
|
Summary: A Qt-based client-side and server-side SOAP component
|
2020-02-26 09:46:02 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2022-05-25 07:45:01 +00:00
|
|
|
%description -n libkdsoap-server%{pkg_suffix}%{lib_suffix}
|
2020-02-26 09:46:02 +00:00
|
|
|
KD Soap is a Qt-based client-side and server-side SOAP component.
|
|
|
|
This package provides the library for the server-side component.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for kdsoap, a Qt-based client and server-side SOAP component
|
|
|
|
Group: Development/Libraries/C and C++
|
2022-05-25 07:45:01 +00:00
|
|
|
Requires: libkdsoap%{pkg_suffix}%{lib_suffix} = %{version}
|
|
|
|
Requires: libkdsoap-server%{pkg_suffix}%{lib_suffix} = %{version}
|
2023-01-04 03:20:52 +00:00
|
|
|
# Headers are not co-installable (yet)
|
2022-05-25 07:45:01 +00:00
|
|
|
%if 0%{?qt6}
|
|
|
|
Conflicts: kdsoap-devel
|
|
|
|
%endif
|
2020-02-26 09:46:02 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
KD Soap is a Qt-based client-side and server-side SOAP component.
|
|
|
|
This package provides development headers to use KD Soap in Qt based
|
|
|
|
applications.
|
|
|
|
|
|
|
|
%prep
|
2022-05-25 07:45:01 +00:00
|
|
|
%autosetup -p1 -n kdsoap-%{version}
|
2020-02-26 09:46:02 +00:00
|
|
|
|
|
|
|
%build
|
2022-05-25 07:45:01 +00:00
|
|
|
%if 0%{?qt5}
|
2020-02-26 09:46:02 +00:00
|
|
|
%cmake
|
|
|
|
%cmake_build
|
2022-05-25 07:45:01 +00:00
|
|
|
%endif
|
|
|
|
%if 0%{?qt6}
|
|
|
|
# The two helloworld examples fail to build
|
|
|
|
%cmake_qt6 -DKDSoap_QT6:BOOL=TRUE -DKDSoap_EXAMPLES:BOOL=FALSE
|
|
|
|
%qt6_build
|
|
|
|
%endif
|
2020-02-26 09:46:02 +00:00
|
|
|
|
|
|
|
%install
|
2022-05-25 07:45:01 +00:00
|
|
|
%if 0%{?qt5}
|
2020-02-26 09:46:02 +00:00
|
|
|
%cmake_install
|
2022-05-25 07:45:01 +00:00
|
|
|
%endif
|
|
|
|
%if 0%{?qt6}
|
|
|
|
%qt6_install
|
|
|
|
%endif
|
2020-02-26 09:46:02 +00:00
|
|
|
|
2023-01-04 03:20:52 +00:00
|
|
|
%if 0%{?qt5}
|
2022-05-25 07:45:01 +00:00
|
|
|
mkdir -p %{buildroot}%{mkspecsdir}/features
|
|
|
|
mv %{buildroot}%{_datadir}/mkspecs/features/kdsoap.prf %{buildroot}%{mkspecsdir}/features/
|
2023-01-04 03:20:52 +00:00
|
|
|
%endif
|
2021-07-08 13:06:51 +00:00
|
|
|
|
2024-02-07 18:00:20 +00:00
|
|
|
# Cleanup. Only README.md and the two .pri files need to be installed
|
|
|
|
rm -r %{buildroot}%{_datadir}
|
|
|
|
|
2020-02-26 09:46:02 +00:00
|
|
|
%fdupes %{buildroot}%{_includedir}/KDSoapClient/
|
|
|
|
|
2024-02-07 18:00:20 +00:00
|
|
|
%ldconfig_scriptlets -n libkdsoap-server%{pkg_suffix}%{lib_suffix}
|
|
|
|
%ldconfig_scriptlets -n libkdsoap%{pkg_suffix}%{lib_suffix}
|
2020-02-26 09:46:02 +00:00
|
|
|
|
2022-05-25 07:45:01 +00:00
|
|
|
%files -n libkdsoap%{pkg_suffix}%{lib_suffix}
|
2023-01-04 03:20:52 +00:00
|
|
|
%license LICENSES/MIT.txt
|
2022-05-25 07:45:01 +00:00
|
|
|
%{_libdir}/libkdsoap%{pkg_suffix}.so.%{soname}*
|
2020-02-26 09:46:02 +00:00
|
|
|
|
2022-05-25 07:45:01 +00:00
|
|
|
%files -n libkdsoap-server%{pkg_suffix}%{lib_suffix}
|
2023-01-04 03:20:52 +00:00
|
|
|
%license LICENSES/MIT.txt
|
2022-05-25 07:45:01 +00:00
|
|
|
%{_libdir}/libkdsoap-server%{pkg_suffix}.so.%{soname}*
|
2020-02-26 09:46:02 +00:00
|
|
|
|
|
|
|
%files devel
|
2023-01-04 03:20:52 +00:00
|
|
|
%license LICENSES/MIT.txt
|
2024-02-07 18:00:20 +00:00
|
|
|
# the pri files are only installed for documentation purpose
|
|
|
|
%doc README.md kdsoap.pri kdwsdl2cpp.pri
|
2023-01-04 03:20:52 +00:00
|
|
|
%{_bindir}/kdwsdl2cpp%{pkg_suffix}
|
2024-04-04 06:32:24 +00:00
|
|
|
%if 0%{?qt5}
|
2022-05-25 07:45:01 +00:00
|
|
|
%{_includedir}/KDSoapClient/
|
|
|
|
%{_includedir}/KDSoapServer/
|
2024-04-04 06:32:24 +00:00
|
|
|
%endif
|
|
|
|
%if 0%{?qt6}
|
|
|
|
%{_includedir}/KDSoapClient-Qt6/
|
|
|
|
%{_includedir}/KDSoapServer-Qt6/
|
|
|
|
%endif
|
2023-01-04 03:20:52 +00:00
|
|
|
%{_libdir}/cmake/KDSoap%{pkg_suffix}
|
2022-05-25 07:45:01 +00:00
|
|
|
%{_libdir}/libkdsoap%{pkg_suffix}.so
|
|
|
|
%{_libdir}/libkdsoap-server%{pkg_suffix}.so
|
|
|
|
%{mkspecsdir}/modules/qt_KDSoapClient.pri
|
|
|
|
%{mkspecsdir}/modules/qt_KDSoapServer.pri
|
2023-01-04 03:20:52 +00:00
|
|
|
%if 0%{?qt5}
|
|
|
|
%{mkspecsdir}/features/kdsoap.prf
|
2022-05-25 07:45:01 +00:00
|
|
|
%endif
|
2020-02-26 09:46:02 +00:00
|
|
|
|
|
|
|
%changelog
|