From 5d41708a8fa2beedce068e41e3f607f5cd998f4e Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 10:23:37 +0100 Subject: [PATCH] automatic version update by autodist [release 0.9.2-1mamba;Sat Jul 20 2013] --- README.md | 6 +++ podofo.spec | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 119 insertions(+) create mode 100644 podofo.spec diff --git a/README.md b/README.md index c1c9575..56d28a5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,8 @@ # podofo +The PoDoFo library is a free, portable C++ library which includes classes to parse PDF files and modify their contents into memory. +The changes can be written back to disk easily. +The parser can also be used to extract information from a PDF file (for example the parser could be used in a PDF viewer). +Besides parsing PoDoFo includes also very simple classes to create your own PDF files. +All classes are documented so it is easy to start writing your own application using PoDoFo. + diff --git a/podofo.spec b/podofo.spec new file mode 100644 index 0000000..3dc5ec6 --- /dev/null +++ b/podofo.spec @@ -0,0 +1,113 @@ +%define majver %(echo %version | cut -d. -f1-2) + +Name: podofo +Version: 0.9.2 +Release: 1mamba +Summary: Tools based on libpodofo to work with the PDF file format +Group: System/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Ercole 'ercolinux' Carpanetto +URL: http://podofo.sourceforge.net/ +Source: http://downloads.sourceforge.net/project/podofo/podofo/%{majver}/podofo-%{version}.tar.gz +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libfontconfig-devel +BuildRequires: libfreetype-devel +BuildRequires: libgcc +BuildRequires: libjpeg-devel +BuildRequires: liblua51-devel +BuildRequires: libpng-devel +BuildRequires: libstdc++6-devel +BuildRequires: libtiff-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +Requires: libpodofo = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +The PoDoFo library is a free, portable C++ library which includes classes to parse PDF files and modify their contents into memory. +The changes can be written back to disk easily. +The parser can also be used to extract information from a PDF file (for example the parser could be used in a PDF viewer). +Besides parsing PoDoFo includes also very simple classes to create your own PDF files. +All classes are documented so it is easy to start writing your own application using PoDoFo. + +%package -n libpodofo +Group: System/Libraries +Summary: A library to work with the PDF file format + +%description -n libpodofo +The PoDoFo library is a free, portable C++ library which includes classes to parse PDF files and modify their contents into memory. +The changes can be written back to disk easily. +The parser can also be used to extract information from a PDF file (for example the parser could be used in a PDF viewer). +Besides parsing PoDoFo includes also very simple classes to create your own PDF files. +All classes are documented so it is easy to start writing your own application using PoDoFo. + +%package -n libpodofo-devel +Group: Development/Libraries +Summary: Libraries and headers for %{name} +Requires: libpodofo = %{?epoch:%epoch:}%{version}-%{release} +Provides: podofo-devel +Obsoletes: podofo-devel + +%description -n libpodofo-devel +This package contains libraries and header files for developing applications that use lib%{name}. + +%prep +%setup -q + +%build +%cmake -d build \ + -DPODOFO_BUILD_SHARED:BOOL=TRUE \ + -DPODOFO_BUILD_STATIC:BOOL=FALSE \ + -DLUA_INCLUDE_DIR=`pkg-config --variable=includedir lua5.1` \ +%ifarch x86_64 + -DWANT_LIB64=1 \ +%endif + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n libpodofo -p /sbin/ldconfig +%postun -n libpodofo -p /sbin/ldconfig + +%files -n libpodofo +%defattr(-,root,root) +%{_libdir}/libpodofo.so.* + +%files -n libpodofo-devel +%defattr(-,root,root) +%dir %{_includedir}/podofo +%{_includedir}/podofo/* +%{_libdir}/libpodofo.so + +%files +%defattr(-,root,root) +%{_bindir}/podofo* +%{_mandir}/man1/podofo*.1* + +%changelog +* Sat Jul 20 2013 Automatic Build System 0.9.2-1mamba +- automatic version update by autodist + +* Thu Jun 28 2012 Davide Madrisan 0.9.1-3mamba +- do not require %{__install_info} +- add missing AUTOBUILDREQ-END +- fix build for x86_64 architecture + +* Wed Apr 11 2012 Silvan Calarco 0.9.1-2mamba +- build as shared library +- create libpodofo and libpodofo-devel (obsolete podofo-devel) + +* Sun Jul 24 2011 Automatic Build System 0.9.1-1mamba +- update to 0.9.1 + +* Mon Dec 27 2010 Ercole 'ercolinux' Carpanetto 0.8.4-1mamba +- package created by autospec