File mhogomchungu_tasks.spec of Package mhogomchungu_tasks
#
# spec file for package mhogomchungu_tasks
#
# Copyright (c) 2022 Asterios Dramis <asterios.dramis@gmail.com>
#
# 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.
%define so_ver 2_0_0
Name: mhogomchungu_tasks
Version: 1.2.6
Release: 0
Summary: Async Based Programming in Qt/C++ Using Modern C++
License: BSD-2-Clause
Group: Development/Libraries/C and C++
URL: https://github.com/mhogomchungu/tasks/
Source0: https://github.com/mhogomchungu/tasks/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Core)
%description
Asynchronous programming in Qt/C++ using tasks,continuations and resumable
functions.
%package devel
Summary: Development Files for mhogomchungu_tasks
Group: Development/Libraries/C and C++
Requires: libmhogomchungu_task%{so_ver} = %{version}
%description devel
This package includes development files for mhogomchungu_tasks.
%package -n libmhogomchungu_task%{so_ver}
Summary: Async Based Programming in Qt/C++ Using Modern C++
Group: System/Libraries
%description -n libmhogomchungu_task%{so_ver}
Asynchronous programming in Qt/C++ using tasks,continuations and resumable
functions.
%prep
%setup -q -n tasks-%{version}
%build
%cmake \
-DMCHUNGU_TASK_INSTALL=TRUE
%cmake_build
%install
%cmake_install
%post -n libmhogomchungu_task%{so_ver} -p /sbin/ldconfig
%postun -n libmhogomchungu_task%{so_ver} -p /sbin/ldconfig
%files devel
%license LICENSE
%doc README.md
%{_includedir}/mhogomchungu/
%{_libdir}/*.so
%{_libdir}/pkgconfig/mhogomchungu_task.pc
%files -n libmhogomchungu_task%{so_ver}
%{_libdir}/libmhogomchungu_task.so.2.0.0*
%changelog