From 1ec6320e8a493f6ac0f44048528164b5f427307f Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:58:17 +0100 Subject: [PATCH] package created by autospec [release 1.69-1mamba;Fri Jul 13 2012] --- README.md | 2 + libleptonica.spec | 100 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 libleptonica.spec diff --git a/README.md b/README.md index cf842f6..f85f283 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libleptonica +Leptonica is an image processing and analysis library. + diff --git a/libleptonica.spec b/libleptonica.spec new file mode 100644 index 0000000..1bd8856 --- /dev/null +++ b/libleptonica.spec @@ -0,0 +1,100 @@ +Name: libleptonica +Version: 1.69 +Release: 1mamba +Summary: Image processing and analysis library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://leptonica.org/ +Source: http://leptonica.org/source/leptonica-%{version}.tar.gz +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libjbig-devel +BuildRequires: libjpeg-devel +BuildRequires: liblzma-devel +BuildRequires: libpng-devel +BuildRequires: libtiff-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Leptonica is an image processing and analysis library. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +## note: you can add this requirement if .pc files are provided by this package +#Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%package tools +Group: Applications/Tools +Summary: Utility applications for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description tools +The 190+ programs are an integral part of leptonica package. +These can be divided into + three types: + (1) Programs that are complete regression tests. The most + important of these are named *_reg. We are in the process + of standardizing the regression tests, and making it easy + to write them. See regutils.h for details. + (2) Programs that were used to test library functions or + auto-gen library code. These are useful for testing + the behavior of small sets of functions, and for + providing example code. + (3) Programs that are useful applications in their own right. + Examples of these are the PostScript conversion programs + converttops, convertfilestops, convertsegfilestops, + printimage and printsplitimage. + +%debug_package + +%prep +%setup -q -n leptonica-%{version} + +%build +%{__libtoolize} +%{__aclocal} +%{__autoconf} +%{__autoheader} +%{__automake} +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/liblept.so.* + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/leptonica +%{_includedir}/leptonica/*.h +%{_libdir}/liblept.a +%{_libdir}/liblept.la +%{_libdir}/liblept.so + +%files tools +%defattr(-,root,root) +%{_bindir}/* + +%changelog +* Fri Jul 13 2012 Silvan Calarco 1.69-1mamba +- package created by autospec