summaryrefslogtreecommitdiff
path: root/libharu.spec
blob: 8d2a037ed76d3b53fd6f0846144a2c88d45df961 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Name:           libharu
Version:        2.4.3
Release:        1
Summary:        C library for generating PDF files
License:        zlib-acknowledgement
URL:            http://libharu.org
Source0:        https://github.com/libharu/libharu/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0:         libharu-soname.patch

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

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

%package        devel
Summary:        Development files for %{name}
Requires:       %{name}%{?_isa} = %{version}-%{release}

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

%prep
%setup -q
%patch -P0 -p1 -b .soname

%build
%cmake -DLIBHPDF_STATIC=NO

%cmake_build

%install
%cmake_install

%ldconfig_scriptlets

%files
%license LICENSE
%doc README.md
%{_libdir}/libhpdf.so.%{version}
%{_datadir}/%{name}

%files devel
%{_includedir}/*
%{_libdir}/libhpdf.so

%changelog
* Tue Aug 5 2025 mimanchiok <mimanchiok@qq.com> - 2.4.3-1
- Update to 2.4.3

* Mon Dec 20 2021 herengui <herengui@uniontech.com> - 2.3.0-1
- Initial package.