File libpodofo3.spec of Package libpodofo3
#
# spec file for package libpodofo
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: libpodofo3
Version: 1.0.2
Release: 0
Summary: PDF parsing and creation library
License: LGPL-2.0-or-later
URL: https://github.com/podofo/podofo
Source0: ./podofo-%{version}.tar.gz
BuildRequires: gcc-c++ cmake libjpeg-devel libtiff-devel libpng-devel freetype-devel fontconfig-devel libxml2-devel libopenssl-3-devel
%description
A cross platform PDF parsing and creation library.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -n podofo-%{version} -q
%build
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DPODOFO_BUILD_LIB_ONLY=ON -DCMAKE_BUILD_TYPE=Release -B build .
cd build
make %{?_smp_mflags}
strip src/podofo/libpodofo.so.%{version}
%install
cd build
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license COPYING
%{_libdir}/*.so.*
%files devel
%{_includedir}/podofo
%{_libdir}/*.so
%{_libdir}/cmake/*
%{_libdir}/pkgconfig/*
%changelog