2008-04-09 02:42:26 +00:00
|
|
|
#
|
2011-05-24 07:14:50 +00:00
|
|
|
# spec file for package libwpg
|
2008-04-09 02:42:26 +00:00
|
|
|
#
|
2022-01-28 06:12:26 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2008-04-09 02:42:26 +00:00
|
|
|
#
|
2008-10-22 23:26:55 +00:00
|
|
|
# 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.
|
|
|
|
|
2020-08-16 07:56:53 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-04-09 02:42:26 +00:00
|
|
|
#
|
|
|
|
|
2013-04-16 10:44:25 +00:00
|
|
|
|
2017-09-13 10:48:00 +00:00
|
|
|
%define libname libwpg-0_3-3
|
2008-04-09 02:42:26 +00:00
|
|
|
Name: libwpg
|
2020-08-16 07:56:53 +00:00
|
|
|
Version: 0.3.3
|
2014-01-25 20:52:23 +00:00
|
|
|
Release: 0
|
2008-04-09 02:42:26 +00:00
|
|
|
Summary: Library to read and parse graphics in WordPerfect Graphics format
|
2022-01-28 06:12:26 +00:00
|
|
|
License: LGPL-2.1-or-later AND MPL-2.0
|
2012-01-24 10:07:54 +00:00
|
|
|
Group: Productivity/Publishing/Word
|
2020-08-16 07:56:53 +00:00
|
|
|
URL: http://libwpg.sourceforge.net/
|
2013-04-19 07:28:01 +00:00
|
|
|
Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{name}-%{version}/%{name}-%{version}.tar.xz
|
2014-01-25 20:52:23 +00:00
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: gcc-c++
|
2015-12-30 16:42:35 +00:00
|
|
|
BuildRequires: help2man
|
2017-09-13 10:48:00 +00:00
|
|
|
BuildRequires: pkgconfig
|
2014-01-25 20:52:23 +00:00
|
|
|
BuildRequires: xz
|
2017-09-13 10:48:00 +00:00
|
|
|
BuildRequires: pkgconfig(librevenge-0.0) >= 0.0.0
|
|
|
|
BuildRequires: pkgconfig(libwpd-0.10) >= 0.10.0
|
2008-04-09 02:42:26 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2014-01-25 20:52:23 +00:00
|
|
|
%package -n %{libname}
|
2008-04-09 02:42:26 +00:00
|
|
|
Summary: Library to read and parse graphics in WordPerfect Graphics format
|
2017-09-13 10:48:00 +00:00
|
|
|
Group: System/Libraries
|
2008-04-09 02:42:26 +00:00
|
|
|
|
2014-01-25 20:52:23 +00:00
|
|
|
%description -n %{libname}
|
2008-04-09 02:42:26 +00:00
|
|
|
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++
|
2014-01-25 20:52:23 +00:00
|
|
|
Requires: %{libname} = %{version}
|
2008-04-09 02:42:26 +00:00
|
|
|
|
|
|
|
%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
|
2014-01-25 20:52:23 +00:00
|
|
|
BuildArch: noarch
|
2008-04-09 02:42:26 +00:00
|
|
|
|
|
|
|
%description devel-doc
|
|
|
|
This package contains documentation for the libwpg API.
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
Summary: Tools for converting WordPerfect Graphics files
|
2012-01-24 10:07:54 +00:00
|
|
|
Group: Productivity/Publishing/Word
|
2008-04-09 02:42:26 +00:00
|
|
|
|
|
|
|
%description tools
|
|
|
|
Tools to work with graphics in WPG (WordPerfect Graphics) format.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-05-24 07:14:50 +00:00
|
|
|
|
2008-04-09 02:42:26 +00:00
|
|
|
%build
|
2014-01-25 20:52:23 +00:00
|
|
|
export CXXFLAGS="%{optflags} -fvisibility-inlines-hidden"
|
2013-11-01 09:35:35 +00:00
|
|
|
%configure \
|
2017-09-13 10:48:00 +00:00
|
|
|
--disable-silent-rules \
|
2013-11-01 09:35:35 +00:00
|
|
|
--disable-werror \
|
|
|
|
--disable-static \
|
2014-01-25 20:52:23 +00:00
|
|
|
--docdir=%{_docdir}/%{name}
|
2017-09-13 10:48:00 +00:00
|
|
|
make %{?_smp_mflags}
|
2008-04-09 02:42:26 +00:00
|
|
|
|
|
|
|
%install
|
2017-09-13 10:48:00 +00:00
|
|
|
%make_install
|
2014-01-25 20:52:23 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2015-12-30 16:42:35 +00:00
|
|
|
# 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
|
2008-04-09 02:42:26 +00:00
|
|
|
# documentation
|
2013-11-01 09:35:35 +00:00
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
|
|
|
cp -p AUTHORS COPYING.LGPL COPYING.MPL ChangeLog %{buildroot}%{_docdir}/%{name}
|
2008-04-09 02:42:26 +00:00
|
|
|
|
2014-01-25 20:52:23 +00:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2008-04-09 02:42:26 +00:00
|
|
|
|
2014-01-25 20:52:23 +00:00
|
|
|
%files -n %{libname}
|
2008-04-09 02:42:26 +00:00
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/libwpg*.pc
|
|
|
|
%{_includedir}/libwpg-*
|
|
|
|
|
|
|
|
%files devel-doc
|
|
|
|
%doc %{_docdir}/%{name}/html
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
%{_bindir}/*
|
2015-12-30 16:42:35 +00:00
|
|
|
%{_mandir}/man1/*.1*
|
2008-04-09 02:42:26 +00:00
|
|
|
%doc %dir %{_docdir}/%{name}
|
|
|
|
%doc %{_docdir}/%{name}/[A-Z]*
|
|
|
|
|
|
|
|
%changelog
|