added qt6 subpackages [release 0.1.1-2mamba;Sun Feb 11 2024]

This commit is contained in:
Silvan Calarco 2024-02-11 23:55:18 +01:00
parent c069f6d381
commit d22a6d0794

View File

@ -2,9 +2,9 @@
Name: futuresql
Version: 0.1.1
Release: 1mamba
Release: 2mamba
Summary: A non-blocking database framework for Qt
Group: Application/Databases
Group: Applications/Databases
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
@ -16,6 +16,7 @@ BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: qt6-qtbase-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRequires: rpm-macros-kde5
@ -41,29 +42,52 @@ 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}.
%package -n lib%{name}-qt6
Group: System/Libraries
Summary: A non-blocking database framework for Qt
%description -n lib%{name}-qt6
A non-blocking database framework for Qt.
This package contains shared libraries for %{name}.
%package -n lib%{name}-qt6-devel
Group: Development/Libraries
Summary: Development files for %{name}-qt6
Requires: lib%{name}-qt6 = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-qt6-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%build
%cmake_kde5 -d build
%cmake -d build \
-DQT_MAJOR_VERSION=5
%make
cd ..
%cmake -d build-qt6 \
-DQT_MAJOR_VERSION=6
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%makeinstall -C build-qt6
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name}
/sbin/ldconfig
:
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name}
/sbin/ldconfig
:
%post -n lib%{name}-qt6 -p /sbin/ldconfig
%postun -n lib%{name}-qt6 -p /sbin/ldconfig
%files -n lib%{name}
%defattr(-,root,root)
@ -78,6 +102,22 @@ This package contains libraries and header files for developing applications tha
%dir %{_libdir}/cmake/FutureSQL5
%{_libdir}/cmake/FutureSQL5/Future*.cmake
%files -n lib%{name}-qt6
%defattr(-,root,root)
%{_libdir}/libfuturesql6.so.*
%doc LICENSES
%files -n lib%{name}-qt6-devel
%defattr(-,root,root)
%dir %{_includedir}/FutureSQL6
%{_includedir}/FutureSQL6/*
%{_libdir}/libfuturesql6.so
%dir %{_libdir}/cmake/FutureSQL6
%{_libdir}/cmake/FutureSQL6/Future*.cmake
%changelog
* Sun Feb 11 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.1-2mamba
- added qt6 subpackages
* Sun Aug 27 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.1-1mamba
- package created using the webbuild interface