%define majver %(echo %version | cut -d. -f1-2) Name: kdsoap-ws-discovery-client Version: 0.4.0 Release: 1mamba Summary: Library for finding WS-Discovery devices in the network using Qt and KDSoap Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://invent.kde.org/libraries/kdsoap-ws-discovery-client Source: https://download.kde.org/stable/kdsoap-ws-discovery-client/kdsoap-ws-discovery-client-%{version}.tar.xz License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc BuildRequires: libkdsoap-qt6-devel BuildRequires: libstdc++6-devel BuildRequires: qt6-qtbase-devel ## AUTOBUILDREQ-END BuildRequires: cmake BuildRequires: kf6-rpm-macros BuildRequires: extra-cmake-modules Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} %description Library for finding WS-Discovery devices in the network using Qt and KDSoap. %package -n lib%{name} Group: System/Libraries Summary: Library for finding WS-Discovery devices in the network using Qt and KDSoap %description -n lib%{name} Library for finding WS-Discovery devices in the network using Qt and KDSoap. This package contains shared libraries for %{name}. %package -n lib%{name}-devel Group: Development/Libraries Summary: Development files for %{name} Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} %description -n lib%{name}-devel This package contains libraries and header files for developing applications that use %{name}. %debug_package %prep %setup -q %build %cmake_kf6 \ -DBUILD_QCH=ON \ -DQT_MAJOR_VERSION=6 %cmake_build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %cmake_install %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -n lib%{name} -p /sbin/ldconfig %postun -n lib%{name} -p /sbin/ldconfig %files -n lib%{name} %defattr(-,root,root) %{_libdir}/libKDSoapWSDiscoveryClient.so.* %doc LICENSES %files -n lib%{name}-devel %defattr(-,root,root) %dir %{_includedir}/KDSoapWSDiscoveryClient %{_includedir}/KDSoapWSDiscoveryClient/* %{_libdir}/libKDSoapWSDiscoveryClient.so %dir %{_libdir}/cmake/KDSoapWSDiscoveryClient %{_libdir}/cmake/KDSoapWSDiscoveryClient/KDSoapWSDiscoveryClient*.cmake %dir %{_docdir}/KDSoapWSDiscoveryClient %{_docdir}/KDSoapWSDiscoveryClient/* %{_qt6_docdir}/KDSoapWSDiscoveryClient.* %changelog * Fri Mar 08 2024 Silvan Calarco 0.4.0-1mamba - package created using the webbuild interface