[packages/libharu] - updated to 2.4.6
qboosh
qboosh at pld-linux.org
Sun May 17 13:47:23 CEST 2026
commit 6391a43a1a7b501511a113db6eb882d85af8e552
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun May 17 13:47:23 2026 +0200
- updated to 2.4.6
libharu-libdir.patch | 11 -----------
libharu-soname.patch | 11 -----------
libharu.spec | 22 +++++++++++-----------
3 files changed, 11 insertions(+), 33 deletions(-)
---
diff --git a/libharu.spec b/libharu.spec
index 451ab58..49d1b74 100644
--- a/libharu.spec
+++ b/libharu.spec
@@ -5,15 +5,13 @@
Summary: Library for generating PDF documents
Summary(pl.UTF-8): Biblioteka do generowania dokumentów PDF
Name: libharu
-Version: 2.4.3
+Version: 2.4.6
Release: 1
License: MIT-like
Group: Libraries
#Source0Download: https://github.com/libharu/libharu/releases
Source0: https://github.com/libharu/libharu/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 7c0e7dc0dc400ad4d6602277bb532bc4
-Patch0: %{name}-libdir.patch
-Patch1: %{name}-soname.patch
+# Source0-md5: 7ecc5988409bbc9da7b059321add250d
URL: http://libharu.org/
BuildRequires: cmake >= 3.10
BuildRequires: libpng-devel
@@ -74,8 +72,6 @@ Statyczna biblioteka Haru PDF.
%prep
%setup -q
-%patch -P0 -p1
-%patch -P1 -p1
%build
%if %{with static_libs}
@@ -105,8 +101,10 @@ rm -rf $RPM_BUILD_ROOT
%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
-# docs packaged as %doc + bindings sources
-%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/libharu
+# packaged as %doc
+%{__rm} $RPM_BUILD_ROOT%{_docdir}/{CHANGES,README.md}
+# bindings sources
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/bindings
%clean
rm -rf $RPM_BUILD_ROOT
@@ -117,14 +115,16 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc CHANGES LICENSE README.md
-%attr(755,root,root) %{_libdir}/libhpdf.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libhpdf.so.2.4
+%{_libdir}/libhpdf.so.*.*.*
+%ghost %{_libdir}/libhpdf.so.2.4
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libhpdf.so
+%{_libdir}/libhpdf.so
%{_includedir}/hpdf*.h
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libhpdf.a
+%endif
diff --git a/libharu-libdir.patch b/libharu-libdir.patch
deleted file mode 100644
index c4e28f4..0000000
--- a/libharu-libdir.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- libharu-2.4.3/cmake/modules/haru.cmake.orig 2022-10-14 12:04:02.000000000 +0200
-+++ libharu-2.4.3/cmake/modules/haru.cmake 2023-01-18 17:11:00.438078254 +0100
-@@ -28,7 +28,7 @@ check_include_files(unistd.h LIBHPDF_HAV
- # On windows systems the math library is not separated so do not specify
- # it unless you are on a non-windows system.
- if(NOT WIN32)
-- find_library(MATH_LIB NAMES m PATHS /usr/local/lib /usr/lib)
-+ find_library(MATH_LIB NAMES m)
- if(NOT MATH_LIB)
- message(FATAL_ERROR "Cannot find required math library")
- endif(NOT MATH_LIB)
diff --git a/libharu-soname.patch b/libharu-soname.patch
deleted file mode 100644
index db58aa6..0000000
--- a/libharu-soname.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- libharu-2.4.3/src/CMakeLists.txt.orig 2022-10-14 12:04:02.000000000 +0200
-+++ libharu-2.4.3/src/CMakeLists.txt 2023-01-18 17:15:53.343158117 +0100
-@@ -73,6 +73,8 @@ set(
- # create hpdf library
- # =======================================================================
- add_library(hpdf ${LIBHPDF_SRCS})
-+set_target_properties(hpdf PROPERTIES VERSION ${HPDF_MAJOR_VERSION}.${HPDF_MINOR_VERSION}.${HPDF_BUGFIX_VERSION} SOVERSION ${HPDF_MAJOR_VERSION}.${HPDF_MINOR_VERSION})
-+
- if (PNG_FOUND)
- include_directories (${PNG_INCLUDE_DIRS})
- target_link_libraries (hpdf ${PNG_LIBRARIES})
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libharu.git/commitdiff/6391a43a1a7b501511a113db6eb882d85af8e552
More information about the pld-cvs-commit
mailing list