package created using the webbuild interface [release 0.8.0-1mamba;Wed Apr 26 2023]

This commit is contained in:
Silvan Calarco 2024-01-05 17:00:12 +01:00
parent b6217eeefc
commit b6f15113a9
2 changed files with 169 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# qcoro # qcoro
The QCoro library provides set of tools to make use of C++20 coroutines with Qt.

167
qcoro.spec Normal file
View File

@ -0,0 +1,167 @@
Name: qcoro
Version: 0.8.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
%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/QCoro6WebSockets
%{_libdir}/cmake/QCoro6WebSockets/QCoro*.cmake
%doc README.md
%changelog
* Wed Apr 26 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.0-1mamba
- package created using the webbuild interface