forked from pool/libcdr
Accepting request 184380 from LibreOffice:Factory
- Performance regression fix * Add patch to unconditionally use WPX_SEEK_END * Depend on libwpd-devel >= 0.9.5 that has WPX_SEEK_END (forwarded request 184377 from fstrba) OBS-URL: https://build.opensuse.org/request/show/184380 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcdr?expand=0&rev=8
This commit is contained in:
commit
77718d1e76
14
libcdr-0.0.14-wpx_seek_end.patch
Normal file
14
libcdr-0.0.14-wpx_seek_end.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
--- a/src/lib/CDRZipStream.cpp
|
||||||
|
+++ b/src/lib/CDRZipStream.cpp
|
||||||
|
@@ -160,11 +160,7 @@ WPXInputStream *libcdr::CDRZipStream::getDocumentOLEStream(const char *name)
|
||||||
|
|
||||||
|
bool libcdr::CDRZipStreamImpl::findCentralDirectoryEnd()
|
||||||
|
{
|
||||||
|
-#if defined(LIBWPD_STREAM_VERSION_MAJOR) && defined(LIBWPD_STREAM_VERSION_MINOR) && defined(LIBWPD_STREAM_VERSION_REVISION) \
|
||||||
|
- && (LIBWPD_STREAM_VERSION_MAJOR > 0 || (LIBWPD_STREAM_VERSION_MAJOR == 0 && (LIBWPD_STREAM_VERSION_MINOR > 9 \
|
||||||
|
- || (LIBWPD_STREAM_VERSION_MINOR == 9 && LIBWPD_STREAM_VERSION_REVISION >= 5))))
|
||||||
|
if (m_cdir_offset || m_input->seek(-1024, WPX_SEEK_END))
|
||||||
|
-#endif
|
||||||
|
m_input->seek(m_cdir_offset, WPX_SEEK_SET);
|
||||||
|
try
|
||||||
|
{
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 26 07:06:40 UTC 2013 - fstrba@suse.com
|
||||||
|
|
||||||
|
- Performance regression fix
|
||||||
|
* Add patch to unconditionally use WPX_SEEK_END
|
||||||
|
* Depend on libwpd-devel >= 0.9.5 that has WPX_SEEK_END
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon May 27 10:21:51 UTC 2013 - fridrich.strba@suse.com
|
Mon May 27 10:21:51 UTC 2013 - fridrich.strba@suse.com
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ BuildRequires: doxygen
|
|||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libicu-devel
|
BuildRequires: libicu-devel
|
||||||
BuildRequires: liblcms2-devel
|
BuildRequires: liblcms2-devel
|
||||||
BuildRequires: libwpd-devel >= 0.9.0
|
BuildRequires: libwpd-devel >= 0.9.5
|
||||||
BuildRequires: libwpg-devel >= 0.2.0
|
BuildRequires: libwpg-devel >= 0.2.0
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
@ -39,7 +39,8 @@ Group: Productivity/Publishing/Word
|
|||||||
Version: 0.0.14
|
Version: 0.0.14
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://www.freedesktop.org/wiki/Software/libcdr
|
Url: http://www.freedesktop.org/wiki/Software/libcdr
|
||||||
Source: http://dev-www.libreoffice.org/src/libcdr-%{version}.tar.xz
|
Source0: http://dev-www.libreoffice.org/src/libcdr-%{version}.tar.xz
|
||||||
|
Patch0: libcdr-0.0.14-wpx_seek_end.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -92,6 +93,7 @@ Tools to work with documents in Corel Draw file-format.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1 -b .wpx_seek_end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static --docdir=%_docdir/%name
|
%configure --disable-static --docdir=%_docdir/%name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user