1 Summary: Library for generating PDF documents
2 Summary(pl.UTF-8): Biblioteka do generowania dokumentów PDF
5 %define tagver RELEASE_%(echo %{version} | tr . _)
9 Source0: https://github.com/libharu/libharu/archive/%{tagver}/%{name}-%{version}.tar.gz
10 # Source0-md5: 4f916aa49c3069b3a10850013c507460
11 Patch0: %{name}-libdir.patch
12 URL: http://libharu.org/
13 BuildRequires: autoconf >= 2.60
14 BuildRequires: automake
15 BuildRequires: libpng-devel
16 BuildRequires: libtool
17 BuildRequires: zlib-devel
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 HARU is a free, cross platform, open-sourced software library for
22 generating PDF. It supports the following features:
23 - Generating PDF files with lines, text, images.
24 - Outline, text annotation, link annotation.
25 - Compressing document with deflate-decode.
26 - Embedding PNG, Jpeg images.
27 - Embedding Type1 font and TrueType font.
28 - Creating encrypted PDF files.
29 - Using various character set (ISO8859-1~16, MSCP1250~8, KOI-8R).
30 - Supporting CJK fonts and encodings.
32 You can add the feature of PDF creation by using HARU without
33 understanding complicated internal structure of PDF.
35 %description -l pl.UTF-8
36 HARU to darmowa, dostepna na wiele platform biblioteka open source do
37 generowania dokumentów PDF. Biblioteka ta umożliwia:
38 - generowanie dokumentów PDF z liniami, tekstem czy obrazkami,
39 - oznaczanie tekstu i odnośników,
40 - kompresję dokumentu za pomocą deflate-decode,
41 - osadzanie obrazków PNG i JPEG,
42 - osadzanie czcionek Type1 i TrueType,
43 - tworzenie zaszyforwanie dokumentów PDF,
44 - wsparcie dla różnych zestawów znaków (ISO8859-1~16 MSCP1250~8,
46 - wsparcie dla czcionek i kodowań znaków CJK.
49 Summary: Header files for Haru PDF library
50 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Haru PDF
51 Group: Development/Libraries
52 Requires: %{name} = %{version}-%{release}
55 Header files for Haru PDF library.
57 %description devel -l pl.UTF-8
58 Pliki nagłówkowe biblioteki Haru PDF.
61 Summary: Static Haru PDF library
62 Summary(pl.UTF-8): Statyczna biblioteka Haru PDF
63 Group: Development/Libraries
64 Requires: %{name}-devel = %{version}-%{release}
67 Static Haru PDF library.
69 %description static -l pl.UTF-8
70 Statyczna biblioteka Haru PDF.
73 %setup -q -n %{name}-%{tagver}
82 # avoid detection of libpng14 and libpng12, use just libpng to get system default version
84 ac_cv_lib_png14_png_init_io=no \
85 ac_cv_lib_png12_png_init_io=no
90 rm -rf $RPM_BUILD_ROOT
93 DESTDIR=$RPM_BUILD_ROOT
96 rm -rf $RPM_BUILD_ROOT
98 %post -p /sbin/ldconfig
99 %postun -p /sbin/ldconfig
102 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_libdir}/libhpdf-%{version}.so
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/libhpdf.so
109 %{_libdir}/libhpdf.la
110 %{_includedir}/hpdf*.h
113 %defattr(644,root,root,755)