Accepting request 235353 from home:fstrba
Initial package of librevenge OBS-URL: https://build.opensuse.org/request/show/235353 OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/librevenge?expand=0&rev=1
This commit is contained in:
commit
13c9fb6e4b
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
203
0001-fix-license-headers-for-gdb-printers.patch
Normal file
203
0001-fix-license-headers-for-gdb-printers.patch
Normal file
@ -0,0 +1,203 @@
|
|||||||
|
From 27adcd8bdba57db50b2e718054563c76f99aebfa Mon Sep 17 00:00:00 2001
|
||||||
|
From: David Tardon <dtardon@redhat.com>
|
||||||
|
Date: Sat, 24 May 2014 00:24:46 +0200
|
||||||
|
Subject: [PATCH] fix license headers for gdb printers
|
||||||
|
|
||||||
|
---
|
||||||
|
data/gdb/auto-load/librevenge-stream.py.in | 28 ++++++++++++----------------
|
||||||
|
data/gdb/auto-load/librevenge.py.in | 28 ++++++++++++----------------
|
||||||
|
data/gdb/librevenge/util/compatibility.py | 25 ++++++++++---------------
|
||||||
|
data/gdb/librevenge/util/printing.py | 25 ++++++++++---------------
|
||||||
|
data/gdb/librevenge/v0_0/streams.py | 5 -----
|
||||||
|
data/gdb/librevenge/v0_0/types.py | 5 -----
|
||||||
|
6 files changed, 44 insertions(+), 72 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/data/gdb/auto-load/librevenge-stream.py.in b/data/gdb/auto-load/librevenge-stream.py.in
|
||||||
|
index d4dbc09..de4a9d2 100644
|
||||||
|
--- a/data/gdb/auto-load/librevenge-stream.py.in
|
||||||
|
+++ b/data/gdb/auto-load/librevenge-stream.py.in
|
||||||
|
@@ -1,22 +1,18 @@
|
||||||
|
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
||||||
|
-# Auto-load of all the printers.
|
||||||
|
-#
|
||||||
|
-# Copyright (C) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com>
|
||||||
|
-#
|
||||||
|
-# This file is part of boost-gdb-printers.
|
||||||
|
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
|
||||||
|
+# librevenge
|
||||||
|
+# Version: MPL 2.0 / LGPLv2.1+
|
||||||
|
#
|
||||||
|
-# This program is free software; you can redistribute it and/or modify
|
||||||
|
-# it under the terms of the GNU General Public License as published by
|
||||||
|
-# the Free Software Foundation; either version 3 of the License, or
|
||||||
|
-# (at your option) any later version.
|
||||||
|
+# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
+# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
#
|
||||||
|
-# This program is distributed in the hope that it will be useful,
|
||||||
|
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
-# GNU General Public License for more details.
|
||||||
|
+# Alternatively, the contents of this file may be used under the terms
|
||||||
|
+# of the GNU Lesser General Public License Version 2.1 or later
|
||||||
|
+# (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
|
||||||
|
+# applicable instead of those above.
|
||||||
|
#
|
||||||
|
-# You should have received a copy of the GNU General Public License
|
||||||
|
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
+
|
||||||
|
+# Auto-load of all the printers.
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
|
diff --git a/data/gdb/auto-load/librevenge.py.in b/data/gdb/auto-load/librevenge.py.in
|
||||||
|
index 6e7eb50..af4dba2 100644
|
||||||
|
--- a/data/gdb/auto-load/librevenge.py.in
|
||||||
|
+++ b/data/gdb/auto-load/librevenge.py.in
|
||||||
|
@@ -1,22 +1,18 @@
|
||||||
|
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
||||||
|
-# Auto-load of all the printers.
|
||||||
|
-#
|
||||||
|
-# Copyright (C) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com>
|
||||||
|
-#
|
||||||
|
-# This file is part of boost-gdb-printers.
|
||||||
|
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
|
||||||
|
+# librevenge
|
||||||
|
+# Version: MPL 2.0 / LGPLv2.1+
|
||||||
|
#
|
||||||
|
-# This program is free software; you can redistribute it and/or modify
|
||||||
|
-# it under the terms of the GNU General Public License as published by
|
||||||
|
-# the Free Software Foundation; either version 3 of the License, or
|
||||||
|
-# (at your option) any later version.
|
||||||
|
+# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
+# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
#
|
||||||
|
-# This program is distributed in the hope that it will be useful,
|
||||||
|
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
-# GNU General Public License for more details.
|
||||||
|
+# Alternatively, the contents of this file may be used under the terms
|
||||||
|
+# of the GNU Lesser General Public License Version 2.1 or later
|
||||||
|
+# (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
|
||||||
|
+# applicable instead of those above.
|
||||||
|
#
|
||||||
|
-# You should have received a copy of the GNU General Public License
|
||||||
|
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
+
|
||||||
|
+# Auto-load of all the printers.
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
|
diff --git a/data/gdb/librevenge/util/compatibility.py b/data/gdb/librevenge/util/compatibility.py
|
||||||
|
index 788d2f5..240874f 100644
|
||||||
|
--- a/data/gdb/librevenge/util/compatibility.py
|
||||||
|
+++ b/data/gdb/librevenge/util/compatibility.py
|
||||||
|
@@ -1,23 +1,18 @@
|
||||||
|
# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
|
||||||
|
-# Compatibility with older versions of GDB.
|
||||||
|
-#
|
||||||
|
-# Copyright (C) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com>
|
||||||
|
+# librevenge
|
||||||
|
+# Version: MPL 2.0 / LGPLv2.1+
|
||||||
|
#
|
||||||
|
-# This file is part of boost-gdb-printers.
|
||||||
|
+# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
+# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
#
|
||||||
|
-# This program is free software; you can redistribute it and/or modify
|
||||||
|
-# it under the terms of the GNU General Public License as published by
|
||||||
|
-# the Free Software Foundation; either version 3 of the License, or
|
||||||
|
-# (at your option) any later version.
|
||||||
|
+# Alternatively, the contents of this file may be used under the terms
|
||||||
|
+# of the GNU Lesser General Public License Version 2.1 or later
|
||||||
|
+# (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
|
||||||
|
+# applicable instead of those above.
|
||||||
|
#
|
||||||
|
-# This program is distributed in the hope that it will be useful,
|
||||||
|
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
-# GNU General Public License for more details.
|
||||||
|
-#
|
||||||
|
-# You should have received a copy of the GNU General Public License
|
||||||
|
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
+# Compatibility with older versions of GDB.
|
||||||
|
|
||||||
|
import gdb
|
||||||
|
|
||||||
|
diff --git a/data/gdb/librevenge/util/printing.py b/data/gdb/librevenge/util/printing.py
|
||||||
|
index 28e6779..6187d21 100644
|
||||||
|
--- a/data/gdb/librevenge/util/printing.py
|
||||||
|
+++ b/data/gdb/librevenge/util/printing.py
|
||||||
|
@@ -1,23 +1,18 @@
|
||||||
|
# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
|
||||||
|
-# Printer interface adaptor.
|
||||||
|
-#
|
||||||
|
-# Copyright (C) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com>
|
||||||
|
+# librevenge
|
||||||
|
+# Version: MPL 2.0 / LGPLv2.1+
|
||||||
|
#
|
||||||
|
-# This file is part of boost-gdb-printers.
|
||||||
|
+# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
+# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
#
|
||||||
|
-# This program is free software; you can redistribute it and/or modify
|
||||||
|
-# it under the terms of the GNU General Public License as published by
|
||||||
|
-# the Free Software Foundation; either version 3 of the License, or
|
||||||
|
-# (at your option) any later version.
|
||||||
|
+# Alternatively, the contents of this file may be used under the terms
|
||||||
|
+# of the GNU Lesser General Public License Version 2.1 or later
|
||||||
|
+# (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
|
||||||
|
+# applicable instead of those above.
|
||||||
|
#
|
||||||
|
-# This program is distributed in the hope that it will be useful,
|
||||||
|
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
-# GNU General Public License for more details.
|
||||||
|
-#
|
||||||
|
-# You should have received a copy of the GNU General Public License
|
||||||
|
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
+# Printer interface adaptor.
|
||||||
|
|
||||||
|
from collections import Mapping
|
||||||
|
import gdb
|
||||||
|
diff --git a/data/gdb/librevenge/v0_0/streams.py b/data/gdb/librevenge/v0_0/streams.py
|
||||||
|
index 7a60a33..7ea3753 100644
|
||||||
|
--- a/data/gdb/librevenge/v0_0/streams.py
|
||||||
|
+++ b/data/gdb/librevenge/v0_0/streams.py
|
||||||
|
@@ -6,11 +6,6 @@
|
||||||
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
#
|
||||||
|
-# Major Contributor(s):
|
||||||
|
-# Copyright (C) 2014 David Tardon (dtardon@redhat.com)
|
||||||
|
-#
|
||||||
|
-# For minor contributions see the git repository.
|
||||||
|
-#
|
||||||
|
# Alternatively, the contents of this file may be used under the terms
|
||||||
|
# of the GNU Lesser General Public License Version 2.1 or later
|
||||||
|
# (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
|
||||||
|
diff --git a/data/gdb/librevenge/v0_0/types.py b/data/gdb/librevenge/v0_0/types.py
|
||||||
|
index 3a49d45..4075aa2 100644
|
||||||
|
--- a/data/gdb/librevenge/v0_0/types.py
|
||||||
|
+++ b/data/gdb/librevenge/v0_0/types.py
|
||||||
|
@@ -6,11 +6,6 @@
|
||||||
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
#
|
||||||
|
-# Major Contributor(s):
|
||||||
|
-# Copyright (C) 2014 David Tardon (dtardon@redhat.com)
|
||||||
|
-#
|
||||||
|
-# For minor contributions see the git repository.
|
||||||
|
-#
|
||||||
|
# Alternatively, the contents of this file may be used under the terms
|
||||||
|
# of the GNU Lesser General Public License Version 2.1 or later
|
||||||
|
# (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
|
||||||
|
--
|
||||||
|
1.9.3
|
||||||
|
|
103
0001-fix-type-sizes-for-CPPUNIT_ASSERT_EQUAL.patch
Normal file
103
0001-fix-type-sizes-for-CPPUNIT_ASSERT_EQUAL.patch
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
From 0952de614e7cdb101478bbdbfa48fee5f1f70a5b Mon Sep 17 00:00:00 2001
|
||||||
|
From: David Tardon <dtardon@redhat.com>
|
||||||
|
Date: Fri, 23 May 2014 22:36:59 +0200
|
||||||
|
Subject: [PATCH] fix type sizes for CPPUNIT_ASSERT_EQUAL
|
||||||
|
|
||||||
|
---
|
||||||
|
src/test/RVNGBinaryDataTest.cpp | 10 +++++-----
|
||||||
|
src/test/RVNGStringTest.cpp | 10 +++++-----
|
||||||
|
2 files changed, 10 insertions(+), 10 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/test/RVNGBinaryDataTest.cpp b/src/test/RVNGBinaryDataTest.cpp
|
||||||
|
index 13b5e9c..7b10a92 100644
|
||||||
|
--- a/src/test/RVNGBinaryDataTest.cpp
|
||||||
|
+++ b/src/test/RVNGBinaryDataTest.cpp
|
||||||
|
@@ -101,19 +101,19 @@ void RVNGBinaryDataTest::testConstruction()
|
||||||
|
const unsigned char input[] = "hello world";
|
||||||
|
const size_t len = RVNG_NUM_ELEMENTS(input);
|
||||||
|
RVNGBinaryData data(input, len);
|
||||||
|
- CPPUNIT_ASSERT_EQUAL(len, data.size());
|
||||||
|
+ CPPUNIT_ASSERT_EQUAL(static_cast<unsigned long>(len), data.size());
|
||||||
|
CPPUNIT_ASSERT(!data.empty());
|
||||||
|
CPPUNIT_ASSERT(equal(input, input + len, data.getDataBuffer()));
|
||||||
|
|
||||||
|
{
|
||||||
|
// copy construction
|
||||||
|
RVNGBinaryData copy(data);
|
||||||
|
- CPPUNIT_ASSERT_EQUAL(len, copy.size());
|
||||||
|
+ CPPUNIT_ASSERT_EQUAL(static_cast<unsigned long>(len), copy.size());
|
||||||
|
CPPUNIT_ASSERT(equal(input, input + len, copy.getDataBuffer()));
|
||||||
|
}
|
||||||
|
// COW: destruction of a copy does not touch the original
|
||||||
|
// this should be tested under valgrind
|
||||||
|
- CPPUNIT_ASSERT_EQUAL(len, data.size());
|
||||||
|
+ CPPUNIT_ASSERT_EQUAL(static_cast<unsigned long>(len), data.size());
|
||||||
|
CPPUNIT_ASSERT(equal(input, input + len, data.getDataBuffer()));
|
||||||
|
|
||||||
|
// assignment
|
||||||
|
@@ -121,7 +121,7 @@ void RVNGBinaryDataTest::testConstruction()
|
||||||
|
CPPUNIT_ASSERT_EQUAL(0ul, assign.size());
|
||||||
|
CPPUNIT_ASSERT(assign.empty());
|
||||||
|
assign = data;
|
||||||
|
- CPPUNIT_ASSERT_EQUAL(len, assign.size());
|
||||||
|
+ CPPUNIT_ASSERT_EQUAL(static_cast<unsigned long>(len), assign.size());
|
||||||
|
CPPUNIT_ASSERT(!assign.empty());
|
||||||
|
CPPUNIT_ASSERT(equal(input, input + len, assign.getDataBuffer()));
|
||||||
|
|
||||||
|
@@ -148,7 +148,7 @@ void RVNGBinaryDataTest::testAppend()
|
||||||
|
CPPUNIT_ASSERT_EQUAL(static_cast<unsigned char>('h'), data.getDataBuffer()[0]);
|
||||||
|
|
||||||
|
data2.append(input + 1, len - 1);
|
||||||
|
- CPPUNIT_ASSERT_EQUAL(len, data2.size());
|
||||||
|
+ CPPUNIT_ASSERT_EQUAL(static_cast<unsigned long>(len), data2.size());
|
||||||
|
CPPUNIT_ASSERT(equal(input, input + len, data2.getDataBuffer()));
|
||||||
|
// again, the original is unchanged
|
||||||
|
CPPUNIT_ASSERT_EQUAL(1ul, data.size());
|
||||||
|
diff --git a/src/test/RVNGStringTest.cpp b/src/test/RVNGStringTest.cpp
|
||||||
|
index abaa8a5..5f99027 100644
|
||||||
|
--- a/src/test/RVNGStringTest.cpp
|
||||||
|
+++ b/src/test/RVNGStringTest.cpp
|
||||||
|
@@ -118,27 +118,27 @@ void RVNGStringTest::testConstruction()
|
||||||
|
const char input[] = "hello world";
|
||||||
|
const size_t len = RVNG_NUM_ELEMENTS(input) - 1;
|
||||||
|
RVNGString str(input);
|
||||||
|
- CPPUNIT_ASSERT_EQUAL(len, str.size());
|
||||||
|
+ CPPUNIT_ASSERT_EQUAL(static_cast<unsigned long>(len), str.size());
|
||||||
|
CPPUNIT_ASSERT_EQUAL(int(len), str.len());
|
||||||
|
CPPUNIT_ASSERT(equal(input, input + len, str.cstr()));
|
||||||
|
|
||||||
|
// copy construction
|
||||||
|
RVNGString copy(str);
|
||||||
|
- CPPUNIT_ASSERT_EQUAL(len, copy.size());
|
||||||
|
+ CPPUNIT_ASSERT_EQUAL(static_cast<unsigned long>(len), copy.size());
|
||||||
|
CPPUNIT_ASSERT_EQUAL(int(len), copy.len());
|
||||||
|
CPPUNIT_ASSERT(equal(input, input + len, copy.cstr()));
|
||||||
|
|
||||||
|
// assignment
|
||||||
|
RVNGString assign;
|
||||||
|
assign = str;
|
||||||
|
- CPPUNIT_ASSERT_EQUAL(len, assign.size());
|
||||||
|
+ CPPUNIT_ASSERT_EQUAL(static_cast<unsigned long>(len), assign.size());
|
||||||
|
CPPUNIT_ASSERT_EQUAL(int(len), assign.len());
|
||||||
|
CPPUNIT_ASSERT(equal(input, input + len, assign.cstr()));
|
||||||
|
|
||||||
|
// assignment from C string
|
||||||
|
RVNGString assign2;
|
||||||
|
assign2 = input;
|
||||||
|
- CPPUNIT_ASSERT_EQUAL(len, assign.size());
|
||||||
|
+ CPPUNIT_ASSERT_EQUAL(static_cast<unsigned long>(len), assign.size());
|
||||||
|
CPPUNIT_ASSERT_EQUAL(int(len), assign.len());
|
||||||
|
CPPUNIT_ASSERT(equal(input, input + len, assign.cstr()));
|
||||||
|
}
|
||||||
|
@@ -164,7 +164,7 @@ void RVNGStringTest::testAppend()
|
||||||
|
|
||||||
|
// appending a C string
|
||||||
|
str2.append(input + 1);
|
||||||
|
- CPPUNIT_ASSERT_EQUAL(len, str2.size());
|
||||||
|
+ CPPUNIT_ASSERT_EQUAL(static_cast<unsigned long>(len), str2.size());
|
||||||
|
CPPUNIT_ASSERT_EQUAL(int(len), str2.len());
|
||||||
|
CPPUNIT_ASSERT(equal(input, input + len, str2.cstr()));
|
||||||
|
}
|
||||||
|
--
|
||||||
|
1.9.3
|
||||||
|
|
3
librevenge-0.0.0.tar.xz
Normal file
3
librevenge-0.0.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:46b56f21c05d06cc9d083a3ad7bfccfa75267cfa193289d0db5d55d487c14870
|
||||||
|
size 390072
|
9
librevenge.changes
Normal file
9
librevenge.changes
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 26 08:08:57 UTC 2014 - fstrba@suse.com
|
||||||
|
|
||||||
|
- Initial package for librevenge
|
||||||
|
- 0001-fix-type-sizes-for-CPPUNIT_ASSERT_EQUAL.patch
|
||||||
|
* fix make check on some architectures.
|
||||||
|
- 0001-fix-license-headers-for-gdb-printers.patch
|
||||||
|
* pretty printers are licensed MPL-2.0 by their author.
|
||||||
|
|
174
librevenge.spec
Normal file
174
librevenge.spec
Normal file
@ -0,0 +1,174 @@
|
|||||||
|
#
|
||||||
|
# spec file for package librevenge
|
||||||
|
#
|
||||||
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# 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 http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%global apiversion 0.0
|
||||||
|
%global pkgextension 0_0-0
|
||||||
|
%global libgenname librevenge-generators-0_0-0
|
||||||
|
Name: librevenge
|
||||||
|
Version: 0.0.0
|
||||||
|
Release: 0
|
||||||
|
Summary: A base library for writing document import filters
|
||||||
|
License: LGPL-2.1+ or MPL-2.0+
|
||||||
|
Url: http://sourceforge.net/p/libwpd/wiki/librevenge/
|
||||||
|
Source: http://downloads.sourceforge.net/libwpd/%{name}-%{version}.tar.xz
|
||||||
|
Patch0: 0001-fix-type-sizes-for-CPPUNIT_ASSERT_EQUAL.patch
|
||||||
|
Patch1: 0001-fix-license-headers-for-gdb-printers.patch
|
||||||
|
BuildRequires: boost-devel
|
||||||
|
BuildRequires: doxygen
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: pkg-config
|
||||||
|
BuildRequires: xz
|
||||||
|
BuildRequires: pkgconfig(cppunit)
|
||||||
|
BuildRequires: pkgconfig(zlib)
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
|
%description
|
||||||
|
%{name} is a base library for writing document import filters. It has
|
||||||
|
interfaces for text documents, vector graphics, spreadsheets and
|
||||||
|
presentations.
|
||||||
|
|
||||||
|
%package -n %{name}-%{pkgextension}
|
||||||
|
Summary: A base library for writing document import filters
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n %{name}-%{pkgextension}
|
||||||
|
%{name} is a base library for writing document import filters. It has
|
||||||
|
interfaces for text documents, vector graphics, spreadsheets and
|
||||||
|
presentations.
|
||||||
|
|
||||||
|
%package -n %{name}-stream-%{pkgextension}
|
||||||
|
Summary: A base library for writing document import filters (stream implementations)
|
||||||
|
# src/lib/RVNGOLEStream.{h,cpp} are BSD3c
|
||||||
|
License: (LGPL-2.1+ or MPL-2.0+) and BSD-3-Clause
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n %{name}-stream-%{pkgextension}
|
||||||
|
%{name} is a base library for writing document import filters. It has
|
||||||
|
interfaces for text documents, vector graphics, spreadsheets and
|
||||||
|
presentations.
|
||||||
|
This package contains the different stream implementations.
|
||||||
|
|
||||||
|
%package -n %{name}-generators-%{pkgextension}
|
||||||
|
Summary: A base library for writing document import filters
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n %{name}-generators-%{pkgextension}
|
||||||
|
%{name} is a base library for writing document import filters. It has
|
||||||
|
interfaces for text documents, vector graphics, spreadsheets and
|
||||||
|
presentations.
|
||||||
|
This package contains classes to be used by converters that generate
|
||||||
|
documents using %{name}'s APIs.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: %{name}-%{pkgextension} = %{version}-%{release}
|
||||||
|
Requires: %{name}-generators-%{pkgextension} = %{version}-%{release}
|
||||||
|
Requires: %{name}-stream-%{pkgextension} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
The %{name}-devel package contains libraries and header files for
|
||||||
|
developing applications that use %{name}.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation of %{name} API
|
||||||
|
Group: Documentation/Other
|
||||||
|
%if 0%{?suse_version} > 1200
|
||||||
|
BuildArch: noarch
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
The %{name}-doc package contains documentation files for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure \
|
||||||
|
--disable-static \
|
||||||
|
--disable-werror \
|
||||||
|
--enable-pretty-printers \
|
||||||
|
--docdir=%{_docdir}/%{name}
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||||
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
%fdupes -s %{buildroot}%{_docdir}/%{name}
|
||||||
|
|
||||||
|
%post -n %{name}-%{pkgextension} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n %{name}-%{pkgextension} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post -n %{name}-stream-%{pkgextension} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n %{name}-stream-%{pkgextension} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post -n %{name}-generators-%{pkgextension} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n %{name}-generators-%{pkgextension} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1300
|
||||||
|
|
||||||
|
%check
|
||||||
|
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
||||||
|
make %{?_smp_mflags} check
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files -n %{name}-%{pkgextension}
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc COPYING.* README NEWS
|
||||||
|
%{_libdir}/%{name}-%{apiversion}.so.*
|
||||||
|
|
||||||
|
%files -n %{name}-stream-%{pkgextension}
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/%{name}-stream-%{apiversion}.so.*
|
||||||
|
|
||||||
|
%files -n %{name}-generators-%{pkgextension}
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/%{name}-generators-%{apiversion}.so.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc ChangeLog
|
||||||
|
%{_includedir}/%{name}-%{apiversion}
|
||||||
|
|
||||||
|
%{_libdir}/%{name}-%{apiversion}.so
|
||||||
|
%{_libdir}/%{name}-generators-%{apiversion}.so
|
||||||
|
%{_libdir}/%{name}-stream-%{apiversion}.so
|
||||||
|
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
|
||||||
|
%{_libdir}/pkgconfig/%{name}-generators-%{apiversion}.pc
|
||||||
|
%{_libdir}/pkgconfig/%{name}-stream-%{apiversion}.pc
|
||||||
|
%dir %{_datadir}/gdb/auto-load
|
||||||
|
%dir %{_datadir}/gdb/auto-load%{_prefix}
|
||||||
|
%dir %{_datadir}/gdb/auto-load%{_libdir}
|
||||||
|
%{_datadir}/gdb/auto-load%{_libdir}/%{name}-%{apiversion}.py*
|
||||||
|
%{_datadir}/gdb/auto-load%{_libdir}/%{name}-stream-%{apiversion}.py*
|
||||||
|
%dir %{_datadir}/%{name}
|
||||||
|
%{_datadir}/%{name}/python
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc COPYING.*
|
||||||
|
%doc %{_docdir}/%{name}
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user