initial import; rhbz#2196274

This commit is contained in:
Felix Wang 2024-08-14 08:30:10 +08:00
commit 078b4bc7db
4 changed files with 96 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/actor-framework-1.0.1.tar.gz

73
actor-framework.spec Normal file
View file

@ -0,0 +1,73 @@
Name: actor-framework
Version: 1.0.1
Release: %autorelease
Summary: An Open Source Implementation of the Actor Model in C++
# https://github.com/actor-framework/actor-framework/issues/1410#issuecomment-1547459576
License: BSD-3-Clause
URL: https://github.com/actor-framework/actor-framework
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: ninja-build
BuildRequires: openssl-devel
BuildRequires: doxygen
# optional dependencies for building examples
BuildRequires: libcurl-devel
BuildRequires: protobuf-devel
BuildRequires: qt6-qtbase-devel
%description
CAF (the C++ Actor Framework) is an open source implementation of the actor
model for C++ featuring lightweight & fast actor implementations, pattern
matching for messages, network transparent messaging, and more.
%package devel
Summary: Development libraries and header files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package contains libraries and header files for %{name}.
%package examples
Summary: Example files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description examples
This package contains example files for %{name}.
%prep
%autosetup -p1
%build
%cmake \
-GNinja \
-DCAF_ENABLE_CURL_EXAMPLES=ON \
-DCAF_ENABLE_PROTOBUF_EXAMPLES=ON \
-DCAF_ENABLE_QT6_EXAMPLES=ON \
-DCAF_ENABLE_RUNTIME_CHECKS=ON \
%cmake_build
%install
%cmake_install
%check
%ctest
%files
%license LICENSE
%doc README.md
%{_libdir}/libcaf_*.so.1*
%files devel
%{_includedir}/caf/
%{_libdir}/libcaf_*.so
%{_libdir}/cmake/CAF/
%files examples
%dir %{_datadir}/caf
%{_datadir}/caf/examples/
%changelog
%autochangelog

21
packit.yml Normal file
View file

@ -0,0 +1,21 @@
upstream_project_url: https://github.com/actor-framework/actor-framework
upstream_tag_template: {version}
jobs:
- job: pull_from_upstream
trigger: release
dist_git_branches:
- fedora-rawhide
- job: koji_build
trigger: commit
allowed_pr_authors: ["packit", "topazus"]
allowed_committers: ["packit", "topazus"]
dist_git_branches:
- fedora-all
- job: bodhi_update
trigger: commit
allowed_builders: ["packit", "topazus"]
dist_git_branches:
- fedora-branched

1
sources Normal file
View file

@ -0,0 +1 @@
SHA512 (actor-framework-1.0.1.tar.gz) = 0849a0b17a2c011142dd56ff88b01d764dc57b40de5d8467bcf1aa2ddd7540415228dc05f8652b9534e18fb8c2e28465bf881fe1e1bf5c7f9919cfb3edd573d3