diff --git a/README.md b/README.md index cde9e6e..7e02739 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libharu +Free PDF library. + diff --git a/libharu.spec b/libharu.spec new file mode 100644 index 0000000..bc1cc9f --- /dev/null +++ b/libharu.spec @@ -0,0 +1,64 @@ +Name: libharu +Version: 2.4.4 +Release: 1mamba +Summary: Free PDF library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://libharu.org/ +Source: https://github.com/libharu/libharu.git/v%{version}/libharu-%{version}.tar.bz2 +License: Zlib +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libpng-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRequires: cmake + +%description +Free PDF library. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +%cmake +%cmake_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%cmake_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libhpdf.so.* +%doc LICENSE + +%files devel +%defattr(-,root,root) +%{_includedir}/hpdf*.h +%{_libdir}/libhpdf.so +%dir %{_datadir}/libharu +%{_datadir}/libharu/* +%doc CHANGES README.md README_cmake + +%changelog +* Sat May 04 2024 Silvan Calarco 2.4.4-1mamba +- package created using the webbuild interface