Package init
(cherry picked from commit d3b3e9a228d5b350664014ae2c85e1ffbc3d5cf7)
This commit is contained in:
parent
e806830746
commit
b3df37a70d
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