Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP6:Update
qcoro
qcoro.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File qcoro.spec of Package qcoro
# # spec file for package qcoro # # Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define sonum 0 # %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "" ExclusiveArch: do_not_build %else %define _pkg_name_suffix -%{?flavor} %endif %if "%{flavor}" == "qt5" %define qt5 1 %define qt_min_version 5.12.0 %define _qt_suffix 5 %endif %if "%{flavor}" == "qt6" %define qt6 1 %define qt_min_version 6.2.0 %define _qt_suffix 6 %endif # Name: qcoro%{?_pkg_name_suffix} Version: 0.10.0 Release: 0 Summary: Coroutines for Qt License: MIT URL: https://github.com/danvratil/qcoro Source: https://github.com/danvratil/qcoro/archive/refs/tags/v%{version}.tar.gz#/qcoro-%{version}.tar.gz BuildRequires: cmake >= 3.19.0 BuildRequires: dbus-1 %if 0%{?qt5} BuildRequires: libqt5-qtdeclarative-private-headers-devel >= %{qt_min_version} %endif %if 0%{?qt6} BuildRequires: qt6-qml-private-devel >= %{qt_min_version} BuildRequires: qt6-quick-private-devel >= %{qt_min_version} %endif BuildRequires: cmake(Qt%{_qt_suffix}Concurrent) >= %{qt_min_version} BuildRequires: cmake(Qt%{_qt_suffix}Core) >= %{qt_min_version} BuildRequires: cmake(Qt%{_qt_suffix}DBus) >= %{qt_min_version} BuildRequires: cmake(Qt%{_qt_suffix}Network) >= %{qt_min_version} BuildRequires: cmake(Qt%{_qt_suffix}Quick) >= %{qt_min_version} BuildRequires: cmake(Qt%{_qt_suffix}Qml) >= %{qt_min_version} BuildRequires: cmake(Qt%{_qt_suffix}Test) >= %{qt_min_version} BuildRequires: cmake(Qt%{_qt_suffix}WebSockets) >= %{qt_min_version} BuildRequires: cmake(Qt%{_qt_suffix}Widgets) >= %{qt_min_version} # C++-20 support is required %if 0%{?qt5} && 0%{?suse_version} < 1550 BuildRequires: gcc13-c++ BuildRequires: gcc13-PIE %endif %description The QCoro library provides set of tools to make use of the C++20 coroutines in connection with certain asynchronous Qt actions. %package -n libQCoro%{_qt_suffix}Core%{sonum} Summary: Core library of qcoro, a library providing coroutines for Qt %description -n libQCoro%{_qt_suffix}Core%{sonum} The QCoro library provides set of tools to make use of the C++20 coroutines in connection with certain asynchronous Qt actions. This package provides the core library. %package -n libQCoro%{_qt_suffix}DBus%{sonum} Summary: DBus support library for qcoro, a library providing coroutines for Qt %description -n libQCoro%{_qt_suffix}DBus%{sonum} The QCoro library provides set of tools to make use of the C++20 coroutines in connection with certain asynchronous Qt actions. This package provides a library for D-Bus support. %package -n libQCoro%{_qt_suffix}Network%{sonum} Summary: Network support library for qcoro, a library providing coroutines for Qt %description -n libQCoro%{_qt_suffix}Network%{sonum} The QCoro library provides set of tools to make use of the C++20 coroutines in connection with certain asynchronous Qt actions. This package provides a library for network operations support. %package -n libQCoro%{_qt_suffix}Qml%{sonum} Summary: Qml support library for qcoro, a library providing coroutines for Qt %description -n libQCoro%{_qt_suffix}Qml%{sonum} The QCoro library provides set of tools to make use of the C++20 coroutines in connection with certain asynchronous Qt actions. This package provides a library for Qml operations support. %package -n libQCoro%{_qt_suffix}Quick%{sonum} Summary: Qt Quick support library for qcoro, a library providing coroutines for Qt %description -n libQCoro%{_qt_suffix}Quick%{sonum} The QCoro library provides set of tools to make use of the C++20 coroutines in connection with certain asynchronous Qt actions. This package provides a library for Qt Quick operations support. %package -n libQCoro%{_qt_suffix}WebSockets%{sonum} Summary: WebSockets support library for qcoro, a library providing coroutines for Qt %description -n libQCoro%{_qt_suffix}WebSockets%{sonum} The QCoro library provides set of tools to make use of the C++20 coroutines in connection with certain asynchronous Qt actions. This package provides a library for websockets support. %package -n %{name}-devel Summary: Development files for qcoro Requires: libQCoro%{_qt_suffix}Core%{sonum} = %{version} Requires: libQCoro%{_qt_suffix}DBus%{sonum} = %{version} Requires: libQCoro%{_qt_suffix}Network%{sonum} = %{version} Requires: libQCoro%{_qt_suffix}Qml%{sonum} = %{version} Requires: libQCoro%{_qt_suffix}Quick%{sonum} = %{version} Requires: libQCoro%{_qt_suffix}WebSockets%{sonum} = %{version} %description -n %{name}-devel The QCoro library provides set of tools to make use of the C++20 coroutines in connection with certain asynchronous Qt actions. This package provides development headers to use QCoro in Qt based applications. %prep %autosetup -p1 -n qcoro-%{version} %build %if 0%{?qt5} %cmake -DBUILD_SHARED_LIBS:BOOL=ON \ -DUSE_QT_VERSION:STRING=%{_qt_suffix} \ %if 0%{?qt5} && 0%{?suse_version} < 1550 -DCMAKE_CXX_COMPILER:STRING=g++-13 %endif %cmake_build %endif %if 0%{?qt6} %cmake_qt6 \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DUSE_QT_VERSION:STRING=%{_qt_suffix} %qt6_build %endif %install %if 0%{?qt5} %cmake_install %endif %if 0%{?qt6} %qt6_install %endif %check # 20220713: tests still randomly fail, mostly on arm #%%ctest %ldconfig_scriptlets -n libQCoro%{_qt_suffix}Core%{sonum} %ldconfig_scriptlets -n libQCoro%{_qt_suffix}DBus%{sonum} %ldconfig_scriptlets -n libQCoro%{_qt_suffix}Network%{sonum} %ldconfig_scriptlets -n libQCoro%{_qt_suffix}Qml%{sonum} %ldconfig_scriptlets -n libQCoro%{_qt_suffix}Quick%{sonum} %ldconfig_scriptlets -n libQCoro%{_qt_suffix}WebSockets%{sonum} %files -n libQCoro%{_qt_suffix}Core%{sonum} %license LICENSES/* %doc README.md %{_libdir}/libQCoro%{_qt_suffix}Core.so.%{sonum} %{_libdir}/libQCoro%{_qt_suffix}Core.so.%{sonum}.* %files -n libQCoro%{_qt_suffix}DBus%{sonum} %{_libdir}/libQCoro%{_qt_suffix}DBus.so.%{sonum} %{_libdir}/libQCoro%{_qt_suffix}DBus.so.%{sonum}.* %files -n libQCoro%{_qt_suffix}Network%{sonum} %{_libdir}/libQCoro%{_qt_suffix}Network.so.%{sonum} %{_libdir}/libQCoro%{_qt_suffix}Network.so.%{sonum}.* %files -n libQCoro%{_qt_suffix}Qml%{sonum} %{_libdir}/libQCoro%{_qt_suffix}Qml.so.%{sonum} %{_libdir}/libQCoro%{_qt_suffix}Qml.so.%{sonum}.* %files -n libQCoro%{_qt_suffix}Quick%{sonum} %{_libdir}/libQCoro%{_qt_suffix}Quick.so.%{sonum} %{_libdir}/libQCoro%{_qt_suffix}Quick.so.%{sonum}.* %files -n libQCoro%{_qt_suffix}WebSockets%{sonum} %{_libdir}/libQCoro%{_qt_suffix}WebSockets.so.%{sonum} %{_libdir}/libQCoro%{_qt_suffix}WebSockets.so.%{sonum}.* %files devel %{_includedir}/qcoro%{_qt_suffix}/ %{_libdir}/cmake/QCoro%{_qt_suffix}/ %{_libdir}/cmake/QCoro%{_qt_suffix}Core/ %{_libdir}/cmake/QCoro%{_qt_suffix}Coro/ %{_libdir}/cmake/QCoro%{_qt_suffix}DBus/ %{_libdir}/cmake/QCoro%{_qt_suffix}Network/ %{_libdir}/cmake/QCoro%{_qt_suffix}Qml/ %{_libdir}/cmake/QCoro%{_qt_suffix}Quick/ %{_libdir}/cmake/QCoro%{_qt_suffix}Test/ %{_libdir}/cmake/QCoro%{_qt_suffix}WebSockets/ %{_libdir}/libQCoro%{_qt_suffix}Core.so %{_libdir}/libQCoro%{_qt_suffix}DBus.so %{_libdir}/libQCoro%{_qt_suffix}Network.so %{_libdir}/libQCoro%{_qt_suffix}Qml.so %{_libdir}/libQCoro%{_qt_suffix}Quick.so %{_libdir}/libQCoro%{_qt_suffix}WebSockets.so %{_libdir}/qt%{_qt_suffix}/mkspecs/modules/*.pri %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor