Sisyphus repository
Last update: 17 june 2019 | SRPMs: 17680 | Visits: 14120226
en ru br
ALT Linux repos

Group :: System/Libraries
RPM: libharu

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%filter_from_requires /^python2.7.haru/d
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-fedora-compat
BuildRequires: gcc-c++
# END SourceDeps(oneline)
BuildRequires: python-modules-encodings
Group: System/Libraries
%add_optflags %optflags_shared
# see
%define _localstatedir %{_var}
%global gittag0 RELEASE_2_3_0

Name:           libharu
Version:        2.3.0
Release:        alt2_3
Summary:        C library for generating PDF files
License:        zlib with acknowledgement
Patch0:         libharu-RELEASE_2_3_0_cmake.patch

# Based on patches from Gentoo

Patch10: libharu-2.3.0-1-Included-necessary-char-widths-in-generated-PDF.patch
Patch11: libharu-2.3.0-2-Avoid-issue-with-libtiff-duplicate-symbols.patch
Patch12: libharu-2.3.0-3-cmake-fixes.patch
Patch13: libharu-2.3.0-4-Add-support-for-free-form-triangle-Shading-objects.patch

BuildRequires:  gcc-common
BuildRequires:  ctest cmake
BuildRequires:  libpng-devel
BuildRequires:  zlib-devel

libHaru is a library for generating PDF files.
It is free, open source, written in ANSI C and cross platform.

%package        devel
Group: Development/Other
Summary:        Development files for %{name}
Requires:       %{name} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%setup -qn %{name}-%{gittag0}
# fix cmake build
%patch0 -p1 -b .cmake

%patch10 -p1
%patch11 -p1
%patch12 -p2
%patch13 -p1

mkdir -p %{_target_platform}
pushd %{_target_platform}
%{fedora_cmake} -DLIBHPDF_STATIC=NO ..

%make_build -C %{_target_platform}

make install/fast -C %{_target_platform}  DESTDIR=%{buildroot}


%files devel


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin