|
|
|
@ -4,31 +4,61 @@
|
|
|
|
|
%bcond_without gnuplot
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
%bcond_with mingw
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without mingw
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: leptonica
|
|
|
|
|
Version: 1.80.0
|
|
|
|
|
Release: 4%{?dist}.1
|
|
|
|
|
Version: 1.84.1
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Summary: C library for efficient image processing and image analysis operations
|
|
|
|
|
|
|
|
|
|
License: Leptonica
|
|
|
|
|
URL: https://github.com/danbloomberg/leptonica
|
|
|
|
|
Source0: https://github.com/DanBloomberg/leptonica/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
# Honour LIB_SÙFFIX
|
|
|
|
|
# Add missing -lm
|
|
|
|
|
# Fix library name on win32
|
|
|
|
|
# Don't add _<CONFIG> suffix to pkgconfig filename
|
|
|
|
|
Patch0: leptonica_cmake.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: giflib-devel
|
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
BuildRequires: libwebp-devel
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
|
|
|
|
|
# Needed for several tests
|
|
|
|
|
%if %{with gnuplot}
|
|
|
|
|
BuildRequires: gnuplot
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
|
|
%if %{with mingw}
|
|
|
|
|
BuildRequires: mingw32-filesystem >= 95
|
|
|
|
|
BuildRequires: mingw32-gcc-c++
|
|
|
|
|
BuildRequires: mingw32-libjpeg-turbo
|
|
|
|
|
BuildRequires: mingw32-libtiff
|
|
|
|
|
BuildRequires: mingw32-libpng
|
|
|
|
|
BuildRequires: mingw32-zlib
|
|
|
|
|
BuildRequires: mingw32-giflib
|
|
|
|
|
BuildRequires: mingw32-libwebp
|
|
|
|
|
|
|
|
|
|
BuildRequires: mingw64-filesystem >= 95
|
|
|
|
|
BuildRequires: mingw64-gcc-c++
|
|
|
|
|
BuildRequires: mingw64-libjpeg-turbo
|
|
|
|
|
BuildRequires: mingw64-libtiff
|
|
|
|
|
BuildRequires: mingw64-libpng
|
|
|
|
|
BuildRequires: mingw64-zlib
|
|
|
|
|
BuildRequires: mingw64-giflib
|
|
|
|
|
BuildRequires: mingw64-libwebp
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -67,52 +97,175 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
The %{name}-tools package contains leptonica utility tools.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with mingw}
|
|
|
|
|
%package -n mingw32-%{name}
|
|
|
|
|
Summary: MinGW Windows Leptonica library
|
|
|
|
|
Obsoletes: mingw32-%{name}-static
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n mingw32-%{name}
|
|
|
|
|
MinGW Windows Leptonica library.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n mingw64-%{name}
|
|
|
|
|
Summary: MinGW Windows Leptonica library
|
|
|
|
|
Obsoletes: mingw64-%{name}-static
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n mingw64-%{name}
|
|
|
|
|
MinGW Windows Leptonica library.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?mingw_debug_package}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
autoreconf -ifv
|
|
|
|
|
%configure --disable-static --program-prefix=leptonica-
|
|
|
|
|
%make_build
|
|
|
|
|
# Native build
|
|
|
|
|
%cmake -DBUILD_PROG=ON
|
|
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
|
|
%if %{with mingw}
|
|
|
|
|
# MinGW build
|
|
|
|
|
%mingw_cmake -DBUILD_PROG=ON -DSW_BUILD=OFF
|
|
|
|
|
%mingw_make_build
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
|
install -Dpm 0644 lept.pc %{buildroot}/%{_libdir}/pkgconfig
|
|
|
|
|
%cmake_install
|
|
|
|
|
%if %{with mingw}
|
|
|
|
|
%mingw_make_install
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Compat symlinks
|
|
|
|
|
ln -s %{_libdir}/libleptonica.so %{buildroot}%{_libdir}/liblept.so
|
|
|
|
|
%if %{with mingw}
|
|
|
|
|
ln -s %{mingw32_libdir}/libleptonica.dll.a %{buildroot}%{mingw32_libdir}/liblept.dll.a
|
|
|
|
|
ln -s %{mingw64_libdir}/libleptonica.dll.a %{buildroot}%{mingw64_libdir}/liblept.dll.a
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?mingw_debug_install_post}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make check VERBOSE=1
|
|
|
|
|
%ctest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license leptonica-license.txt
|
|
|
|
|
%doc README.html version-notes.html
|
|
|
|
|
%{_libdir}/liblept.so.5*
|
|
|
|
|
%{_libdir}/libleptonica.so.6*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/%{name}
|
|
|
|
|
%{_libdir}/liblept.so
|
|
|
|
|
%{_libdir}/libleptonica.so
|
|
|
|
|
%{_libdir}/pkgconfig/lept.pc
|
|
|
|
|
%{_libdir}/cmake/LeptonicaConfig-version.cmake
|
|
|
|
|
%{_libdir}/cmake/LeptonicaConfig.cmake
|
|
|
|
|
%{_libdir}/cmake/leptonica/
|
|
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
|
|
|
|
|
%if %{with mingw}
|
|
|
|
|
%files -n mingw32-%{name}
|
|
|
|
|
%license leptonica-license.txt
|
|
|
|
|
%{mingw32_bindir}/*.exe
|
|
|
|
|
%{mingw32_bindir}/libleptonica-6.dll
|
|
|
|
|
%{mingw32_includedir}/leptonica/
|
|
|
|
|
%{mingw32_libdir}/liblept.dll.a
|
|
|
|
|
%{mingw32_libdir}/libleptonica.dll.a
|
|
|
|
|
%{mingw32_libdir}/pkgconfig/lept.pc
|
|
|
|
|
%{mingw32_libdir}/cmake/leptonica/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n mingw64-%{name}
|
|
|
|
|
%license leptonica-license.txt
|
|
|
|
|
%{mingw64_bindir}/*.exe
|
|
|
|
|
%{mingw64_bindir}/libleptonica-6.dll
|
|
|
|
|
%{mingw64_includedir}/leptonica/
|
|
|
|
|
%{mingw64_libdir}/liblept.dll.a
|
|
|
|
|
%{mingw64_libdir}/libleptonica.dll.a
|
|
|
|
|
%{mingw64_libdir}/pkgconfig/lept.pc
|
|
|
|
|
%{mingw64_libdir}/cmake/leptonica/
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.80.0-4.1
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.84.1-5
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.84.1-4
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.84.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.84.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 05 2024 Sandro Mani <manisandro@gmail.com> - 1.84.1-1
|
|
|
|
|
- Update to 1.84.1
|
|
|
|
|
|
|
|
|
|
* Wed Dec 27 2023 Michael J Gruber <mjg@fedoraproject.org> - 1.84.0-2
|
|
|
|
|
- Fix pkgconfig file regression (rhbz#2255937)
|
|
|
|
|
|
|
|
|
|
* Sun Dec 24 2023 Sandro Mani <manisandro@gmail.com> - 1.84.0-1
|
|
|
|
|
- Update to 1.84.0
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.83.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 28 2023 Sandro Mani <manisandro@gmail.com> - 1.83.1-1
|
|
|
|
|
- Update to 1.83.1
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.83.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Dec 21 2022 Sandro Mani <manisandro@gmail.com> - 1.83.0-1
|
|
|
|
|
- Update to 1.83.0
|
|
|
|
|
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.82.0-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Mar 25 2022 Sandro Mani <manisandro@gmail.com> - 1.82.0-7
|
|
|
|
|
- Rebuild with mingw-gcc-12
|
|
|
|
|
|
|
|
|
|
* Thu Feb 24 2022 Sandro Mani <manisandro@gmail.com> - 1.82.0-6
|
|
|
|
|
- Fix broken pkg-config file
|
|
|
|
|
|
|
|
|
|
* Thu Feb 24 2022 Sandro Mani <manisandro@gmail.com> - 1.82.0-5
|
|
|
|
|
- Make mingw subpackages noarch
|
|
|
|
|
|
|
|
|
|
* Thu Feb 24 2022 Sandro Mani <manisandro@gmail.com> - 1.82.0-4
|
|
|
|
|
- Make mingw subpackages noarch
|
|
|
|
|
|
|
|
|
|
* Sat Feb 19 2022 Sandro Mani <manisandro@gmail.com> - 1.82.0-3
|
|
|
|
|
- Add mingw subpackage
|
|
|
|
|
- Port to cmake
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.82.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Sep 23 2021 Sandro Mani <manisandro@gmail.com> - 1.82.0-1
|
|
|
|
|
- Update to 1.82.0
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.81.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 21 2021 Sandro Mani <manisandro@gmail.com> - 1.81.1-1
|
|
|
|
|
- Update to 1.81.1
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.80.0-3.1
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Mon Jun 07 2021 Sandro Mani <manisandro@gmail.com> - 1.81.0-1
|
|
|
|
|
- Update to 1.81.0
|
|
|
|
|
|
|
|
|
|
* Tue Feb 9 2021 Pavel Cahyna <pcahyna@redhat.com> - 1.80.0-2.el9.1
|
|
|
|
|
* Tue Feb 9 2021 Pavel Cahyna <pcahyna@redhat.com> - 1.80.0-3
|
|
|
|
|
- Make gnuplot build dependency optional, used only by tests
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.80.0-2
|
|
|
|
|