Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37593419
en ru br
ALT Linux repos
S:0.9.0-alt1

Group :: System/Libraries
RPM: qcoro5

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define appname QCoro
%define oname qcoro
%define _cmake__builddir BUILD

%define qtmajor 5
%define sover 0
%define libqcorocore libqcoro%{qtmajor}core%sover
%define libqcorodbus libqcoro%{qtmajor}dbus%sover
%define libqcoronetwork libqcoro%{qtmajor}network%sover
%define libqcoroqml libqcoro%{qtmajor}qml%sover
%define libqcoroquick libqcoro%{qtmajor}quick%sover
%define libqcorowebsockets libqcoro%{qtmajor}websockets%sover

Name: qcoro%qtmajor
Version: 0.9.0
Release: alt1

Group: System/Libraries
Summary: C++ Coroutines for Qt%qtmajor
License: MIT
Url: https://github.com/danvratil/%oname

Source: %name-%version.tar

# Automatically added by buildreq on Fri May 12 2023 (-bi)

# optimized out: cmake-modules debugedit elfutils gcc-c++ glibc-kernheaders-generic glibc-kernheaders-x86 libctf-nobfd0 libglvnd-devel libgpg-error libp11-kit libqt5-core libqt5-dbus libqt5-gui libqt5-network libqt5-qml libqt5-qmlmodels libqt5-quick libqt5-test libqt5-websockets libsasl2-3 libssl-devel libstdc++-devel python-modules python2-base python3 python3-base python3-dev python3-module-paste qt5-base-devel qt5-declarative-devel rpm-build-file rpm-build-python3 sh4 tzdata
#BuildRequires: cmake llvm python3-module-mpl_toolkits python3-module-setuptools python3-module-zope qt5-imageformats qt5-svg-devel qt5-wayland-devel qt5-webengine-devel qt5-websockets-devel tbb-devel
BuildRequires: cmake extra-cmake-modules qt%qtmajor-base-devel
BuildRequires: qt%qtmajor-declarative-devel qt%qtmajor-websockets-devel

%description
The QCoro library provides set of tools to make use of the C++20 coroutines
in connection with certain asynchronous Qt actions.

The major benefit of using coroutines with Qt types is that it allows writing
asynchronous code as if it were synchronous and, most importantly, while the
coroutine is co_awaiting, the Qt event loop runs as usual, meaning that your
application remains responsive.

%package devel
Group: Development/KDE and QT
Summary: Development files for %appname
%description devel
This package contains libraries and header files for
developing applications that use %appname.

%package -n %libqcorocore
Group: System/Libraries
Summary: %name library
#Requires: %name-common
%description -n %libqcorocore
%name library

%package -n %libqcorodbus
Group: System/Libraries
Summary: %name library
#Requires: %name-common
%description -n %libqcorodbus
%name library

%package -n %libqcoronetwork
Group: System/Libraries
Summary: %name library
#Requires: %name-common
%description -n %libqcoronetwork
%name library

%package -n %libqcoroqml
Group: System/Libraries
Summary: %name library
#Requires: %name-common
%description -n %libqcoroqml
%name library

%package -n %libqcoroquick
Group: System/Libraries
Summary: %name library
#Requires: %name-common
%description -n %libqcoroquick
%name library

%package -n %libqcorowebsockets
Group: System/Libraries
Summary: %name library
#Requires: %name-common
%description -n %libqcorowebsockets
%name library

%prep
%setup

%build
%cmake \
   -DBUILD_SHARED_LIBS=ON \
   -DBUILD_STSTIC_LIBS=OFF \
   -DUSE_QT_VERSION:STRING=%qtmajor \
   -DECM_MKSPECS_INSTALL_DIR:PATH=%_qt5_archdatadir/mkspecs/modules \
   -DBUILD_TESTING:BOOL=OFF \
   -DQCORO_BUILD_EXAMPLES:BOOL=OFF \
   -DQCORO_ENABLE_ASAN:BOOL=OFF \
   -DQCORO_WITH_QML:BOOL=ON \
   -DQCORO_WITH_QTDBUS:BOOL=ON \
   -DQCORO_WITH_QTNETWORK:BOOL=ON \
   -DQCORO_WITH_QTQUICK:BOOL=ON \
   -DQCORO_WITH_QTWEBSOCKETS:BOOL=ON \
   #
%cmake_build

%install
%cmake_install

%files devel
%_includedir/%oname%qtmajor/
%_libdir/cmake/QCoro%{qtmajor}*/
%_qt5_archdatadir/mkspecs/modules/*.pri
%_libdir/lib*.so

%files -n %libqcorocore
%_libdir/libQCoro5Core.so.*
%_libdir/libQCoro5Core.so.%sover
%files -n %libqcorodbus
%_libdir/libQCoro5DBus.so.*
%_libdir/libQCoro5DBus.so.%sover
%files -n %libqcoronetwork
%_libdir/libQCoro5Network.so.*
%_libdir/libQCoro5Network.so.%sover
%files -n %libqcoroqml
%_libdir/libQCoro5Qml.so.*
%_libdir/libQCoro5Qml.so.%sover
%files -n %libqcoroquick
%_libdir/libQCoro5Quick.so.*
%_libdir/libQCoro5Quick.so.%sover
%files -n %libqcorowebsockets
%_libdir/libQCoro5WebSockets.so.*
%_libdir/libQCoro5WebSockets.so.%sover

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin