From 078b4bc7db5ee37fefb6f43ebf6fb1bdf88781f8 Mon Sep 17 00:00:00 2001 From: Felix Wang Date: Wed, 14 Aug 2024 08:30:10 +0800 Subject: [PATCH] initial import; rhbz#2196274 --- .gitignore | 1 + actor-framework.spec | 73 ++++++++++++++++++++++++++++++++++++++++++++ packit.yml | 21 +++++++++++++ sources | 1 + 4 files changed, 96 insertions(+) create mode 100644 .gitignore create mode 100644 actor-framework.spec create mode 100644 packit.yml create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5f90161 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/actor-framework-1.0.1.tar.gz diff --git a/actor-framework.spec b/actor-framework.spec new file mode 100644 index 0000000..92bb876 --- /dev/null +++ b/actor-framework.spec @@ -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 diff --git a/packit.yml b/packit.yml new file mode 100644 index 0000000..5379bd2 --- /dev/null +++ b/packit.yml @@ -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 diff --git a/sources b/sources new file mode 100644 index 0000000..792c836 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (actor-framework-1.0.1.tar.gz) = 0849a0b17a2c011142dd56ff88b01d764dc57b40de5d8467bcf1aa2ddd7540415228dc05f8652b9534e18fb8c2e28465bf881fe1e1bf5c7f9919cfb3edd573d3