!2 [sync] PR-1: Package init
From: @openeuler-sync-bot Reviewed-by: @jingxiaolu Signed-off-by: @jingxiaolu
This commit is contained in:
commit
e89a5fcf43
BIN
cereal-1.3.2.tar.gz
Normal file
BIN
cereal-1.3.2.tar.gz
Normal file
Binary file not shown.
58
cereal.spec
Normal file
58
cereal.spec
Normal file
@ -0,0 +1,58 @@
|
||||
%global debug_package %{nil}
|
||||
|
||||
Name: cereal
|
||||
Version: 1.3.2
|
||||
Release: 1
|
||||
Summary: A header-only C++11 serialization library
|
||||
License: BSD
|
||||
Url: http://uscilab.github.io/cereal/
|
||||
Source0: https://github.com/USCiLab/cereal/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: boost-devel
|
||||
BuildRequires: cmake >= 3.0
|
||||
|
||||
%description
|
||||
cereal is a header-only C++11 serialization library. cereal takes arbitrary
|
||||
data types and reversibly turns them into different representations, such as
|
||||
compact binary encodings, XML, or JSON. cereal was designed to be fast,
|
||||
light-weight, and easy to extend - it has no external dependencies and can be
|
||||
easily bundled with other code or used standalone.
|
||||
|
||||
%package devel
|
||||
Summary: Development headers and libraries for %{name}
|
||||
Provides: %{name}-static = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
cereal is a header-only C++11 serialization library. cereal takes arbitrary
|
||||
data types and reversibly turns them into different representations, such as
|
||||
compact binary encodings, XML, or JSON. cereal was designed to be fast,
|
||||
light-weight, and easy to extend - it has no external dependencies and can be
|
||||
easily bundled with other code or used standalone.
|
||||
|
||||
This package contains development headers and libraries for the cereal library
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
%build
|
||||
mkdir %{_target_platform}
|
||||
pushd %{_target_platform}
|
||||
%{cmake} .. -DSKIP_PORTABILITY_TEST=ON -DWITH_WERROR=OFF
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install -C %{_target_platform}
|
||||
|
||||
%check
|
||||
make -C %{_target_platform} test
|
||||
|
||||
%files devel
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{_includedir}/%{name}
|
||||
%{_libdir}/cmake/%{name}
|
||||
|
||||
%changelog
|
||||
* Fri Apr 22 2022 yaoxin <yaoxin30@h-partners.com> - 1.3.2-1
|
||||
- Package init
|
||||
4
cereal.yaml
Normal file
4
cereal.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: USCiLab/cereal
|
||||
tag_prefix: "^v"
|
||||
separator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user