Blob Blame History Raw
%bcond_without mingw

Name:           liblerc
Version:        4.0.0
Release:        3%{?dist}
Summary:        Library for Limited Error Raster Compression

License:        Apache-2.0
# Add version suffix to mingw dll
Patch0:         lerc-dllver.patch

BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  python3-devel

%if %{with mingw}
BuildRequires: mingw32-filesystem >= 95
BuildRequires: mingw32-gcc-c++

BuildRequires: mingw64-filesystem >= 95
BuildRequires: mingw64-gcc-c++

LERC is an open-source image or raster format which supports rapid encoding and
decoding for any pixel type (not just RGB or Byte). Users set the maximum
compression error per pixel while encoding, so the precision of the original
input image is preserved (within user defined error bounds).

%package        devel
Summary:        Development files for %{name}
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%if %{with mingw}
%package -n mingw32-%{name}
Summary:       MinGW Windows %{name} library
BuildArch:     noarch

%description -n mingw32-%{name}

%package -n mingw64-%{name}
Summary:       MinGW Windows %{name} library
BuildArch:     noarch

%description -n mingw64-%{name}

%autosetup -p1 -n lerc-%{version}

# Fix line endings
sed -i 's/\r$//' NOTICE doc/

# Native build

%if %{with mingw}
# MinGW build

%if %{with mingw}

%license LICENSE

%files devel
%doc doc/*

%if %{with mingw}
%files -n mingw32-%{name}
%license LICENSE

%files -n mingw64-%{name}
%license LICENSE

* Thu Jan 19 2023 Fedora Release Engineering <> - 4.0.0-3
- Rebuilt for

* Thu Jul 21 2022 Fedora Release Engineering <> - 4.0.0-2
- Rebuilt for

* 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

* Fri Jun 10 2022 Orion Poplawski <> - 3.1-0.2.gitb1de4cd
- Drop mingw for non-x86_64 on EL9

* Fri May 06 2022 Sandro Mani <> - 3.1-0.1.gitb1de4cd
- Initial package b1de4cd