cereal/cereal.spec
2017-02-10 07:23:59 +00:00

69 lines
2.2 KiB
RPMSpec

Name: cereal
Version: 1.2.1
Release: 3%{?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
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Sat Sep 03 2016 Christoph Junghans <junghans@votca.org> - 1.2.1-2
- Minor changes from review (bug #1372403)
* Thu Sep 01 2016 Christoph Junghans <junghans@votca.org> - 1.2.1-1
- First release.