From b8c4d19b26ab3e873cd77642f2d6d771ca361800 Mon Sep 17 00:00:00 2001 From: Ding-Yi Chen Date: Tue, 18 Sep 2012 11:06:58 +1000 Subject: [PATCH] Initial import --- .gitignore | 1 + leptonica.spec | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 100 insertions(+) create mode 100644 leptonica.spec diff --git a/.gitignore b/.gitignore index e69de29..4ca7119 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/leptonica-1.69.tar.gz diff --git a/leptonica.spec b/leptonica.spec new file mode 100644 index 0000000..477afe9 --- /dev/null +++ b/leptonica.spec @@ -0,0 +1,98 @@ +%global libname liblept +Name: leptonica +Version: 1.69 +Release: 2%{?dist} +Summary: C library for efficient image processing and image analysis operations + +Group: System Environment/Libraries +License: Leptonica +URL: http://code.google.com/p/leptonica/ +Source0: http://leptonica.googlecode.com/files/%{name}-%{version}.tar.gz + +BuildRequires: libjpeg-devel +BuildRequires: libtiff-devel +BuildRequires: libpng-devel +BuildRequires: zlib-devel +BuildRequires: giflib-devel +BuildRequires: libwebp-devel + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%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} +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains header files for +developing applications that use %{name}. + +%prep +%setup -q + +%build +%configure --disable-static --disable-rpath --program-prefix=leptonica- +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool +make %{?_smp_mflags} + + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} +rm -f %{buildroot}%{_libdir}/%{libname}.la +rm -rf %{buildroot}%{_bindir} + +%clean +rm -rf %{buildroot} + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%doc leptonica-license.txt README.html version-notes.html +%{_libdir}/%{libname}.so.* + +%files devel +%{_includedir}/%{name} +%{_libdir}/%{libname}.so + +%changelog +* Thu Aug 02 2012 Ding-Yi Chen - 1.69-2 +- Fixed issues addressed in Review Request comment #8. + +* Wed Jul 24 2012 Ding-Yi Chen - 1.69-1 +- Upstream update to 1.69 +- Add program-prefix in configure. + +* Wed Jun 20 2012 Ding-Yi Chen - 1.68-4 +- Remove util package and its binary files. + +* Mon Jun 11 2012 Ding-Yi Chen - 1.68-3 +- Split the binary into util package + +* Wed May 09 2012 Ding-Yi Chen - 1.68-2 +- Add zlib.h to fix the koji build + +* Wed May 09 2012 Ding-Yi Chen - 1.68-1 +- Initial import. + diff --git a/sources b/sources index e69de29..699fcef 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +274c921dcc47a97637ecc49c9e4a7b50 leptonica-1.69.tar.gz