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
|
|
|
#
|
2013-04-16 10:44:25 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2008-04-09 02:42:26 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-04-16 10:44:25 +00:00
|
|
|
|
2008-04-09 02:42:26 +00:00
|
|
|
Name: libwpg
|
|
|
|
BuildRequires: doxygen
|
2012-01-29 22:08:05 +00:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libwpd-devel >= 0.9.0
|
|
|
|
BuildRequires: pkgconfig
|
2013-04-19 07:28:01 +00:00
|
|
|
BuildRequires: xz
|
2008-04-09 02:42:26 +00:00
|
|
|
Summary: Library to read and parse graphics in WordPerfect Graphics format
|
2013-04-19 07:28:01 +00:00
|
|
|
License: LGPL-2.1+ and MPL-2.0+
|
2012-01-24 10:07:54 +00:00
|
|
|
Group: Productivity/Publishing/Word
|
2013-04-19 07:28:01 +00:00
|
|
|
Version: 0.2.2
|
2012-01-29 22:08:05 +00:00
|
|
|
Release: 0
|
2008-04-09 02:42:26 +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
|
2008-04-09 02:42:26 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2010-12-08 16:30:57 +00:00
|
|
|
%define libname libwpg-0_2-2
|
2012-01-24 10:07:54 +00:00
|
|
|
|
|
|
|
%package -n %libname
|
2008-04-09 02:42:26 +00:00
|
|
|
# remove the old non-versioned package (built in the bs for instance)
|
|
|
|
Obsoletes: libwpg < %version
|
|
|
|
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++
|
|
|
|
Provides: libwpg-devel = %version-%release
|
2013-04-16 10:44:25 +00:00
|
|
|
Requires: %libname = %version
|
|
|
|
Requires: libwpd-devel
|
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
|
|
|
|
|
|
|
|
%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
|
2012-01-23 18:41:24 +00:00
|
|
|
export CXXFLAGS="%optflags -fvisibility-inlines-hidden"
|
2013-11-01 09:35:35 +00:00
|
|
|
%configure \
|
|
|
|
--disable-werror \
|
|
|
|
--disable-static \
|
|
|
|
--docdir=%_docdir/%name
|
|
|
|
make %{?_smp_mflags} V=1
|
2008-04-09 02:42:26 +00:00
|
|
|
|
|
|
|
%install
|
2013-11-01 09:35:35 +00:00
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
rm %{buildroot}%_libdir/*.la
|
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
|
|
|
|
|
|
|
%post -n %libname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %libname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %libname
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/libwpg*.pc
|
|
|
|
%{_includedir}/libwpg-*
|
|
|
|
|
|
|
|
%files devel-doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc %{_docdir}/%{name}/html
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/*
|
|
|
|
%doc %dir %{_docdir}/%{name}
|
|
|
|
%doc %{_docdir}/%{name}/[A-Z]*
|
|
|
|
|
|
|
|
%changelog
|