]> git.pld-linux.org Git - SPECS.git/blob - libharu.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / libharu.spec
1 Summary:        Library for generating PDF documents
2 Summary(pl.UTF-8):      Biblioteka do generowania dokumentów PDF
3 Name:           libharu
4 Version:        2.3.0
5 %define tagver  RELEASE_%(echo %{version} | tr . _)
6 Release:        1
7 License:        MIT-like
8 Group:          Libraries
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)
19
20 %description
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.
31
32 You can add the feature of PDF creation by using HARU without
33 understanding complicated internal structure of PDF.
34
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,
45   KOI-8R),
46 - wsparcie dla czcionek i kodowań znaków CJK.
47
48 %package devel
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}
53
54 %description devel
55 Header files for Haru PDF library.
56
57 %description devel -l pl.UTF-8
58 Pliki nagłówkowe biblioteki Haru PDF.
59
60 %package static
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}
65
66 %description static
67 Static Haru PDF library.
68
69 %description static -l pl.UTF-8
70 Statyczna biblioteka Haru PDF.
71
72 %prep
73 %setup -q -n %{name}-%{tagver}
74 %patch0 -p1
75
76 %build
77 %{__libtoolize}
78 %{__aclocal}
79 %{__autoconf}
80 %{__autoheader}
81 %{__automake}
82 # avoid detection of libpng14 and libpng12, use just libpng to get system default version
83 %configure \
84         ac_cv_lib_png14_png_init_io=no \
85         ac_cv_lib_png12_png_init_io=no
86
87 %{__make}
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91
92 %{__make} install \
93         DESTDIR=$RPM_BUILD_ROOT
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
98 %post   -p /sbin/ldconfig
99 %postun -p /sbin/ldconfig
100
101 %files
102 %defattr(644,root,root,755)
103 %doc README
104 %attr(755,root,root) %{_libdir}/libhpdf-%{version}.so
105
106 %files devel
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/libhpdf.so
109 %{_libdir}/libhpdf.la
110 %{_includedir}/hpdf*.h
111
112 %files static
113 %defattr(644,root,root,755)
114 %{_libdir}/libhpdf.a
This page took 0.408174 seconds and 3 git commands to generate.