You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libaec/libaec.spec

110 lines
3.6 KiB

Name: libaec
Version: 1.0.3
Release: 3%{?dist}
Summary: Adaptive Entropy Coding library
License: BSD
Url: https://gitlab.dkrz.de/k202009/libaec
6 years ago
Source0: https://gitlab.dkrz.de/k202009/libaec/-/archive/v%{version}/libaec-v%{version}.tar.gz
Source1: http://cwe.ccsds.org/sls/docs/SLS-DC/BB121B2TestData/121B2TestData.zip
BuildRequires: gcc
BuildRequires: cmake3 >= 3.1
%description
Libaec provides fast loss-less compression of 1 up to 32 bit wide
signed or unsigned integers (samples). The library achieves best
results for low entropy data as often encountered in space imaging
instrument data or numerical model output from weather or climate
simulations. While floating point representations are not directly
supported, they can also be efficiently coded by grouping exponents
and mantissa.
Libaec implements Golomb Rice coding as defined in the Space Data
System Standard documents 121.0-B-2 and 120.0-G-2.
Libaec includes a free drop-in replacement for the SZIP
library (http://www.hdfgroup.org/doc_resource/SZIP).
%package devel
Summary: Devel package for libaec (Adaptive Entropy Coding library)
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Devel files for libaec (Adaptive Entropy Coding library).
%prep
6 years ago
%setup -q -n %{name}-v%{version} -a 1
mv 121B2TestData data
mv data/121B2TestData/AllOptions/test_P512n22.dat data/121B2TestData/AllOptions/test_p512n22.dat
%build
mkdir build
pushd build
%{cmake3} ..
%make_build
popd
%install
%make_install -C build
cp -a build/config.h %{buildroot}%{_includedir}/%{name}_config.h
sed -i '/include/s/config.h/%{name}_&/' %{buildroot}%{_includedir}/szlib.h
%check
6 years ago
make -C build test CTEST_OUTPUT_ON_FAILURE=1
%ldconfig_scriptlets
%files
%doc README.md README.SZIP CHANGELOG.md
%license Copyright.txt doc/patent.txt
%{_bindir}/aec
%{_libdir}/lib*.so.*
%{_mandir}/man1/aec.*
%files devel
%{_includedir}/*.h
%{_libdir}/lib*.so
%changelog
* Sat Feb 09 2019 Christoph Junghans <junghans@votca.org> - 1.0.3-3
- Include missing header
6 years ago
* Tue Feb 05 2019 Christoph Junghans <junghans@votca.org> - 1.0.3-2
- Enable all tests
* Mon Feb 04 2019 Christoph Junghans <junghans@votca.org> - 1.0.3-1
- Version bump to 1.0.3 (bug #1672326)
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.2-2
- Switch to %%ldconfig_scriptlets
* Tue Oct 24 2017 Christoph Junghans <junghans@votca.org> - 1.0.2-1
- Version bump to 1.0.2 (#1504372)
* Sun Aug 13 2017 Christoph Junghans <junghans@votca.org>- 1.0.1-4
7 years ago
- Tweaks for EPEL7
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Mon Jul 17 2017 Christoph Junghans <junghans@votca.org> - 1.0.1-1
- version bump to 1.0.1 - bug #1471766
* Wed Jun 21 2017 Christoph Junghans <junghans@votca.org> - 1.0.0-2
- comments from review #1462443
* Sat Jun 17 2017 Christoph Junghans <junghans@votca.org> - 1.0.0-1
- initial import