diff --git a/.gitignore b/.gitignore index 253bd12..ccd45c4 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /lerc-b1de4cd.tar.gz +/lerc-4.0.0.tar.gz diff --git a/lerc-dllver.patch b/lerc-dllver.patch index e33fd8d..a318f81 100644 --- a/lerc-dllver.patch +++ b/lerc-dllver.patch @@ -1,6 +1,6 @@ -diff -rupN lerc-b1de4cd146f73e9a679682e209de1ecde1ca094e/CMakeLists.txt lerc-b1de4cd146f73e9a679682e209de1ecde1ca094e-new/CMakeLists.txt ---- lerc-b1de4cd146f73e9a679682e209de1ecde1ca094e/CMakeLists.txt 2022-05-05 21:45:53.000000000 +0200 -+++ lerc-b1de4cd146f73e9a679682e209de1ecde1ca094e-new/CMakeLists.txt 2022-05-06 17:59:32.035158986 +0200 +diff -rupN --no-dereference lerc-4.0.0/CMakeLists.txt lerc-4.0.0-new/CMakeLists.txt +--- lerc-4.0.0/CMakeLists.txt 2022-07-15 20:25:29.000000000 +0200 ++++ lerc-4.0.0-new/CMakeLists.txt 2022-07-21 10:44:37.727098109 +0200 @@ -30,6 +30,9 @@ if(BUILD_SHARED_LIBS) PROPERTIES SOVERSION ${CMAKE_PROJECT_VERSION_MAJOR} diff --git a/liblerc.spec b/liblerc.spec index ecc994c..51a2c2b 100644 --- a/liblerc.spec +++ b/liblerc.spec @@ -1,20 +1,13 @@ -%global commit b1de4cd146f73e9a679682e209de1ecde1ca094e -%global shortcommit %(c=%{commit}; echo ${c:0:7}) - %bcond_without mingw Name: liblerc -Version: 3.1 -Release: 0.3%{?commit:.git%{shortcommit}}%{?dist} +Version: 4.0.0 +Release: 1%{?dist} Summary: Library for Limited Error Raster Compression License: ASL 2.0 URL: https://github.com/Esri/lerc -%if 0%{?commit:1} -Source0: https://github.com/Esri/lerc/archive/%{commit}/lerc-%{shortcommit}.tar.gz -%else Source0: https://github.com/Esri/lerc/archive/v%{version}/lerc-%{version}.tar.gz -%endif # Add version suffix to mingw dll Patch0: lerc-dllver.patch @@ -65,11 +58,7 @@ BuildArch: noarch %prep -%if 0%{?commit:1} -%autosetup -p1 -n lerc-%{commit} -%else -%autosetup -p1 -n lerc-v%{version} -%endif +%autosetup -p1 -n lerc-%{version} # Fix line endings sed -i 's/\r$//' NOTICE README.md doc/MORE.md @@ -97,7 +86,7 @@ sed -i 's/\r$//' NOTICE README.md doc/MORE.md %files %license LICENSE %doc README.md CHANGELOG.md NOTICE -%{_libdir}/libLerc.so.3 +%{_libdir}/libLerc.so.4 %files devel %doc doc/* @@ -109,7 +98,7 @@ sed -i 's/\r$//' NOTICE README.md doc/MORE.md %if %{with mingw} %files -n mingw32-%{name} %license LICENSE -%{mingw32_bindir}/libLerc-3.dll +%{mingw32_bindir}/libLerc-4.dll %{mingw32_includedir}/Lerc_c_api.h %{mingw32_includedir}/Lerc_types.h %{mingw32_libdir}/libLerc.dll.a @@ -117,7 +106,7 @@ sed -i 's/\r$//' NOTICE README.md doc/MORE.md %files -n mingw64-%{name} %license LICENSE -%{mingw64_bindir}/libLerc-3.dll +%{mingw64_bindir}/libLerc-4.dll %{mingw64_includedir}/Lerc_c_api.h %{mingw64_includedir}/Lerc_types.h %{mingw64_libdir}/libLerc.dll.a @@ -126,6 +115,9 @@ sed -i 's/\r$//' NOTICE README.md doc/MORE.md %changelog +* Thu Jul 21 2022 Sandro Mani - 4.0.0-1 +- Update to 4.0.0 + * Mon Jul 11 2022 Sandro Mani - 3.1-0.3.gitb1de4cd - Re-enable mingw32 on EL9 diff --git a/sources b/sources index c78e383..4f026a6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (lerc-b1de4cd.tar.gz) = c7dad83b68a39523d35462ef7a0edf659d09605d8233a714a0977cf3dada153b8f113b17f7b80641999ecc205e3ef5be9715d62bf565d09317fbcc61896dda0d +SHA512 (lerc-4.0.0.tar.gz) = 36fe453b6e732f6bed554d1c1c5cd4668aec63593d6de11f12b659c7b9cbc059ac9aaacc6cea483b3257d522f1b07e13c299914d08b1f8aeb0bb2cde42ba47cf