Search
SailfishOS Open Build Service
>
Projects
>
home:skvark
>
leptonica
> leptonica.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File leptonica.spec of Package leptonica
%global shortname lept %global libname lib%{shortname} %global pkg_config_dir %{_libdir}/pkgconfig %global __requires_exclude libc\\.so\\.6\\(GLIBC_2\\.11\\) Name: leptonica Version: 1.74.1 Release: 0 Summary: Leptonica image processing and analysis library Group: Development/Libraries License: BSD-2-Clause Url: http://code.google.com/p/leptonica/ Source0: leptonica-%{version}.tar.gz BuildRequires: cmake BuildRequires: libjpeg-turbo-devel BuildRequires: libpng-devel BuildRequires: zlib-devel BuildRequires: automake BuildRequires: autoconf BuildRequires: libtool %description Leptonica is an open source C library for efficient image processing and image analysis operations. %package devel Summary: Development files for using the Leptonica library Group: Development/Libraries Provides: %{libname}-devel = %{version}-%{release} Requires: %{name} = %{version}-%{release} %description devel This package contains the Leptonica C library and header files, as well as documentation. %prep %setup -q %build %configure make VERBOSE=1 %{?_smp_mflags} %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} rm -f %{buildroot}%{_libdir}/%{libname}.la mkdir -p %{buildroot}/%{pkg_config_dir} install %{shortname}.pc %{buildroot}/%{pkg_config_dir} %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc leptonica-license.txt README.html version-notes.html %{_libdir}/liblept.so.* %{_bindir}/* %files devel %defattr(-,root,root,-) %{_includedir}/%{name} %{_libdir}/%{libname}.so %{_libdir}/%{libname}.a %defattr(444,root,root) %{pkg_config_dir}/%{shortname}.pc