diff options
author | MyungJoo Ham <myungjoo.ham@samsung.com> | 2017-09-22 14:19:48 +0900 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2018-03-13 15:54:08 +0900 |
commit | 6a84560506156dbea46251055ae8a167eddbd214 (patch) | |
tree | ed7e2f86d3ca467edcb8c488f041390413b37985 | |
parent | 73b91798bf658d5f466cc530d85455c71b7ac01c (diff) | |
download | libaec-tizen_5.5_mobile_hotfix.tar.gz libaec-tizen_5.5_mobile_hotfix.tar.bz2 libaec-tizen_5.5_mobile_hotfix.zip |
packaging: add RPM spec files for Tizentizen_9.0_m2_releasetizen_8.0_m2_releasetizen_7.0_m2_releasetizen_6.5.m2_releasetizen_6.0.m2_releasetizen_5.5.m2_releasesubmit/tizen_6.5/20211028.163501submit/tizen_6.0_hotfix/20201103.115102submit/tizen_6.0_hotfix/20201102.192902submit/tizen_6.0/20201029.205502submit/tizen_5.5_wearable_hotfix/20201026.184307submit/tizen_5.5_mobile_hotfix/20201026.185107submit/tizen_5.5/20191031.000007submit/tizen_5.0/20181101.000006submit/tizen/20180313.065752accepted/tizen/unified/20180314.062103accepted/tizen/9.0/unified/20241031.000227accepted/tizen/8.0/unified/20231005.095021accepted/tizen/7.0/unified/hotfix/20221116.110934accepted/tizen/7.0/unified/20221110.063644accepted/tizen/6.5/unified/20211029.013344accepted/tizen/6.0/unified/hotfix/20201103.051709accepted/tizen/6.0/unified/hotfix/20201102.234332accepted/tizen/6.0/unified/20201030.110913accepted/tizen/5.5/unified/wearable/hotfix/20201027.100801accepted/tizen/5.5/unified/mobile/hotfix/20201027.074438accepted/tizen/5.5/unified/20191031.012140accepted/tizen/5.0/unified/20181102.025501tizen_9.0tizen_8.0tizen_7.0_hotfixtizen_7.0tizen_6.5tizen_6.0_hotfixtizen_6.0tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5tizen_5.0tizenaccepted/tizen_unifiedaccepted/tizen_9.0_unifiedaccepted/tizen_8.0_unifiedaccepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unifiedaccepted/tizen_6.5_unifiedaccepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unifiedaccepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unifiedaccepted/tizen_5.0_unified
Imported from build.opensuse.org
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Corrected subject format.
Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r-- | packaging/libaec.manifest | 5 | ||||
-rw-r--r-- | packaging/libaec.spec | 119 | ||||
-rw-r--r-- | src/CMakeLists.txt | 4 |
3 files changed, 126 insertions, 2 deletions
diff --git a/packaging/libaec.manifest b/packaging/libaec.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/libaec.manifest @@ -0,0 +1,5 @@ +<manifest> + <request> + <domain name="_"/> + </request> +</manifest> diff --git a/packaging/libaec.spec b/packaging/libaec.spec new file mode 100644 index 0000000..9f1cf1d --- /dev/null +++ b/packaging/libaec.spec @@ -0,0 +1,119 @@ +# +# spec file for package libaec +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: libaec +Version: 1.0.1 +Release: 0 +Summary: Adaptive Entropy Coding library +#---License is BSD, however there is a non-enforced NASA patent on the +#---algorithm, see patent.txt +License: BSD-2-Clause +Group: Productivity/Archiving/Compression +Url: https://gitlab.dkrz.de/k202009/libaec +Source0: %{name}-%{version}.tar.gz +Source1001: libaec.manifest + +BuildRequires: cmake +BuildRequires: gcc-c++ + +%description +Libaec provides lossless compression of signed or unsigned integers +(samples) of sizes 1 to 32 bits wide. 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. + +%package -n libaec0 +Summary: Adaptive Entropy Coding library +Group: System/Libraries + +%description -n libaec0 +Libaec provides lossless compression of signed or unsigned integers +(samples) of sizes 1 to 32 bits wide. 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. + +%package devel +Summary: Development files for libaec, a library for Adaptive Entropy Coding library +Group: Development/Libraries/C and C++ +Requires: libaec0 = %{version} + +%description devel +Devel files for libaec (Adaptive Entropy Coding library). + +%package -n libsz2 +Summary: Lossless compression library for scientific data +Group: System/Libraries + +%description -n libsz2 +Drop-in replacement for the SZIP library +(http://www.hdfgroup.org/doc_resource/SZIP). + +%package -n sz2-devel +Summary: Development files for libsz2 +Group: Development/Libraries/C and C++ +Requires: libaec-devel = %{version} +Requires: libsz2 = %{version} +Provides: libsz2-devel = %{version} +Obsoletes: libsz2-devel < %{version} + +%description -n sz2-devel +Header files for libsz2, a drop-in replacement for the +SZIP library (http://www.hdfgroup.org/doc_resource/SZIP). + +%prep +%setup -q -T -a 0 -c +cp %{SOURCE1001} . + +%build +%cmake -DCMAKE_C_FLAGS="%{optflags} -std=gnu99" +make %{?_smp_mflags} + +%install +%make_install + +%post -n libaec0 -p /sbin/ldconfig +%post -n libsz2 -p /sbin/ldconfig + +%postun -n libaec0 -p /sbin/ldconfig +%postun -n libsz2 -p /sbin/ldconfig + +%files -n libaec0 +%manifest libaec.manifest +%doc README.md Copyright.txt doc/patent.txt +%{_bindir}/aec +%{_libdir}/libaec.so.0* + +%files devel +%{_includedir}/libaec.h +%{_libdir}/libaec.so + +%files -n libsz2 +%manifest libaec.manifest +%doc README.SZIP +%{_libdir}/libsz.so.2* + +%files -n sz2-devel +%{_includedir}/szlib.h +%{_libdir}/libsz.so diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 08d03b0..7b4de30 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -39,9 +39,9 @@ IF(WIN32) ELSE(WIN32) INSTALL(TARGETS aec sz LIBRARY - DESTINATION lib + DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE - DESTINATION lib + DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT libraries ) ENDIF(WIN32) |