2024-01-05 22:35:37 +01:00
|
|
|
%define majver %(echo %version | cut -d. -f1-2)
|
|
|
|
|
|
|
|
Name: futuresql
|
|
|
|
Version: 0.1.1
|
2024-02-11 23:55:18 +01:00
|
|
|
Release: 2mamba
|
2024-01-05 22:35:37 +01:00
|
|
|
Summary: A non-blocking database framework for Qt
|
2024-02-11 23:55:18 +01:00
|
|
|
Group: Applications/Databases
|
2024-01-05 22:35:37 +01:00
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
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
|
2024-02-11 23:55:18 +01:00
|
|
|
BuildRequires: qt6-qtbase-devel
|
2024-01-05 22:35:37 +01:00
|
|
|
## 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}.
|
|
|
|
|
2024-02-11 23:55:18 +01:00
|
|
|
%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}.
|
|
|
|
|
2024-01-05 22:35:37 +01:00
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2024-02-11 23:55:18 +01:00
|
|
|
%cmake -d build \
|
|
|
|
-DQT_MAJOR_VERSION=5
|
|
|
|
|
|
|
|
%make
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
%cmake -d build-qt6 \
|
|
|
|
-DQT_MAJOR_VERSION=6
|
|
|
|
|
2024-01-05 22:35:37 +01:00
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall -C build
|
2024-02-11 23:55:18 +01:00
|
|
|
%makeinstall -C build-qt6
|
2024-01-05 22:35:37 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-02-11 23:55:18 +01:00
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
2024-01-05 22:35:37 +01:00
|
|
|
|
2024-02-11 23:55:18 +01:00
|
|
|
%post -n lib%{name}-qt6 -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name}-qt6 -p /sbin/ldconfig
|
2024-01-05 22:35:37 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2024-02-11 23:55:18 +01:00
|
|
|
%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
|
|
|
|
|
2024-01-05 22:35:37 +01:00
|
|
|
%changelog
|
2024-02-11 23:55:18 +01:00
|
|
|
* Sun Feb 11 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.1-2mamba
|
|
|
|
- added qt6 subpackages
|
|
|
|
|
2024-01-05 22:35:37 +01:00
|
|
|
* Sun Aug 27 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.1-1mamba
|
|
|
|
- package created using the webbuild interface
|