%define libname %mklibname haru %{version} %define develname %mklibname haru -d Summary: Cross platform software library for generating PDF Name: libharu Version: 2.2.1 Release: %mkrel 2 Group: System/Libraries License: BSD-like URL: http://www.libharu.org/ Source0: http://libharu.org/files/%{name}-%{version}.tar.bz2 Patch0: libharu-2.2.1-png15.patch BuildRequires: libpng-devel BuildRequires: zlib-devel BuildRequires: file %description HARU is a free, cross platform, open-sourced software library for generating PDF. %package -n %{libname} Summary: Shared libharu library Group: System/Libraries %description -n %{libname} HARU is a free, cross platform, open-sourced software library for generating PDF. %package -n %{develname} Summary: Development headers for libharu Group: Development/C Requires: %{libname} = %{version} Provides: %{name}-devel = %{version} %description -n %{develname} HARU is a free, cross platform, open-sourced software library for generating PDF. This package contains the static library and header files. %prep %setup -q %apply_patches %build %configure2_5x --disable-static %make %install %makeinstall_std rm -f %{buildroot}%{_libdir}/*.la %files -n %{libname} %doc README %{_libdir}/libhpdf-%{version}.so %files -n %{develname} %{_includedir}/hpdf*.h %{_libdir}/libhpdf.so %changelog * Sat Jan 12 2013 umeabot <umeabot> 2.2.1-2.mga3 + Revision: 357459 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Nov 28 2012 fwang <fwang> 2.2.1-1.mga3 + Revision: 322514 - drop .la file - update file list - fix build with libpng 1.5 - new version 2.2.1 * Tue Sep 20 2011 fwang <fwang> 2.0.8-8.mga2 + Revision: 145932 - fix build with latest libpng - rebuild for new libpng * Sun Feb 06 2011 spuhler <spuhler> 2.0.8-7.mga1 + Revision: 47990 - removed buildroot definition from .spec removed the if mdkversion lines - imported package libharu