summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-08-06 11:57:08 +0000
committerCoprDistGit <infra@openeuler.org>2025-08-06 11:57:08 +0000
commit49de38c57fe4ec611de24d65dc462f232e205c16 (patch)
tree5c0f4689a39625efa96f2f30a365bad86f69ca07
parent71c903b849ec345e2c785e710ee19ce954b258af (diff)
automatic import of libharuopeneuler24.03_LTS_SP2
-rw-r--r--.gitignore1
-rw-r--r--libharu-soname.patch12
-rw-r--r--libharu.spec56
-rw-r--r--sources1
4 files changed, 70 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..1626239 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libharu-2.4.3.tar.gz
diff --git a/libharu-soname.patch b/libharu-soname.patch
new file mode 100644
index 0000000..48f5a95
--- /dev/null
+++ b/libharu-soname.patch
@@ -0,0 +1,12 @@
+diff -up libharu-2.4.2/src/CMakeLists.txt.soname libharu-2.4.2/src/CMakeLists.txt
+--- libharu-2.4.2/src/CMakeLists.txt.soname 2022-10-04 20:54:26.641706094 -0600
++++ libharu-2.4.2/src/CMakeLists.txt 2022-10-04 20:57:37.804353062 -0600
+@@ -73,6 +73,8 @@ set(
+ # create hpdf library
+ # =======================================================================
+ add_library(hpdf ${LIBHPDF_SRCS})
++# Fedora - set soname since upstream doesn't care about ABI compatibility
++set_target_properties(hpdf PROPERTIES SOVERSION ${PROJECT_VERSION})
+ if (PNG_FOUND)
+ include_directories (${PNG_INCLUDE_DIRS})
+ target_link_libraries (hpdf ${PNG_LIBRARIES})
diff --git a/libharu.spec b/libharu.spec
new file mode 100644
index 0000000..8d2a037
--- /dev/null
+++ b/libharu.spec
@@ -0,0 +1,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.
diff --git a/sources b/sources
new file mode 100644
index 0000000..07bdbbc
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+7c0e7dc0dc400ad4d6602277bb532bc4 libharu-2.4.3.tar.gz