From 4a570a89266fe6aaa28bca3b3088d82165d3faf9 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:14:13 +0100 Subject: [PATCH] package created using the webbuild interface [release 4.02-1mamba;Mon Apr 05 2021] --- README.md | 2 + libxpdf-4.02-cmake_install_dirs.patch | 21 +++++++++++ libxpdf.spec | 54 +++++++++++++++++++++++++++ 3 files changed, 77 insertions(+) create mode 100644 libxpdf-4.02-cmake_install_dirs.patch create mode 100644 libxpdf.spec diff --git a/README.md b/README.md index 1b4ef24..b738d9c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libxpdf +Static library build from xpdf reader source with most dependencies(zlib, libpng, freetype2) included within. + diff --git a/libxpdf-4.02-cmake_install_dirs.patch b/libxpdf-4.02-cmake_install_dirs.patch new file mode 100644 index 0000000..36a95b7 --- /dev/null +++ b/libxpdf-4.02-cmake_install_dirs.patch @@ -0,0 +1,21 @@ +--- libxpdf-4.02/xpdf-4.02/xpdf/CMakeLists.txt.orig 2021-04-05 19:49:27.552405989 +0200 ++++ libxpdf-4.02/xpdf-4.02/xpdf/CMakeLists.txt 2021-04-05 19:50:44.402804198 +0200 +@@ -291,8 +291,8 @@ + + + INSTALL(TARGETS xpdf +- LIBRARY DESTINATION libxpdf/lib +- ARCHIVE DESTINATION libxpdf/lib ++ LIBRARY DESTINATION lib${LIB_SUFFIX} ++ ARCHIVE DESTINATION lib${LIB_SUFFIX} + ) + + FILE(GLOB source_headers +@@ -304,6 +304,6 @@ + "${PROJECT_SOURCE_DIR}/xpdf/*.h" + ) + +-INSTALL(FILES ${source_headers} DESTINATION libxpdf/include) ++INSTALL(FILES ${source_headers} DESTINATION include/libxpdf) + + diff --git a/libxpdf.spec b/libxpdf.spec new file mode 100644 index 0000000..62dfd11 --- /dev/null +++ b/libxpdf.spec @@ -0,0 +1,54 @@ +Name: libxpdf +Version: 4.02 +Release: 1mamba +Summary: Static library build from xpdf reader source with most dependencies(zlib, libpng, freetype2) included within +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/ashutoshvarma/libxpdf +Source: https://github.com/ashutoshvarma/libxpdf/releases/download/v0.1.3/libxpdf-%{version}.tar.gz +Patch0: libxpdf-4.02-cmake_install_dirs.patch +License: GPL +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: cmake + +%description +Static library build from xpdf reader source with most dependencies(zlib, libpng, freetype2) included within. + +%package devel +Group: Development/Libraries +Summary: Static library build from xpdf reader source with most dependencies(zlib, libpng, freetype2) included within + +%description devel +Static library build from xpdf reader source with most dependencies(zlib, libpng, freetype2) included within +This package contains libraries and header files for developing applications that use %{name}. + +#% debug_package + +%prep +%setup -q -c %{name}-%{version} +%patch0 -p1 + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/libxpdf +%{_includedir}/libxpdf/*.h +%{_libdir}/libxpdf.a +%doc README.md + +%changelog +* Mon Apr 05 2021 Silvan Calarco 4.02-1mamba +- package created using the webbuild interface