SHA256
8
0
forked from pool/leptonica
Files
leptonica/leptonica.spec

110 lines
3.1 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package leptonica
#
# Copyright (c) 2024 SUSE LLC
#
# 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.
2018-12-17 19:50:09 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Accepting request 1056958 from home:mia:branches:devel:libraries:c_c++ - Update to 1.83.0: * Simplify setting the title of pdf files. * Catch tiff failure to open stream in fopenTiffMemStream() * Check for POSIX functions fstatat() and dirfd() before use. * In prog/cleanpdf: do not allow threshold to exceed 190. Make all parameters required; do not use default values for invalid parameters. * In prog/concatpdf: add input param for title; add jpeg quality factor * Fix flaky hash_reg test on i686: sets generated from SelectRange() can depend slightly on platform. * Convenience function for adding multiple black and white borders. * Fix oss-fuzz issue 42202: underined shift in l_convertCharstrToInt(). * Fix oss-fuzz issue 43841: made pixCountPixels() more efficient. * Fix oss-fuzz issue 44008: pixCountArbInRect() used wrong depth. * Always return tiff resolution of 0 (unknown) if not set. * Simplify operations on pix memory to help avoid mem leaks * Make bmp non-support of 32-bit bmp (rgba) files explicit. * Improve tiff read resolution conversion by rounding. * Use stdatomic.h to make cloning string safe. Remove all *GetRefcount() and *ChangeRefcount() accessors. * Replace procName and mainName strings by __func__. * Remove information about fields in many structs from the public interface allheaders.h, instead putting them in internal files pix_internal.h, array_internal.h and ccbord_internal.h. * Increase the .so number from 5.4.0 to 6.0.0. * Rename the autotools generated libraries from liblept to libleptonica * Fix potential memory leaks from recogAverageSamples() and recogDebugAverages() by not destroying a recog. - Drop ea2bb8c9cf61d3eba2589cfaac05f59a33b4110d.patch (applied upstream) OBS-URL: https://build.opensuse.org/request/show/1056958 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/leptonica?expand=0&rev=35
2023-01-09 15:11:58 +00:00
%define major 6
Name: leptonica
Version: 1.84.1
Release: 0
Summary: Library for image processing and image analysis applications
License: BSD-2-Clause
Group: Development/Libraries/C and C++
URL: http://leptonica.org/
Source0: https://github.com/DanBloomberg/leptonica/releases/download/%{version}/leptonica-%{version}.tar.gz
Source1: baselibs.conf
BuildRequires: giflib-devel
BuildRequires: gnuplot
BuildRequires: libjpeg-devel
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libopenjp2)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libtiff-4)
BuildRequires: pkgconfig(libwebp) >= 0.2.0
%description
Library for efficient image processing and image analysis operations.
Accepting request 1056958 from home:mia:branches:devel:libraries:c_c++ - Update to 1.83.0: * Simplify setting the title of pdf files. * Catch tiff failure to open stream in fopenTiffMemStream() * Check for POSIX functions fstatat() and dirfd() before use. * In prog/cleanpdf: do not allow threshold to exceed 190. Make all parameters required; do not use default values for invalid parameters. * In prog/concatpdf: add input param for title; add jpeg quality factor * Fix flaky hash_reg test on i686: sets generated from SelectRange() can depend slightly on platform. * Convenience function for adding multiple black and white borders. * Fix oss-fuzz issue 42202: underined shift in l_convertCharstrToInt(). * Fix oss-fuzz issue 43841: made pixCountPixels() more efficient. * Fix oss-fuzz issue 44008: pixCountArbInRect() used wrong depth. * Always return tiff resolution of 0 (unknown) if not set. * Simplify operations on pix memory to help avoid mem leaks * Make bmp non-support of 32-bit bmp (rgba) files explicit. * Improve tiff read resolution conversion by rounding. * Use stdatomic.h to make cloning string safe. Remove all *GetRefcount() and *ChangeRefcount() accessors. * Replace procName and mainName strings by __func__. * Remove information about fields in many structs from the public interface allheaders.h, instead putting them in internal files pix_internal.h, array_internal.h and ccbord_internal.h. * Increase the .so number from 5.4.0 to 6.0.0. * Rename the autotools generated libraries from liblept to libleptonica * Fix potential memory leaks from recogAverageSamples() and recogDebugAverages() by not destroying a recog. - Drop ea2bb8c9cf61d3eba2589cfaac05f59a33b4110d.patch (applied upstream) OBS-URL: https://build.opensuse.org/request/show/1056958 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/leptonica?expand=0&rev=35
2023-01-09 15:11:58 +00:00
%package -n libleptonica%{major}
Summary: Library for image processing and image analysis applications
Group: System/Libraries
Accepting request 1056958 from home:mia:branches:devel:libraries:c_c++ - Update to 1.83.0: * Simplify setting the title of pdf files. * Catch tiff failure to open stream in fopenTiffMemStream() * Check for POSIX functions fstatat() and dirfd() before use. * In prog/cleanpdf: do not allow threshold to exceed 190. Make all parameters required; do not use default values for invalid parameters. * In prog/concatpdf: add input param for title; add jpeg quality factor * Fix flaky hash_reg test on i686: sets generated from SelectRange() can depend slightly on platform. * Convenience function for adding multiple black and white borders. * Fix oss-fuzz issue 42202: underined shift in l_convertCharstrToInt(). * Fix oss-fuzz issue 43841: made pixCountPixels() more efficient. * Fix oss-fuzz issue 44008: pixCountArbInRect() used wrong depth. * Always return tiff resolution of 0 (unknown) if not set. * Simplify operations on pix memory to help avoid mem leaks * Make bmp non-support of 32-bit bmp (rgba) files explicit. * Improve tiff read resolution conversion by rounding. * Use stdatomic.h to make cloning string safe. Remove all *GetRefcount() and *ChangeRefcount() accessors. * Replace procName and mainName strings by __func__. * Remove information about fields in many structs from the public interface allheaders.h, instead putting them in internal files pix_internal.h, array_internal.h and ccbord_internal.h. * Increase the .so number from 5.4.0 to 6.0.0. * Rename the autotools generated libraries from liblept to libleptonica * Fix potential memory leaks from recogAverageSamples() and recogDebugAverages() by not destroying a recog. - Drop ea2bb8c9cf61d3eba2589cfaac05f59a33b4110d.patch (applied upstream) OBS-URL: https://build.opensuse.org/request/show/1056958 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/leptonica?expand=0&rev=35
2023-01-09 15:11:58 +00:00
Obsoletes: liblept < %{version}
Provides: liblept = %{version}
Accepting request 1056958 from home:mia:branches:devel:libraries:c_c++ - Update to 1.83.0: * Simplify setting the title of pdf files. * Catch tiff failure to open stream in fopenTiffMemStream() * Check for POSIX functions fstatat() and dirfd() before use. * In prog/cleanpdf: do not allow threshold to exceed 190. Make all parameters required; do not use default values for invalid parameters. * In prog/concatpdf: add input param for title; add jpeg quality factor * Fix flaky hash_reg test on i686: sets generated from SelectRange() can depend slightly on platform. * Convenience function for adding multiple black and white borders. * Fix oss-fuzz issue 42202: underined shift in l_convertCharstrToInt(). * Fix oss-fuzz issue 43841: made pixCountPixels() more efficient. * Fix oss-fuzz issue 44008: pixCountArbInRect() used wrong depth. * Always return tiff resolution of 0 (unknown) if not set. * Simplify operations on pix memory to help avoid mem leaks * Make bmp non-support of 32-bit bmp (rgba) files explicit. * Improve tiff read resolution conversion by rounding. * Use stdatomic.h to make cloning string safe. Remove all *GetRefcount() and *ChangeRefcount() accessors. * Replace procName and mainName strings by __func__. * Remove information about fields in many structs from the public interface allheaders.h, instead putting them in internal files pix_internal.h, array_internal.h and ccbord_internal.h. * Increase the .so number from 5.4.0 to 6.0.0. * Rename the autotools generated libraries from liblept to libleptonica * Fix potential memory leaks from recogAverageSamples() and recogDebugAverages() by not destroying a recog. - Drop ea2bb8c9cf61d3eba2589cfaac05f59a33b4110d.patch (applied upstream) OBS-URL: https://build.opensuse.org/request/show/1056958 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/leptonica?expand=0&rev=35
2023-01-09 15:11:58 +00:00
%description -n libleptonica%{major}
Library for efficient image processing and image analysis operations.
%package devel
Summary: Leptonica Development Files
Group: Development/Libraries/C and C++
Accepting request 1056958 from home:mia:branches:devel:libraries:c_c++ - Update to 1.83.0: * Simplify setting the title of pdf files. * Catch tiff failure to open stream in fopenTiffMemStream() * Check for POSIX functions fstatat() and dirfd() before use. * In prog/cleanpdf: do not allow threshold to exceed 190. Make all parameters required; do not use default values for invalid parameters. * In prog/concatpdf: add input param for title; add jpeg quality factor * Fix flaky hash_reg test on i686: sets generated from SelectRange() can depend slightly on platform. * Convenience function for adding multiple black and white borders. * Fix oss-fuzz issue 42202: underined shift in l_convertCharstrToInt(). * Fix oss-fuzz issue 43841: made pixCountPixels() more efficient. * Fix oss-fuzz issue 44008: pixCountArbInRect() used wrong depth. * Always return tiff resolution of 0 (unknown) if not set. * Simplify operations on pix memory to help avoid mem leaks * Make bmp non-support of 32-bit bmp (rgba) files explicit. * Improve tiff read resolution conversion by rounding. * Use stdatomic.h to make cloning string safe. Remove all *GetRefcount() and *ChangeRefcount() accessors. * Replace procName and mainName strings by __func__. * Remove information about fields in many structs from the public interface allheaders.h, instead putting them in internal files pix_internal.h, array_internal.h and ccbord_internal.h. * Increase the .so number from 5.4.0 to 6.0.0. * Rename the autotools generated libraries from liblept to libleptonica * Fix potential memory leaks from recogAverageSamples() and recogDebugAverages() by not destroying a recog. - Drop ea2bb8c9cf61d3eba2589cfaac05f59a33b4110d.patch (applied upstream) OBS-URL: https://build.opensuse.org/request/show/1056958 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/leptonica?expand=0&rev=35
2023-01-09 15:11:58 +00:00
Requires: libleptonica%{major} = %{version}
Provides: libleptonica-devel = %{version}
Obsoletes: liblept-devel < %{version}
Provides: liblept-devel = %{version}
%description devel
Development files for the Leptonica library.
%package tools
Summary: Leptonica tools
Group: Productivity/Graphics/Other
%description tools
Programs for manipulating images.
%prep
%autosetup -p1
%build
%configure \
--disable-static \
--program-prefix=lept-
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
rm -f %{buildroot}%{_bindir}/{*gen,*reg,*test*}
# Something related to cmake build. Not use at the moment.
rm -fr %{buildroot}%{_libdir}/cmake/
- Update to version 1.74.1 Version 1.74.1 4 Jan 17 * Configuration changes to support the patch number in the version (major.minor.patch). * Removed all remaining pixDisplayWrite() calls in prog/. * Cleaned up and/or promoted about 15 programs to full regression tests. There are now 95 tests in the regression set. * Over half the initial coverity scan warnings have been removed. Version 1.74.0 10 Dec 16 * Leptonica development was moved to github. The master is at: github.com/danbloomberg/leptonica * New modes for RGB --> gray conversion. * New functions added for displaying a pix from a pixa. * Split out sort/hash/set/map functions for dna, sarray and pta. * More robust horizontal deskew on multi-column page images. * Improve webpio_reg test. * Remove X11 display for gplot; it is no longer supported. * Remove most sleep calls, which were put in for gplot; no longer needed. * Removed use of gthumb in library. * Removed use of pixDisplayWrite() in the library; still in some progs. * Improved test for endianness in makefile.static; no longer requires any local files or building and running a program. * Modified all files for doxygen output (spearheaded by Jurgen Buchmuller) * Improved plotting of the boxes in a boxa. * Replaced the slow point hash function with a simple fast one. * Added pam (4 component) format writing to pnmio.c (Jurgen Buchmuller) * Improved rendering of pixa in side/by/sides. * Better utilities for pixa and pixacomp. * Add read/write serialization functions from/to memory for all OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/leptonica?expand=0&rev=12
2017-02-17 14:56:22 +00:00
%check
# Don't run multiple jobs: some tests failed somehow.
%make_build -j1 check
- Update to version 1.74.1 Version 1.74.1 4 Jan 17 * Configuration changes to support the patch number in the version (major.minor.patch). * Removed all remaining pixDisplayWrite() calls in prog/. * Cleaned up and/or promoted about 15 programs to full regression tests. There are now 95 tests in the regression set. * Over half the initial coverity scan warnings have been removed. Version 1.74.0 10 Dec 16 * Leptonica development was moved to github. The master is at: github.com/danbloomberg/leptonica * New modes for RGB --> gray conversion. * New functions added for displaying a pix from a pixa. * Split out sort/hash/set/map functions for dna, sarray and pta. * More robust horizontal deskew on multi-column page images. * Improve webpio_reg test. * Remove X11 display for gplot; it is no longer supported. * Remove most sleep calls, which were put in for gplot; no longer needed. * Removed use of gthumb in library. * Removed use of pixDisplayWrite() in the library; still in some progs. * Improved test for endianness in makefile.static; no longer requires any local files or building and running a program. * Modified all files for doxygen output (spearheaded by Jurgen Buchmuller) * Improved plotting of the boxes in a boxa. * Replaced the slow point hash function with a simple fast one. * Added pam (4 component) format writing to pnmio.c (Jurgen Buchmuller) * Improved rendering of pixa in side/by/sides. * Better utilities for pixa and pixacomp. * Add read/write serialization functions from/to memory for all OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/leptonica?expand=0&rev=12
2017-02-17 14:56:22 +00:00
Accepting request 1056958 from home:mia:branches:devel:libraries:c_c++ - Update to 1.83.0: * Simplify setting the title of pdf files. * Catch tiff failure to open stream in fopenTiffMemStream() * Check for POSIX functions fstatat() and dirfd() before use. * In prog/cleanpdf: do not allow threshold to exceed 190. Make all parameters required; do not use default values for invalid parameters. * In prog/concatpdf: add input param for title; add jpeg quality factor * Fix flaky hash_reg test on i686: sets generated from SelectRange() can depend slightly on platform. * Convenience function for adding multiple black and white borders. * Fix oss-fuzz issue 42202: underined shift in l_convertCharstrToInt(). * Fix oss-fuzz issue 43841: made pixCountPixels() more efficient. * Fix oss-fuzz issue 44008: pixCountArbInRect() used wrong depth. * Always return tiff resolution of 0 (unknown) if not set. * Simplify operations on pix memory to help avoid mem leaks * Make bmp non-support of 32-bit bmp (rgba) files explicit. * Improve tiff read resolution conversion by rounding. * Use stdatomic.h to make cloning string safe. Remove all *GetRefcount() and *ChangeRefcount() accessors. * Replace procName and mainName strings by __func__. * Remove information about fields in many structs from the public interface allheaders.h, instead putting them in internal files pix_internal.h, array_internal.h and ccbord_internal.h. * Increase the .so number from 5.4.0 to 6.0.0. * Rename the autotools generated libraries from liblept to libleptonica * Fix potential memory leaks from recogAverageSamples() and recogDebugAverages() by not destroying a recog. - Drop ea2bb8c9cf61d3eba2589cfaac05f59a33b4110d.patch (applied upstream) OBS-URL: https://build.opensuse.org/request/show/1056958 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/leptonica?expand=0&rev=35
2023-01-09 15:11:58 +00:00
%post -n libleptonica%{major} -p /sbin/ldconfig
%postun -n libleptonica%{major} -p /sbin/ldconfig
Accepting request 1056958 from home:mia:branches:devel:libraries:c_c++ - Update to 1.83.0: * Simplify setting the title of pdf files. * Catch tiff failure to open stream in fopenTiffMemStream() * Check for POSIX functions fstatat() and dirfd() before use. * In prog/cleanpdf: do not allow threshold to exceed 190. Make all parameters required; do not use default values for invalid parameters. * In prog/concatpdf: add input param for title; add jpeg quality factor * Fix flaky hash_reg test on i686: sets generated from SelectRange() can depend slightly on platform. * Convenience function for adding multiple black and white borders. * Fix oss-fuzz issue 42202: underined shift in l_convertCharstrToInt(). * Fix oss-fuzz issue 43841: made pixCountPixels() more efficient. * Fix oss-fuzz issue 44008: pixCountArbInRect() used wrong depth. * Always return tiff resolution of 0 (unknown) if not set. * Simplify operations on pix memory to help avoid mem leaks * Make bmp non-support of 32-bit bmp (rgba) files explicit. * Improve tiff read resolution conversion by rounding. * Use stdatomic.h to make cloning string safe. Remove all *GetRefcount() and *ChangeRefcount() accessors. * Replace procName and mainName strings by __func__. * Remove information about fields in many structs from the public interface allheaders.h, instead putting them in internal files pix_internal.h, array_internal.h and ccbord_internal.h. * Increase the .so number from 5.4.0 to 6.0.0. * Rename the autotools generated libraries from liblept to libleptonica * Fix potential memory leaks from recogAverageSamples() and recogDebugAverages() by not destroying a recog. - Drop ea2bb8c9cf61d3eba2589cfaac05f59a33b4110d.patch (applied upstream) OBS-URL: https://build.opensuse.org/request/show/1056958 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/leptonica?expand=0&rev=35
2023-01-09 15:11:58 +00:00
%files -n libleptonica%{major}
%license leptonica-license.txt
%doc version-notes.html moller52.jpg
Accepting request 1056958 from home:mia:branches:devel:libraries:c_c++ - Update to 1.83.0: * Simplify setting the title of pdf files. * Catch tiff failure to open stream in fopenTiffMemStream() * Check for POSIX functions fstatat() and dirfd() before use. * In prog/cleanpdf: do not allow threshold to exceed 190. Make all parameters required; do not use default values for invalid parameters. * In prog/concatpdf: add input param for title; add jpeg quality factor * Fix flaky hash_reg test on i686: sets generated from SelectRange() can depend slightly on platform. * Convenience function for adding multiple black and white borders. * Fix oss-fuzz issue 42202: underined shift in l_convertCharstrToInt(). * Fix oss-fuzz issue 43841: made pixCountPixels() more efficient. * Fix oss-fuzz issue 44008: pixCountArbInRect() used wrong depth. * Always return tiff resolution of 0 (unknown) if not set. * Simplify operations on pix memory to help avoid mem leaks * Make bmp non-support of 32-bit bmp (rgba) files explicit. * Improve tiff read resolution conversion by rounding. * Use stdatomic.h to make cloning string safe. Remove all *GetRefcount() and *ChangeRefcount() accessors. * Replace procName and mainName strings by __func__. * Remove information about fields in many structs from the public interface allheaders.h, instead putting them in internal files pix_internal.h, array_internal.h and ccbord_internal.h. * Increase the .so number from 5.4.0 to 6.0.0. * Rename the autotools generated libraries from liblept to libleptonica * Fix potential memory leaks from recogAverageSamples() and recogDebugAverages() by not destroying a recog. - Drop ea2bb8c9cf61d3eba2589cfaac05f59a33b4110d.patch (applied upstream) OBS-URL: https://build.opensuse.org/request/show/1056958 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/leptonica?expand=0&rev=35
2023-01-09 15:11:58 +00:00
%{_libdir}/libleptonica.so.*
%files devel
%license leptonica-license.txt
%doc README.html version-notes.html moller52.jpg
%{_includedir}/leptonica/
Accepting request 1056958 from home:mia:branches:devel:libraries:c_c++ - Update to 1.83.0: * Simplify setting the title of pdf files. * Catch tiff failure to open stream in fopenTiffMemStream() * Check for POSIX functions fstatat() and dirfd() before use. * In prog/cleanpdf: do not allow threshold to exceed 190. Make all parameters required; do not use default values for invalid parameters. * In prog/concatpdf: add input param for title; add jpeg quality factor * Fix flaky hash_reg test on i686: sets generated from SelectRange() can depend slightly on platform. * Convenience function for adding multiple black and white borders. * Fix oss-fuzz issue 42202: underined shift in l_convertCharstrToInt(). * Fix oss-fuzz issue 43841: made pixCountPixels() more efficient. * Fix oss-fuzz issue 44008: pixCountArbInRect() used wrong depth. * Always return tiff resolution of 0 (unknown) if not set. * Simplify operations on pix memory to help avoid mem leaks * Make bmp non-support of 32-bit bmp (rgba) files explicit. * Improve tiff read resolution conversion by rounding. * Use stdatomic.h to make cloning string safe. Remove all *GetRefcount() and *ChangeRefcount() accessors. * Replace procName and mainName strings by __func__. * Remove information about fields in many structs from the public interface allheaders.h, instead putting them in internal files pix_internal.h, array_internal.h and ccbord_internal.h. * Increase the .so number from 5.4.0 to 6.0.0. * Rename the autotools generated libraries from liblept to libleptonica * Fix potential memory leaks from recogAverageSamples() and recogDebugAverages() by not destroying a recog. - Drop ea2bb8c9cf61d3eba2589cfaac05f59a33b4110d.patch (applied upstream) OBS-URL: https://build.opensuse.org/request/show/1056958 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/leptonica?expand=0&rev=35
2023-01-09 15:11:58 +00:00
%{_libdir}/libleptonica.so
%{_libdir}/pkgconfig/*
%files -n leptonica-tools
%license leptonica-license.txt
%{_bindir}/lept-*
%changelog