%define majver %(echo %version | cut -d. -f1-2) Name: futuresql Version: 0.1.1 Release: 2mamba Summary: A non-blocking database framework for Qt Group: Applications/Databases Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://kde.org Source: https://download.kde.org/stable/futuresql/futuresql-%{version}.tar.xz License: BSD ## AUTOBUILDREQ-BEGIN 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 BuildRequires: extra-cmake-modules Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} %description A non-blocking database framework for Qt. %package -n lib%{name} Group: System/Libraries Summary: A non-blocking database framework for Qt %description -n lib%{name} A non-blocking database framework for Qt. 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}. %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 -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} -p /sbin/ldconfig %postun -n lib%{name} -p /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) %{_libdir}/libfuturesql5.so.* %doc LICENSES %files -n lib%{name}-devel %defattr(-,root,root) %dir %{_includedir}/FutureSQL5 %{_includedir}/FutureSQL5/* %{_libdir}/libfuturesql5.so %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 0.1.1-2mamba - added qt6 subpackages * Sun Aug 27 2023 Silvan Calarco 0.1.1-1mamba - package created using the webbuild interface