Name: PublicDecompWT Version: 2.7.2 Release: 5 Summary: Wavelet decompression tool for xRIT files from MSG License: Apache 2.0 URL: https://gitlab.eumetsat.int/open-source/PublicDecompWT Source: https://gitlab.eumetsat.int/open-source/PublicDecompWT/-/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: binutils BuildRequires: gcc-c++ %description Wavelet decompression tool for xRIT files from MSG (xRITDecompress) %package -n %{name}-devel Summary: PublicDecompWT development library Provides: %{name}-static = %{version}-%{release} %description -n %{name}-devel Wavelet decompression tool for xRIT files from MSG (headers and libs) %global debug_package %{nil} %prep %setup %build cd COMP BITS="glibc -fPIC" make cd ../DISE BITS="glibc -fPIC" make cd ../xRITDecompress make %install # Headers mkdir -p %{buildroot}/%{_includedir}/%{name} for i in 'COMP' 'COMP/JPEG' 'COMP/T4' 'COMP/WT'; do install -m0644 %{_builddir}/%{name}-%{version}/${i}/Inc/*.h %{buildroot}/%{_includedir}/%{name}/ done install -m0644 %{_builddir}/%{name}-%{version}/DISE/*.h %{buildroot}/%{_includedir}/%{name}/ # Libs for i in JPEG T4 WT ; do install -D -m0644 %{_builddir}/%{name}-%{version}/COMP/${i}/Src/lib${i}.a %{buildroot}/%{_libdir}/%{name}/lib${i}.a done install -D -m0644 %{_builddir}/%{name}-%{version}/COMP/Src/libCOMP.a %{buildroot}/%{_libdir}/%{name}/libCOMP.a install -D -m0644 %{_builddir}/%{name}-%{version}/DISE/libDISE.a %{buildroot}/%{_libdir}/%{name}/libDISE.a # Bin install -D -m0755 %{_builddir}/%{name}-%{version}/xRITDecompress/xRITDecompress %{buildroot}/%{_bindir}/xRITDecompress mkdir %{buildroot}/%{_libdir}/pkgconfig/ cat > %{buildroot}/%{_libdir}/pkgconfig/libpublicdecompwt.pc < - 2.7.2-5 - Fixed permission in xRITDecompress binary * Fri May 29 2020 Daniele Branchini - 2.7.2-4 - Added DISE lib compilation, fixed fPIC option * Fri May 29 2020 Daniele Branchini - 2.7.2-3 - Added fPIC option, fixed pkgconfig file (#1) * Fri May 29 2020 Daniele Branchini - 2.7.2-2 - Added pkgconfig file (#1) * Thu Apr 30 2020 Daniele Branchini - 2.7.2-1 - First build