diff --git a/leptonica-1.78.0.tar.gz b/leptonica-1.78.0.tar.gz new file mode 100644 index 0000000..58d6729 Binary files /dev/null and b/leptonica-1.78.0.tar.gz differ diff --git a/leptonica.spec b/leptonica.spec new file mode 100644 index 0000000..2c68e43 --- /dev/null +++ b/leptonica.spec @@ -0,0 +1,73 @@ +Name: leptonica +Version: 1.78.0 +Release: 1 +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 automake autoconf libtool giflib-devel libjpeg-devel libpng-devel +BuildRequires: libtiff-devel libwebp-devel zlib-devel gnuplot + +%description +The library supports many operations that are useful on + * Document images + * Natural images +Fundamental image processing and image analysis operations + * Rasterop (aka bitblt) + * Affine transforms (scaling, translation, rotation, shear) + on images of arbitrary pixel depth + * Projective and bi-linear transforms + * Binary and gray scale morphology, rank order filters, and + convolution + * Seed-fill and connected components + * Image transformations with changes in pixel depth, both at + the same scale and with scale change + * Pixelwise masking, blending, enhancement, arithmetic ops, + etc. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains header files for +developing applications that use %{name}. + +%package tools +Summary: Leptonica utility tools +Requires: %{name}%{?_isa} = %{version}-%{release} +%description tools +The %{name}-tools package contains leptonica utility tools. + +%prep +%autosetup -p1 + +%build +autoreconf -ifv +%configure --disable-static --program-prefix=leptonica- +%make_build + +%install +%make_install +rm -f %{buildroot}%{_libdir}/*.la +install -Dpm 0644 lept.pc %{buildroot}/%{_libdir}/pkgconfig + +%check +make check VERBOSE=1 + +%files +%license leptonica-license.txt +%doc README.html version-notes.html +%{_libdir}/liblept.so.5* + +%files devel +%{_includedir}/%{name} +%{_libdir}/liblept.so +%{_libdir}/pkgconfig/lept.pc + +%files tools +%{_bindir}/* + +%changelog +* Mon Jul 27 2020 chengzihan - 1.78.0-1 +- Package init diff --git a/leptonica.yaml b/leptonica.yaml new file mode 100644 index 0000000..4a1892c --- /dev/null +++ b/leptonica.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/danblommberg/leptonica.git +version_control: github +src_repo: danblommberg/leptonica +tag_prefix: "^" +seperator: "."