[packages/podofo] - up to 0.10.1
baggins
baggins at pld-linux.org
Sat Jul 29 15:41:17 CEST 2023
commit 768af52728f2397a96f22d8241385be95ed9f879
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Jul 29 14:53:09 2023 +0200
- up to 0.10.1
podofo-cppunit.patch | 30 ------------------------------
podofo.spec | 43 +++++++++++--------------------------------
2 files changed, 11 insertions(+), 62 deletions(-)
---
diff --git a/podofo.spec b/podofo.spec
index e5af81e..bc067f5 100644
--- a/podofo.spec
+++ b/podofo.spec
@@ -5,14 +5,13 @@
Summary: Library to work with PDF files
Summary(pl.UTF-8): Biblioteka do obsługi PDF-ów
Name: podofo
-Version: 0.9.8
+Version: 0.10.1
Release: 1
-License: LGPL with OpenSSL exception
+License: LGPL
Group: Libraries
-Source0: https://downloads.sourceforge.net/podofo/%{name}-%{version}.tar.gz
-# Source0-md5: f6d3d5f917c7150c44fc6a15848442dd
-Patch0: %{name}-cppunit.patch
-URL: https://podofo.sourceforge.net/
+Source0: https://github.com/podofo/podofo/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: a609bd974b8907d7f23f4b2eb8e22bc9
+URL: https://github.com/podofo/podofo
# for examples only, with -DWANT_BOOST=ON
#BuildRequires: boost-devel
BuildRequires: cmake >= 2.6
@@ -89,18 +88,6 @@ API and internal documentation for PoDoFo library.
%description apidocs -l pl.UTF-8
Dokumentacja API biblioteki PoDoFo.
-%package progs
-Summary: PoDoFo tools
-Summary(pl.UTF-8): Programy narzędziowe PodoFo
-Group: Applications
-Requires: %{name} = %{version}-%{release}
-
-%description progs
-Header files for PoDoFo library.
-
-%description progs -l pl.UTF-8
-Pliki nagłówkowe biblioteki PoDoFo.
-
%package examples
Summary: PoDoFo examples
Summary(pl.UTF-8): Przykłady do PoDoFo
@@ -115,14 +102,11 @@ Programy przykładowe do PoDoFo.
%prep
%setup -q
-%patch0 -p1
%build
install -d build
cd build
%cmake .. \
- -DPODOFO_BUILD_SHARED:BOOL=TRUE \
- -DPODOFO_BUILD_STATIC:BOOL=TRUE \
-DINSTALL_LIBDATA_DIR=%{_libdir} \
%if "%{_lib}" == "lib64"
-DWANT_LIB64=TRUE
@@ -137,13 +121,15 @@ doxygen
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_libdir}/cmake/%{name}}
cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/%{name}/*.cmake $RPM_BUILD_ROOT%{_libdir}/cmake/%{name}/
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -152,18 +138,16 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS CONTRIBUTIONS.txt COPYING.exception ChangeLog FAQ.html README.html TODO
+%doc AUTHORS.md CHANGELOG.md CODING-STYLE.md README.md TODO.md
%attr(755,root,root) %{_libdir}/libpodofo.so.*.*.*
+%ghost %attr(755,root,root) %{_libdir}/libpodofo.so.2
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libpodofo.so
%{_includedir}/podofo
%{_pkgconfigdir}/libpodofo.pc
-
-%files static
-%defattr(644,root,root,755)
-%{_libdir}/libpodofo.a
+%{_libdir}/cmake/%{name}
%if %{with apidocs}
%files apidocs
@@ -171,11 +155,6 @@ rm -rf $RPM_BUILD_ROOT
%doc doc/html
%endif
-%files progs
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/podofo*
-%{_mandir}/man1/podofo*.1*
-
%files examples
%defattr(644,root,root,755)
%{_examplesdir}/%{name}-%{version}
diff --git a/podofo-cppunit.patch b/podofo-cppunit.patch
deleted file mode 100644
index ddc77b8..0000000
--- a/podofo-cppunit.patch
+++ /dev/null
@@ -1,30 +0,0 @@
---- podofo-0.9.8/test/unit/StringTest.cpp.orig 2019-01-15 14:04:40.000000000 +0100
-+++ podofo-0.9.8/test/unit/StringTest.cpp 2023-01-29 16:58:01.449674179 +0100
-@@ -18,22 +18,22 @@
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
- ***************************************************************************/
-
--#include "StringTest.h"
--
- #include <podofo.h>
-
- #ifndef __clang__
-
- using namespace PoDoFo;
-
--// Registers the fixture into the 'registry'
--CPPUNIT_TEST_SUITE_REGISTRATION( StringTest );
--
- inline std::ostream& operator<<(std::ostream& o, const PdfString& s)
- {
- return o << s.GetStringUtf8();
- }
-
-+#include "StringTest.h"
-+
-+// Registers the fixture into the 'registry'
-+CPPUNIT_TEST_SUITE_REGISTRATION( StringTest );
-+
- void StringTest::setUp()
- {
- }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/podofo.git/commitdiff/768af52728f2397a96f22d8241385be95ed9f879
More information about the pld-cvs-commit
mailing list