package created using the webbuild interface [release 4.02-1mamba;Mon Apr 05 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 06:14:13 +01:00
parent 63623c654f
commit 4a570a8926
3 changed files with 77 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# libxpdf # libxpdf
Static library build from xpdf reader source with most dependencies(zlib, libpng, freetype2) included within.

View File

@ -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)

54
libxpdf.spec Normal file
View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 4.02-1mamba
- package created using the webbuild interface