diff --git a/debian.rules b/qt5-debian.rules similarity index 60% rename from debian.rules rename to qt5-debian.rules index f3d803d97..ee1a3955b 100644 --- a/debian.rules +++ b/qt5-debian.rules @@ -1,3 +1,3 @@ #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk -include /usr/share/cdbs/1/class/cmake.mk \ No newline at end of file +include /usr/share/cdbs/1/class/cmake.mk diff --git a/qt6-debian.rules b/qt6-debian.rules new file mode 100644 index 000000000..e22200e9d --- /dev/null +++ b/qt6-debian.rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f +DEB_CMAKE_EXTRA_FLAGS = -DKDSoap_QT6=True -DCMAKE_BUILD_TYPE=Release +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/cmake.mk diff --git a/qt6-kdsoap.spec b/qt6-kdsoap.spec index 9f8e48b44..6e280cbbf 100644 --- a/qt6-kdsoap.spec +++ b/qt6-kdsoap.spec @@ -50,7 +50,7 @@ develop programs which need to access web services using the SOAP protocol. %build touch .license.accepted -cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_RPATH=True -DCMAKE_BUILD_TYPE=Release +cmake . -DCMAKE_INSTALL_PREFIX=/usr -DKDSoap_QT6=True -DCMAKE_SKIP_RPATH=True -DCMAKE_BUILD_TYPE=Release %__make %{?_smp_mflags} %post -p /sbin/ldconfig @@ -65,8 +65,8 @@ cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_RPATH=True -DCMAKE_BUILD_TYPE=R %files %defattr(-,root,root) %{_prefix}/share/doc/KDSoap -%{_libdir}/libkdsoap.so.* -%{_libdir}/libkdsoap-server.so.* +%{_libdir}/libkdsoap-qt6.so.* +%{_libdir}/libkdsoap-server-qt6.so.* %files devel %defattr(-,root,root) @@ -75,21 +75,9 @@ cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_RPATH=True -DCMAKE_BUILD_TYPE=R %{_includedir}/KDSoapServer %dir %{_libdir}/cmake/KDSoap %{_libdir}/cmake/KDSoap/* -%{_libdir}/libkdsoap.so -%{_libdir}/libkdsoap-server.so -%if 0%{?sle_version} >= 150200 && 0%{?is_opensuse} -%{_libdir}/qt6/mkspecs/modules/* -%endif -%{_prefix}/share/mkspecs/ -%if 0%{?suse_version} > 1500 -%{_libdir}/qt6/mkspecs/modules/* -%endif -%if 0%{?fedora} > 28 -%{_libdir}/qt6/mkspecs/modules/* -%endif -%if %{defined rhel} -%{_libdir}/qt6/mkspecs/modules/* -%endif +%{_libdir}/libkdsoap-qt6.so +%{_libdir}/libkdsoap-server-qt6.so +%{_prefix}/share/mkspecs/features/ %changelog * Tue Jun 29 2021 Allen Winter 2.0.0