qcoro/qcoro.spec

178 lines
5.2 KiB
RPMSpec
Raw Normal View History

Name: qcoro
Version: 0.10.0
Release: 1mamba
Summary: The QCoro library provides set of tools to make use of C++20 coroutines with Qt
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://qcoro.dvratil.cz/
Source: https://github.com/danvratil/qcoro.git/v%{version}/qcoro-%{version}.tar.bz2
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libQt5WebSockets-devel
BuildRequires: libgcc
BuildRequires: libglvnd-devel
BuildRequires: libstdc++6-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtdeclarative-devel
BuildRequires: qt6-qtbase-devel
BuildRequires: qt6-qtdeclarative-devel
BuildRequires: qt6-qtwebsockets-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
%description
The QCoro library provides set of tools to make use of C++20 coroutines with Qt.
%package -n lib%{name}-qt5
Group: System/Libraries
Summary: Qt5 shared libraries for %{name}
%description -n lib%{name}-qt5
This package contains shared libraries for %{name}.
%package -n lib%{name}-qt5-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name}-qt5 = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-qt5-devel
This package contains libraries and header files for developing applications that use %{name}.
%package -n lib%{name}-qt6
Group: System/Libraries
Summary: Qt6 shared libraries for %{name}
%description -n lib%{name}-qt6
This package contains shared libraries for %{name}.
%package -n lib%{name}-qt6-devel
Group: Development/Libraries
Summary: Development files for %{name}
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-qt6 \
-DUSE_QT_VERSION=6
%make
cd ..
%cmake -d build-qt5 \
-DUSE_QT_VERSION=5
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build-qt6
%makeinstall -C build-qt5
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name}-qt5 -p /sbin/ldconfig
%postun -n lib%{name}-qt5 -p /sbin/ldconfig
%post -n lib%{name}-qt6 -p /sbin/ldconfig
%postun -n lib%{name}-qt6 -p /sbin/ldconfig
%files -n lib%{name}-qt5
%defattr(-,root,root)
%{_libdir}/libQCoro5Core.so.*
%{_libdir}/libQCoro5DBus.so.*
%{_libdir}/libQCoro5Network.so.*
%{_libdir}/libQCoro5Qml.so.*
%{_libdir}/libQCoro5Quick.so.*
%{_libdir}/libQCoro5WebSockets.so.*
%doc LICENSE
%files -n lib%{name}-qt6
%defattr(-,root,root)
%{_libdir}/libQCoro6Core.so.*
%{_libdir}/libQCoro6DBus.so.*
%{_libdir}/libQCoro6Network.so.*
%{_libdir}/libQCoro6Qml.so.*
%{_libdir}/libQCoro6Quick.so.*
%{_libdir}/libQCoro6WebSockets.so.*
%doc LICENSE
%files -n lib%{name}-qt5-devel
%defattr(-,root,root)
%dir %{_includedir}/qcoro5
%{_includedir}/qcoro5/*
%{_libdir}/libQCoro5Core.so
%{_libdir}/libQCoro5DBus.so
%{_libdir}/libQCoro5Network.so
%{_libdir}/libQCoro5Qml.so
%{_libdir}/libQCoro5Quick.so
%{_libdir}/libQCoro5WebSockets.so
%{_libdir}/qt5/mkspecs/modules/qt_QCoro*.pri
%dir %{_libdir}/cmake/QCoro5
%{_libdir}/cmake/QCoro5/QCoro*.cmake
%dir %{_libdir}/cmake/QCoro5Core
%{_libdir}/cmake/QCoro5Core/QCoro*.cmake
%dir %{_libdir}/cmake/QCoro5Coro
%{_libdir}/cmake/QCoro5Coro/QCoro*.cmake
%dir %{_libdir}/cmake/QCoro5DBus
%{_libdir}/cmake/QCoro5DBus/QCoro*.cmake
%dir %{_libdir}/cmake/QCoro5Network
%{_libdir}/cmake/QCoro5Network/QCoro*.cmake
%dir %{_libdir}/cmake/QCoro5Qml
%{_libdir}/cmake/QCoro5Qml/QCoro*.cmake
%dir %{_libdir}/cmake/QCoro5Quick
%{_libdir}/cmake/QCoro5Quick/QCoro*.cmake
%dir %{_libdir}/cmake/QCoro5WebSockets
%{_libdir}/cmake/QCoro5WebSockets/QCoro*.cmake
%dir %{_libdir}/cmake/QCoro5Test
%{_libdir}/cmake/QCoro5Test/*.cmake
%files -n lib%{name}-qt6-devel
%defattr(-,root,root)
%dir %{_includedir}/qcoro6
%{_includedir}/qcoro6/*
%{_libdir}/libQCoro6Core.so
%{_libdir}/libQCoro6DBus.so
%{_libdir}/libQCoro6Network.so
%{_libdir}/libQCoro6Qml.so
%{_libdir}/libQCoro6Quick.so
%{_libdir}/libQCoro6WebSockets.so
%{_libdir}/qt6/mkspecs/modules/qt_QCoro*.pri
%dir %{_libdir}/cmake/QCoro6
%{_libdir}/cmake/QCoro6/QCoro*.cmake
%dir %{_libdir}/cmake/QCoro6Core
%{_libdir}/cmake/QCoro6Core/QCoro*.cmake
%dir %{_libdir}/cmake/QCoro6Coro
%{_libdir}/cmake/QCoro6Coro/QCoro*.cmake
%dir %{_libdir}/cmake/QCoro6DBus
%{_libdir}/cmake/QCoro6DBus/QCoro*.cmake
%dir %{_libdir}/cmake/QCoro6Network
%{_libdir}/cmake/QCoro6Network/QCoro*.cmake
%dir %{_libdir}/cmake/QCoro6Qml
%{_libdir}/cmake/QCoro6Qml/QCoro*.cmake
%dir %{_libdir}/cmake/QCoro6Quick
%{_libdir}/cmake/QCoro6Quick/QCoro*.cmake
%dir %{_libdir}/cmake/QCoro6Test
%{_libdir}/cmake/QCoro6Test/*.cmake
%dir %{_libdir}/cmake/QCoro6WebSockets
%{_libdir}/cmake/QCoro6WebSockets/QCoro*.cmake
%doc README.md
%changelog
* Wed Dec 06 2023 Automatic Build System <autodist@mambasoft.it> 0.10.0-1mamba
- automatic version update by autodist
* Mon May 01 2023 Automatic Build System <autodist@mambasoft.it> 0.9.0-1mamba
- automatic version update by autodist
* Wed Apr 26 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.0-1mamba
- package created using the webbuild interface