From bedbef23ebdd5edc45f57dd7476f7e1484013db4 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 7 May 2019 09:03:15 -0400 Subject: [PATCH] import libaec-1.0.2-3.el8 --- .gitignore | 1 + .libaec.metadata | 1 + SPECS/libaec.spec | 90 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 .gitignore create mode 100644 .libaec.metadata create mode 100644 SPECS/libaec.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..13b079e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libaec-1.0.2.tar.gz diff --git a/.libaec.metadata b/.libaec.metadata new file mode 100644 index 0000000..891ff4e --- /dev/null +++ b/.libaec.metadata @@ -0,0 +1 @@ +555821c746c57e7ece5f4d999efd614965a54ad0 SOURCES/libaec-1.0.2.tar.gz diff --git a/SPECS/libaec.spec b/SPECS/libaec.spec new file mode 100644 index 0000000..be4dcf5 --- /dev/null +++ b/SPECS/libaec.spec @@ -0,0 +1,90 @@ +Name: libaec +Version: 1.0.2 +Release: 3%{?dist} +Summary: Adaptive Entropy Coding library +License: BSD +Url: https://gitlab.dkrz.de/k202009/libaec +Source: https://gitlab.dkrz.de/k202009/libaec/repository/archive.tar.gz?ref=v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: %{?fedora:cmake >= 3.1}%{?rhel: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 +%setup -q -T -a 0 -c +mv %{name}-v%{version}-*/* . + +%build +mkdir build +pushd build +%{?fedora:%{cmake}}%{?rhel:%{cmake3}} .. +%make_build +popd + +%install +%make_install -C build + +%check +#test data missing in tarball for check_szcomp and sampledata.sh +make -C build test ARGS="-E \(check_szcomp\|sampledata.sh\)" + +%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 +* Wed Feb 07 2018 Fedora Release Engineering - 1.0.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sat Feb 03 2018 Igor Gnatenko - 1.0.2-2 +- Switch to %%ldconfig_scriptlets + +* Tue Oct 24 2017 Christoph Junghans - 1.0.2-1 +- Version bump to 1.0.2 (#1504372) + +* Sun Aug 13 2017 Christoph Junghans - 1.0.1-4 +- Tweaks for EPEL7 + +* Thu Aug 03 2017 Fedora Release Engineering - 1.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Jul 17 2017 Christoph Junghans - 1.0.1-1 +- version bump to 1.0.1 - bug #1471766 + +* Wed Jun 21 2017 Christoph Junghans - 1.0.0-2 +- comments from review #1462443 + +* Sat Jun 17 2017 Christoph Junghans - 1.0.0-1 +- initial import