From 9e7546841eefb16a259e3f78efaa1aac523bdab7bebc31b8eaf21b6a5260d20a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 16:08:26 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main libwpg revision 9b661d09d5ade64e1f13027f762efb7e --- .gitattributes | 23 +++++++ libwpg-0.3.4.tar.xz | 3 + libwpg.changes | 162 ++++++++++++++++++++++++++++++++++++++++++++ libwpg.spec | 122 +++++++++++++++++++++++++++++++++ 4 files changed, 310 insertions(+) create mode 100644 .gitattributes create mode 100644 libwpg-0.3.4.tar.xz create mode 100644 libwpg.changes create mode 100644 libwpg.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/libwpg-0.3.4.tar.xz b/libwpg-0.3.4.tar.xz new file mode 100644 index 0000000..6a3459c --- /dev/null +++ b/libwpg-0.3.4.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b55fda9440d1e070630eb2487d8b8697cf412c214a27caee9df69cec7c004de3 +size 340428 diff --git a/libwpg.changes b/libwpg.changes new file mode 100644 index 0000000..90388eb --- /dev/null +++ b/libwpg.changes @@ -0,0 +1,162 @@ +------------------------------------------------------------------- +Sat Apr 29 12:31:58 UTC 2023 - Fridrich Strba + +- Update to 0.3.4 + * WPG2: Incomplete implementation of handlePenForeColor + (tdf#155057) + * Correct a problem concerning HAVE_VISIBILITY not defined when + compiling for Windows... + * WPG1: fix vertical position of text line + * WPG1: improve output of aligned text + * WPG1: handle font size + * WPG1: parse more graphic text attrs + * WPG1: make text type 2 handler build again + * Add note for text position + * WPG1: handle text color + * WPG1: parse some bits of text attrs record + * Drop pointless cast + * WPG1: handle line style + * Drop a pointless cast + * WPG1: parse page format record + * WPG1: handle groups + * Fix too small loop variables + +------------------------------------------------------------------- +Fri Jan 28 06:11:56 UTC 2022 - Fridrich Strba + +- Fix license header to correspond SPDX abbreviation + +------------------------------------------------------------------- +Sat Aug 15 22:05:45 UTC 2020 - Dirk Mueller + +- update to 0.3.3: + - Drop obsolete MSVC project files. + - Use --disable-werror instead of --enable-werror as configure + default. + - Fix parsing of 24-bit RGB and 32-bit RGBA bitmaps in WPG2 files. + (tdf#78105) + +------------------------------------------------------------------- +Thu Sep 14 10:42:38 UTC 2017 - tchvatal@suse.com + +- Remove requires that are not needed on the devel pkg + +------------------------------------------------------------------- +Wed Sep 13 09:31:04 UTC 2017 - tchvatal@suse.com + +- Version bump to 0.3.2: + * Require C++11 for build. + * Fix a couple of issues found by oss-fuzz. + * Improve performance of reading image data from WPG2 files. + * Various minor code cleanups. + +------------------------------------------------------------------- +Wed Dec 30 16:38:11 UTC 2015 - fstrba@suse.com + +- Generate manpages for the binaries in libwpg-tools + +------------------------------------------------------------------- +Sat Dec 26 20:56:35 UTC 2015 - fstrba@suse.com + +- Version bump to 0.3.1: + * Fix crash when NULL is passed as input stream. + * Use symbol visibility on Linux. The library only exports public + functions now. + * Fix various crashes and hangs when reading broken files found + with the help of american-fuzzy-lop. + * Fix some warnings found by Coverity. + * Make --help output of all command line tools more + help2man-friendly. + +------------------------------------------------------------------- +Wed Jun 11 09:31:32 UTC 2014 - tchvatal@suse.com + +- Version bump to 0.3.0: + * New release based on librevenge framework + * Variouf fixes and cleanups + +------------------------------------------------------------------- +Sat Jan 25 20:52:06 UTC 2014 - tchvatal@suse.com + +- Cleanup with spec-cleaner and noarch the documentation. + +------------------------------------------------------------------- +Fri Nov 1 09:35:52 UTC 2013 - tchvatal@suse.com + +- Use verbose build, disable werror, drop conditional for docs. + +------------------------------------------------------------------- +Fri Apr 19 07:07:14 UTC 2013 - fridrich.strba@suse.com + +- Upgrade to upstream 0.2.1 + - Add MPL 2.0+ as license under which libwpg is distributed + - Numerous coverity fixes +- Remove integrated patch + +------------------------------------------------------------------- +Tue Apr 16 07:00:09 UTC 2013 - mmeister@suse.com + +- Added url as source. + Please see http://en.opensuse.org/SourceUrls + +------------------------------------------------------------------- +Tue Jan 24 09:40:42 UTC 2012 - jengelh@medozas.de + +- Remove redundant tags/sections (see specfile guidelines) +- SPDX-style license field +- Parallel build with %_smp_mflags +- Adjust rpm group of -tools and (main) to match libwpd + +------------------------------------------------------------------- +Mon Jan 23 18:06:20 UTC 2012 - crrodriguez@opensuse.org + +- Build with -fvisibility-inlines-hidden + +------------------------------------------------------------------- +Tue Oct 4 16:47:46 CEST 2011 - fridrich.strba@suse.com + +- Upgrade to upstream 0.2.1 + - Improvement of line styles and + - General conversion fidelity + +------------------------------------------------------------------- +Mon May 23 17:01:37 UTC 2011 - crrodriguez@opensuse.org + +- Do not include build dates in documentation, messes up build-compare + +------------------------------------------------------------------- +Tue Dec 7 09:22:43 CET 2010 - fstrba@novell.com + +- Upgrade to a new ABI version needed by LibreOffice 3.3.0 (don't run autoreconf which is not needed anymore) + +------------------------------------------------------------------- +Wed Oct 22 16:17:31 CEST 2008 - mrueckert@suse.de + +- fix debug_packages_requires define + +------------------------------------------------------------------- +Fri Aug 1 17:32:35 CEST 2008 - ro@suse.de + +- fix requires for debuginfo package + +------------------------------------------------------------------- +Mon Jul 28 14:11:58 CEST 2008 - mmarek@suse.cz + +- update to 0.1.3 + * bugfixes + * install-docs patch merged + +------------------------------------------------------------------- +Fri Apr 4 10:32:02 CEST 2008 - mmarek@suse.cz + +- rename the library package to libwpg-0_1-1 as required by the + policy (libwpg-0.1.so.1 -> libwpg-0_1-1) +- don't version the devel package after discussion with pmladek + we'll do it only if the need arises + + +------------------------------------------------------------------- +Wed Apr 2 16:52:44 CEST 2008 - mmarek@suse.cz + +- packaged version 0.1.2, based on work by pmladek + diff --git a/libwpg.spec b/libwpg.spec new file mode 100644 index 0000000..51e5f37 --- /dev/null +++ b/libwpg.spec @@ -0,0 +1,122 @@ +# +# spec file for package libwpg +# +# Copyright (c) 2023 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +%define libname libwpg-0_3-3 +Name: libwpg +Version: 0.3.4 +Release: 0 +Summary: Library to read and parse graphics in WordPerfect Graphics format +License: LGPL-2.1-or-later AND MPL-2.0 +Group: Productivity/Publishing/Word +URL: http://libwpg.sourceforge.net/ +Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{name}-%{version}/%{name}-%{version}.tar.xz +BuildRequires: boost-devel +BuildRequires: doxygen +BuildRequires: gcc-c++ +BuildRequires: help2man +BuildRequires: pkgconfig +BuildRequires: xz +BuildRequires: pkgconfig(librevenge-0.0) >= 0.0.0 +BuildRequires: pkgconfig(libwpd-0.10) >= 0.10.0 + +%description +libwpg is a C++ library to read and parse graphics in WPG (WordPerfect +Graphics) format. It is cross-platform, at the moment it can be build +on Microsoft Windows and Linux. + +%package -n %{libname} +Summary: Library to read and parse graphics in WordPerfect Graphics format +Group: System/Libraries + +%description -n %{libname} +libwpg is a C++ library to read and parse graphics in WPG (WordPerfect +Graphics) format. + +%package devel +Summary: Files for Developing with libwpg +Group: Development/Libraries/C and C++ +Requires: %{libname} = %{version} + +%description devel +libwpg is a C++ library to read and parse graphics in WPG (WordPerfect +Graphics) format. It is cross-platform, at the moment it can be build +on Microsoft Windows and Linux. + +This package contains the libwpg development files. + +%package devel-doc +Summary: Documentation for the libwpg API +Group: Documentation/HTML +BuildArch: noarch + +%description devel-doc +This package contains documentation for the libwpg API. + +%package tools +Summary: Tools for converting WordPerfect Graphics files +Group: Productivity/Publishing/Word + +%description tools +Tools to work with graphics in WPG (WordPerfect Graphics) format. + +%prep +%setup -q + +%build +export CXXFLAGS="%{optflags} -fvisibility-inlines-hidden" +%configure \ + --disable-silent-rules \ + --disable-werror \ + --disable-static \ + --docdir=%{_docdir}/%{name} +make %{?_smp_mflags} + +%install +%make_install +find %{buildroot} -type f -name "*.la" -delete -print +# manpages +mkdir -p %{buildroot}%{_mandir}/man1 +for i in wpg2raw wpg2svg; do + LD_LIBRARY_PATH=%{buildroot}%{_libdir} \ + help2man -N -o %{buildroot}%{_mandir}/man1/$i.1 %{buildroot}%{_bindir}/$i +done +# documentation +mkdir -p %{buildroot}%{_docdir}/%{name} +cp -p AUTHORS COPYING.LGPL COPYING.MPL ChangeLog %{buildroot}%{_docdir}/%{name} + +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig + +%files -n %{libname} +%{_libdir}/*.so.* + +%files devel +%{_libdir}/*.so +%{_libdir}/pkgconfig/libwpg*.pc +%{_includedir}/libwpg-* + +%files devel-doc +%doc %{_docdir}/%{name}/html + +%files tools +%{_bindir}/* +%{_mandir}/man1/*.1* +%doc %dir %{_docdir}/%{name} +%doc %{_docdir}/%{name}/[A-Z]* + +%changelog