From d9af85f5775671428abdd4c292da48bf78a12e00 Mon Sep 17 00:00:00 2001 From: Christoph Junghans Date: Sun, 4 Sep 2016 17:41:06 -0600 Subject: [PATCH] Initial import (#1372403). --- .gitignore | 1 + cereal.spec | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 67 insertions(+) create mode 100644 cereal.spec diff --git a/.gitignore b/.gitignore index e69de29..5ecfdfe 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/cereal-1.2.1.tar.gz diff --git a/cereal.spec b/cereal.spec new file mode 100644 index 0000000..0d56d7a --- /dev/null +++ b/cereal.spec @@ -0,0 +1,65 @@ +Name: cereal +Version: 1.2.1 +Release: 2%{?dist} +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 + +BuildArch: noarch + +BuildRequires: gcc-c++ +BuildRequires: boost-devel +BuildRequires: cmake + +%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} + +%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 +%setup -q +#https://github.com/USCiLab/cereal/pull/337 +sed -i 's/-Werror//' CMakeLists.txt + +%build +mkdir %{_target_platform} +pushd %{_target_platform} +%{cmake} .. -DSKIP_PORTABILITY_TEST=ON +%make_build + +%install +%make_install -C %{_target_platform} + +%check +#test_portable_binary_archive is broken +#https://github.com/USCiLab/cereal/issues/338 +make -C %{_target_platform} test ARGS="-V -E test_portable_binary_archive" + +%files devel +%doc README.md +%license LICENSE +%{_includedir}/%{name} +%dir %{_datadir}/cmake +%{_datadir}/cmake/%{name} + +%changelog +* Sat Sep 03 2016 Christoph Junghans - 6.02-2 +- Minor changes from review (bug #1372403) + +* Thu Sep 01 2016 Christoph Junghans - 1.2.1-1 +- First release. diff --git a/sources b/sources index e69de29..610b668 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +64476ed74c19068ee543b53ad3992261 cereal-1.2.1.tar.gz