diff --git a/cereal-1.3.2.tar.gz b/cereal-1.3.2.tar.gz new file mode 100644 index 0000000..c6c7d80 Binary files /dev/null and b/cereal-1.3.2.tar.gz differ diff --git a/cereal.spec b/cereal.spec new file mode 100644 index 0000000..07f0130 --- /dev/null +++ b/cereal.spec @@ -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 - 1.3.2-1 +- Package init diff --git a/cereal.yaml b/cereal.yaml new file mode 100644 index 0000000..213a6b9 --- /dev/null +++ b/cereal.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: USCiLab/cereal +tag_prefix: "^v" +separator: "."