From 946e0e69ab9a17e45a00f65ec10f0c7380a49b4c Mon Sep 17 00:00:00 2001 From: Sergey Cherevko Date: Tue, 11 Jul 2023 13:10:59 +0300 Subject: [PATCH] Package modification for MSVSphere --- SPECS/compat-podofo096.spec | 65 +++++++------------------------------ 1 file changed, 11 insertions(+), 54 deletions(-) diff --git a/SPECS/compat-podofo096.spec b/SPECS/compat-podofo096.spec index 3369de1..8455666 100644 --- a/SPECS/compat-podofo096.spec +++ b/SPECS/compat-podofo096.spec @@ -37,30 +37,8 @@ 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 libs -Summary: Runtime library for %{name} -License: LGPLv2+ - -%description libs -Runtime library for %{name}. - - -%package devel -Summary: Development files for %{name} library -License: LGPLv2+ -Requires: %{name}-libs%{?_isa} = %{version}-%{release} -Requires: openssl-devel%{?_isa} - -%description devel -Development files and documentation for the %{name} library. - %prep %setup -q -n podofo-%{version} -sed -i "s/\.1/0\.9\.6\.1/g" man/CMakeLists.txt -find man/ -type f -name "*.1" | while read file -do - mv $file ${file%.*}%{mver}".1" -done # fix broken copying rule mkdir test/TokenizerTest/objects @@ -75,44 +53,23 @@ mkdir test/TokenizerTest/objects %install %cmake_install -mv %{buildroot}/%{_bindir}/podofobox{,%{mver}} -mv %{buildroot}/%{_bindir}/podofocolor{,%{mver}} -mv %{buildroot}/%{_bindir}/podofocountpages{,%{mver}} -mv %{buildroot}/%{_bindir}/podofocrop{,%{mver}} -mv %{buildroot}/%{_bindir}/podofoencrypt{,%{mver}} -mv %{buildroot}/%{_bindir}/podofogc{,%{mver}} -mv %{buildroot}/%{_bindir}/podofoimg2pdf{,%{mver}} -mv %{buildroot}/%{_bindir}/podofoimgextract{,%{mver}} -mv %{buildroot}/%{_bindir}/podofoimpose{,%{mver}} -mv %{buildroot}/%{_bindir}/podofoincrementalupdates{,%{mver}} -mv %{buildroot}/%{_bindir}/podofomerge{,%{mver}} -mv %{buildroot}/%{_bindir}/podofopages{,%{mver}} -mv %{buildroot}/%{_bindir}/podofopdfinfo{,%{mver}} -mv %{buildroot}/%{_bindir}/podofosign{,%{mver}} -mv %{buildroot}/%{_bindir}/podofotxt2pdf{,%{mver}} -mv %{buildroot}/%{_bindir}/podofotxtextract{,%{mver}} -mv %{buildroot}/%{_bindir}/podofouncompress{,%{mver}} -mv %{buildroot}/%{_bindir}/podofoxmp{,%{mver}} - -sed -i "s|podofo-0|podofo|g" %{buildroot}/%{_libdir}/pkgconfig/libpodofo-0.pc -sed -i "s|^Version:.*|Version: %{mver}|g" %{buildroot}/%{_libdir}/pkgconfig/libpodofo-0.pc +# Remove binaries +rm -rf %{buildroot}/%{_bindir} -%files -%license COPYING -%{_bindir}/podofo* -%{_mandir}/man1/podofo*.1* +# Remove man-pages +rm -rf %{buildroot}/%{_mandir}/man* + +# Delete devel files +rm -rf %{buildroot}/%{_includedir} +rm -rf %{buildroot}/%{_libdir}/*.so +rm -rf %{buildroot}/%{_libdir}/pkgconfig -%files libs +%files %doc AUTHORS ChangeLog FAQ.html README.html TODO -%license COPYING.LIB COPYING.exception +%license COPYING COPYING.LIB COPYING.exception %{_libdir}/*.so.0.9.6 -%files devel -%{_includedir}/podofo -%{_libdir}/*.so -%{_libdir}/pkgconfig/libpodofo*.pc - %changelog * Mon Jul 10 2023 Sergey Cherevko - 0.9.6-1.inferit - MSVSphere 9 build