|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
Name: podofo
|
|
|
|
|
Version: 0.9.7
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Summary: Tools and libraries to work with the PDF file format
|
|
|
|
|
|
|
|
|
|
# The library is licensed under the LGPL.
|
|
|
|
@ -24,11 +24,7 @@ Patch22: podofo_maxbytes.patch
|
|
|
|
|
Patch23: podofo-gcc12.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
%if %{?el7:1}%{!?el7:0}
|
|
|
|
|
BuildRequires: cmake3
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: cppunit-devel
|
|
|
|
|
BuildRequires: doxygen
|
|
|
|
|
BuildRequires: fontconfig-devel
|
|
|
|
@ -43,6 +39,28 @@ BuildRequires: openssl-devel
|
|
|
|
|
BuildRequires: texlive-epstopdf-bin
|
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
|
|
|
|
|
BuildRequires: mingw32-filesystem >= 95
|
|
|
|
|
BuildRequires: mingw32-gcc-c++
|
|
|
|
|
BuildRequires: mingw32-fontconfig
|
|
|
|
|
BuildRequires: mingw32-freetype
|
|
|
|
|
BuildRequires: mingw32-libidn
|
|
|
|
|
BuildRequires: mingw32-libjpeg
|
|
|
|
|
BuildRequires: mingw32-libpng
|
|
|
|
|
BuildRequires: mingw32-libtiff
|
|
|
|
|
BuildRequires: mingw32-openssl
|
|
|
|
|
BuildRequires: mingw32-zlib
|
|
|
|
|
|
|
|
|
|
BuildRequires: mingw64-filesystem >= 95
|
|
|
|
|
BuildRequires: mingw64-gcc-c++
|
|
|
|
|
BuildRequires: mingw64-fontconfig
|
|
|
|
|
BuildRequires: mingw64-freetype
|
|
|
|
|
BuildRequires: mingw64-libidn
|
|
|
|
|
BuildRequires: mingw64-libjpeg
|
|
|
|
|
BuildRequires: mingw64-libpng
|
|
|
|
|
BuildRequires: mingw64-libtiff
|
|
|
|
|
BuildRequires: mingw64-openssl
|
|
|
|
|
BuildRequires: mingw64-zlib
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
PoDoFo is a library to work with the PDF file format. The name comes from
|
|
|
|
@ -75,6 +93,36 @@ Requires: openssl-devel%{?_isa}
|
|
|
|
|
%description devel
|
|
|
|
|
Development files and documentation for the %{name} library.
|
|
|
|
|
|
|
|
|
|
%package -n mingw32-%{name}
|
|
|
|
|
Summary: MinGW Windows %{name} library
|
|
|
|
|
|
|
|
|
|
%description -n mingw32-%{name}
|
|
|
|
|
MinGW Windows %{name} library.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n mingw64-%{name}
|
|
|
|
|
Summary: MinGW Windows %{name} library
|
|
|
|
|
|
|
|
|
|
%description -n mingw64-%{name}
|
|
|
|
|
MinGW Windows %{name} library.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n mingw32-%{name}-tools
|
|
|
|
|
Summary: Tools for the MinGW Windows %{name} library
|
|
|
|
|
|
|
|
|
|
%description -n mingw32-%{name}-tools
|
|
|
|
|
Tools for the MinGW Windows %{name} library.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n mingw64-%{name}-tools
|
|
|
|
|
Summary: Tools for the MinGW Windows %{name} library
|
|
|
|
|
|
|
|
|
|
%description -n mingw64-%{name}-tools
|
|
|
|
|
Tools for the MinGW Windows %{name} library.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?mingw_debug_package}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1
|
|
|
|
@ -88,6 +136,7 @@ rm cmake/modules/FindZLIB.cmake
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# Natve build
|
|
|
|
|
%cmake \
|
|
|
|
|
%if 0%{?__isa_bits} == 64
|
|
|
|
|
-DWANT_LIB64=1 \
|
|
|
|
@ -95,15 +144,24 @@ rm cmake/modules/FindZLIB.cmake
|
|
|
|
|
-DPODOFO_BUILD_SHARED=1
|
|
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
|
|
# build the docs
|
|
|
|
|
doxygen
|
|
|
|
|
# MinGW build
|
|
|
|
|
%mingw_cmake -DPODOFO_BUILD_SHARED=1
|
|
|
|
|
%mingw_make_build
|
|
|
|
|
|
|
|
|
|
# Doc build
|
|
|
|
|
doxygen
|
|
|
|
|
# set timestamps on generated files to some constant
|
|
|
|
|
find doc/html -exec touch -r %{SOURCE0} {} \;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%cmake_install
|
|
|
|
|
%mingw_make_install
|
|
|
|
|
rm -rf %{buildroot}%{mingw32_datadir}
|
|
|
|
|
rm -rf %{buildroot}%{mingw64_datadir}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%mingw_debug_install_post
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
@ -127,8 +185,31 @@ find doc/html -exec touch -r %{SOURCE0} {} \;
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%{_libdir}/pkgconfig/lib%{name}.pc
|
|
|
|
|
|
|
|
|
|
%files -n mingw32-%{name}
|
|
|
|
|
%license COPYING.LIB COPYING.exception
|
|
|
|
|
%{mingw32_bindir}/libpodofo.dll
|
|
|
|
|
%{mingw32_libdir}/libpodofo.dll.a
|
|
|
|
|
%{mingw32_libdir}/pkgconfig/libpodofo.pc
|
|
|
|
|
%{mingw32_includedir}/podofo/
|
|
|
|
|
|
|
|
|
|
%files -n mingw32-%{name}-tools
|
|
|
|
|
%{mingw32_bindir}/*.exe
|
|
|
|
|
|
|
|
|
|
%files -n mingw64-%{name}
|
|
|
|
|
%license COPYING.LIB COPYING.exception
|
|
|
|
|
%{mingw64_bindir}/libpodofo.dll
|
|
|
|
|
%{mingw64_libdir}/libpodofo.dll.a
|
|
|
|
|
%{mingw64_libdir}/pkgconfig/libpodofo.pc
|
|
|
|
|
%{mingw64_includedir}/podofo/
|
|
|
|
|
|
|
|
|
|
%files -n mingw64-%{name}-tools
|
|
|
|
|
%{mingw64_bindir}/*.exe
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat Feb 19 2022 Sandro Mani <manisandro@gmail.com> - 0.9.7-6
|
|
|
|
|
- Add mingw subpackage
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.7-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|