SHA256
1
0
forked from pool/libvisio

Accepting request 327656 from LibreOffice:Factory

- Version bump to 0.1.3:
  * Fix build on old compilers
- Add patch from upstream git to build with new libxml2:
  * 0001-fix-test.patch

- Version bump to 0.1.2:
  - Fix several build problems with different compilers.
  - Import more metadata properties.
  - Fix theme color import (tdf#92270).
  - Fix a bunch of crashes and hangs when reading broken documents, found
    with the help of american-fuzzy-lop.
  - Fix several memory leaks.
  - Ignore errors when parsing metadata. This makes some documents readable
    again.
  - Fix handling of character background (tdf#92271).

OBS-URL: https://build.opensuse.org/request/show/327656
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libvisio?expand=0&rev=21
This commit is contained in:
Stephan Kulow 2015-08-29 18:02:47 +00:00 committed by Git OBS Bridge
commit cd431de065
5 changed files with 65 additions and 5 deletions

34
0001-fix-test.patch Normal file
View File

@ -0,0 +1,34 @@
From 75a02c586f6ec49d4316f79004834250ef42b0e0 Mon Sep 17 00:00:00 2001
From: David Tardon <dtardon@redhat.com>
Date: Sat, 25 Jul 2015 15:11:19 +0200
Subject: [PATCH] fix test
The previous version only worked with libxml2 < 2.9.2, because of a bug
in handling nested elements of the same name.
Change-Id: I1368cedf5845895154806d4ecf427bfbed19165f
---
configure.ac | 4 ++++
src/test/importtest.cpp | 6 +++---
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/test/importtest.cpp b/src/test/importtest.cpp
index 8554309..0296380 100644
--- a/src/test/importtest.cpp
+++ b/src/test/importtest.cpp
@@ -272,9 +272,9 @@ void ImportTest::testVsdxImportBgColorFromTheme()
void ImportTest::testVsdxCharBgColor()
{
m_doc = parse("bgcolor.vsdx", m_buffer);
- assertXPathNoAttribute(m_doc, "/document/page/layer/textObject/paragraph/span", "background-color");
- assertXPath(m_doc, "/document/page/layer/layer[2]/textObject/paragraph/span", "background-color", "#9dbb61");
- assertXPath(m_doc, "/document/page/layer/layer[2]/layer[2]/textObject/paragraph/span", "background-color", "#9dbb61");
+ assertXPathNoAttribute(m_doc, "/document/page/layer[1]/textObject/paragraph/span", "background-color");
+ assertXPath(m_doc, "/document/page/layer[2]/textObject/paragraph/span", "background-color", "#9dbb61");
+ assertXPath(m_doc, "/document/page/layer[3]/textObject/paragraph/span", "background-color", "#9dbb61");
}
CPPUNIT_TEST_SUITE_REGISTRATION(ImportTest);
--
2.1.0

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4b510168d1465516fdf6e57c01e2f9eae1fc0ae232c74e44e70693bbc49227f1
size 412752

3
libvisio-0.1.3.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:943e03b1e6c969af4c2133a6671c9630adf3aaf8d460156744a28f58c9f47cd8
size 479592

View File

@ -1,3 +1,25 @@
-------------------------------------------------------------------
Fri Aug 28 07:46:16 UTC 2015 - tchvatal@suse.com
- Version bump to 0.1.3:
* Fix build on old compilers
- Add patch from upstream git to build with new libxml2:
* 0001-fix-test.patch
-------------------------------------------------------------------
Fri Aug 28 07:39:59 UTC 2015 - tchvatal@suse.com
- Version bump to 0.1.2:
- Fix several build problems with different compilers.
- Import more metadata properties.
- Fix theme color import (tdf#92270).
- Fix a bunch of crashes and hangs when reading broken documents, found
with the help of american-fuzzy-lop.
- Fix several memory leaks.
- Ignore errors when parsing metadata. This makes some documents readable
again.
- Fix handling of character background (tdf#92271).
-------------------------------------------------------------------
Tue Jan 6 13:01:37 UTC 2015 - tchvatal@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package libvisio
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,13 +18,14 @@
%define libname libvisio-0_1-1
Name: libvisio
Version: 0.1.1
Version: 0.1.3
Release: 0
Summary: Library for parsing the MS Visio file format structure
License: MPL-2.0
Group: Productivity/Publishing/Word
Url: http://www.freedesktop.org/wiki/Software/libvisio
Source0: http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.xz
Patch0: 0001-fix-test.patch
BuildRequires: boost-devel
BuildRequires: cppunit-devel
BuildRequires: doxygen
@ -81,6 +82,9 @@ This package contains tools to work with documents in MS Visio file-format.
%prep
%setup -q
%if 0%{?suse_version} > 1320
%patch0 -p1
%endif
%build
export CXXFLAGS="%{optflags} -fvisibility-inlines-hidden"