From 937e2c4c426ffe3a86b63c94fba1e04f60eb2dda Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 08:22:16 +0100 Subject: [PATCH] added libpackagekitqt6 library and subpackages [release 1.1.0-2mamba;Sun Dec 04 2022] --- packagekit-qt.spec | 73 +++++++++++++++++++++++++++++++++++++--------- 1 file changed, 60 insertions(+), 13 deletions(-) diff --git a/packagekit-qt.spec b/packagekit-qt.spec index 4992d1a..8f10d2c 100644 --- a/packagekit-qt.spec +++ b/packagekit-qt.spec @@ -1,38 +1,37 @@ %define tagver %(echo %version | tr . _) Name: packagekit-qt Epoch: 1 -Version: 1.0.2 -Release: 1mamba +Version: 1.1.0 +Release: 2mamba Summary: Qt5 bindings for PackageKit Group: System/Management Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: https://www.packagekit.org -## GITSOURCE git://gitorious.org/packagekit/packagekit-qt.git +URL: http://ww25.packagekit.org/?subid1=20221202-1933-464c-87d9-52b2d0bcc190 Source0: https://github.com/hughsie/PackageKit-Qt.git/v%{version}/PackageKit-Qt-%{version}.tar.bz2 Patch0: packagekit-qt-20130306git-revert-to-tag-QPACKAGEKIT_0_8_7.patch License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc -BuildRequires: libqt5-devel BuildRequires: libstdc++6-devel +BuildRequires: qt5-qtbase-devel +BuildRequires: qt6-qtbase-devel ## AUTOBUILDREQ-END BuildRequires: PackageKit-glib-devel BuildRequires: cmake -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Qt5 bindings for PackageKit. %package -n libpackagekitqt5 -Summary: Qt5 bindings for PackageKit. +Summary: Qt5 bindings for PackageKit Group: System/Libraries Requires: PackageKit %description -n libpackagekitqt5 -Qt bindings for PackageKit. +Qt5 bindings for PackageKit. %package -n libpackagekitqt5-devel Summary: Development files for %{name} @@ -40,15 +39,32 @@ Group: Development/Libraries Requires: libpackagekitqt5 = %{?epoch:%epoch:}%{version}-%{release} Requires: pkg-config Provides: PackageKit-qt-devel -Obsoletes: PackageKit-qt-devel +Obsoletes: PackageKit-qt-devel < 1:1.1.0 Provides: PackageKit-qt2-devel -Obsoletes: PackageKit-qt2-devel +Obsoletes: PackageKit-qt2-devel < 1:1.1.0 Provides: libpackagekit-qt2-devel -Obsoletes: libpackagekit-qt2-devel +Obsoletes: libpackagekit-qt2-devel < 1:1.1.0 %description -n libpackagekitqt5-devel This package contains libraries and header files for developing applications that use %{name}. +%package -n libpackagekitqt6 +Summary: Qt6 bindings for PackageKit +Group: System/Libraries +Requires: PackageKit + +%description -n libpackagekitqt6 +Qt6 bindings for PackageKit. + +%package -n libpackagekitqt6-devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: libpackagekitqt6 = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n libpackagekitqt6-devel +This package contains libraries and header files for developing applications that use %{name}. + %debug_package %prep @@ -56,12 +72,19 @@ This package contains libraries and header files for developing applications tha #%patch0 -p1 %build -%cmake -d build +%cmake -d build-qt5 \ + -DCMAKE_PREFIX_PATH=%{_libdir}/cmake/Qt5 + %make +cd .. + +%cmake -d build-qt6 \ + -DCMAKE_PREFIX_PATH=%{_libdir}/cmake/Qt6 %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%makeinstall -C build +%makeinstall -C build-qt5 +%makeinstall -C build-qt6 %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -69,6 +92,9 @@ This package contains libraries and header files for developing applications tha %post -n libpackagekitqt5 -p /sbin/ldconfig %postun -n libpackagekitqt5 -p /sbin/ldconfig +%post -n libpackagekitqt6 -p /sbin/ldconfig +%postun -n libpackagekitqt6 -p /sbin/ldconfig + %files -n libpackagekitqt5 %defattr(-,root,root) %{_libdir}/libpackagekitqt5.so.* @@ -85,7 +111,28 @@ This package contains libraries and header files for developing applications tha %{_libdir}/pkgconfig/packagekitqt5.pc %doc NEWS TODO +%files -n libpackagekitqt6 +%defattr(-,root,root) +%{_libdir}/libpackagekitqt6.so.* +%doc AUTHORS COPYING + +%files -n libpackagekitqt6-devel +%defattr(-,root,root) +%dir %{_includedir}/packagekitqt6 +%dir %{_includedir}/packagekitqt6/PackageKit +%{_includedir}/packagekitqt6/PackageKit/* +%dir %{_libdir}/cmake/packagekitqt6 +%{_libdir}/cmake/packagekitqt6/*.cmake +%{_libdir}/libpackagekitqt6.so +%{_libdir}/pkgconfig/packagekitqt6.pc + %changelog +* Sun Dec 04 2022 Silvan Calarco 1.1.0-2mamba +- added libpackagekitqt6 library and subpackages + +* Fri Dec 02 2022 Automatic Build System 1.1.0-1mamba +- automatic version update by autodist + * Sat Feb 20 2021 Automatic Build System 1.0.2-1mamba - automatic version update by autodist