2007-01-12 16:13:46 +00:00
|
|
|
#
|
2011-04-21 11:39:27 +00:00
|
|
|
# spec file for package libwpd
|
2007-01-12 16:13:46 +00:00
|
|
|
#
|
2012-01-23 18:42:36 +00:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-12 16:13:46 +00:00
|
|
|
#
|
2008-10-22 23:26:40 +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.
|
|
|
|
|
2007-01-12 16:13:46 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-04-06 01:13:24 +00:00
|
|
|
|
2007-01-12 16:13:46 +00:00
|
|
|
Name: libwpd
|
2008-04-06 01:13:24 +00:00
|
|
|
# note: the main package is empty, it only sets a sane name for the source rpm
|
2010-12-08 13:19:53 +00:00
|
|
|
BuildRequires: doxygen gcc-c++ pkgconfig
|
2010-12-08 13:20:03 +00:00
|
|
|
License: LGPLv2.1+
|
2011-11-29 15:15:59 +00:00
|
|
|
Group: Productivity/Publishing/Word
|
2011-11-29 11:35:44 +00:00
|
|
|
Version: 0.9.4
|
2011-09-01 10:42:14 +00:00
|
|
|
Release: 0
|
2007-01-12 16:13:46 +00:00
|
|
|
Summary: Library for Importing WordPerfect (tm) Documents
|
2008-04-06 01:13:24 +00:00
|
|
|
Source: libwpd-%{version}.tar.bz2
|
2012-01-23 18:42:36 +00:00
|
|
|
Url: http://libwpd.sourceforge.net
|
2007-01-12 16:13:46 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
libwpd is a general purpose library for reading or interpreting data
|
|
|
|
from WordPerfect files. The library is not a stand-alone utility: it is
|
|
|
|
designed to be used by another program (for example, a word processor)
|
|
|
|
as an in-process component.
|
|
|
|
|
2010-12-08 13:19:53 +00:00
|
|
|
%define libname libwpd-0_9-9
|
2011-11-29 15:12:25 +00:00
|
|
|
|
|
|
|
%package -n %libname
|
2008-04-06 01:13:24 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
# remove the old non-versioned package (built in the bs for instance)
|
|
|
|
Obsoletes: libwpd < %version
|
|
|
|
Summary: Library for Importing WordPerfect (tm) Documents
|
|
|
|
|
|
|
|
%description -n %libname
|
|
|
|
libwpd is a general purpose library for reading or interpreting data
|
|
|
|
from WordPerfect files. The library is not a stand-alone utility: it is
|
|
|
|
designed to be used by another program (for example, a word processor)
|
|
|
|
as an in-process component.
|
|
|
|
|
2007-01-12 16:13:46 +00:00
|
|
|
%package devel
|
2011-11-29 15:15:59 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2007-01-12 16:13:46 +00:00
|
|
|
Summary: Library for importing WordPerfect (tm) documents
|
2010-12-08 13:19:53 +00:00
|
|
|
Requires: %{libname} = %{version} libstdc++-devel
|
2007-01-12 16:13:46 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
libwpd is a general purpose library for reading (or, interpreting data
|
|
|
|
from) WordPerfect files. The library is not a stand-alone utility: it
|
|
|
|
is designed to be used by another program (e.g.: a word processor) as
|
|
|
|
an in-process component.
|
|
|
|
|
2008-04-06 01:13:24 +00:00
|
|
|
%package devel-doc
|
2011-11-29 15:15:59 +00:00
|
|
|
Group: Documentation
|
2008-04-06 01:13:24 +00:00
|
|
|
Summary: Documentation for the libwpd API
|
|
|
|
Requires: libwpd-devel
|
|
|
|
|
|
|
|
%description devel-doc
|
|
|
|
This package contains documentation for the libwpd API.
|
|
|
|
|
2007-01-12 16:13:46 +00:00
|
|
|
%package tools
|
|
|
|
Group: Productivity/Publishing/Word
|
|
|
|
Summary: Library for importing WordPerfect (tm) documents
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
Tools to transform WordPerfect Documents into other formats. Currently
|
|
|
|
supported: html, raw, text
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-05-24 07:14:23 +00:00
|
|
|
|
2007-01-12 16:13:46 +00:00
|
|
|
%build
|
2012-01-23 18:42:36 +00:00
|
|
|
export CXXFLAGS="%optflags -fvisibility-inlines-hidden"
|
2008-04-06 01:13:24 +00:00
|
|
|
%configure --disable-static --docdir=%_docdir/%name
|
2011-11-29 15:12:25 +00:00
|
|
|
make %{?_smp_mflags}
|
2007-01-12 16:13:46 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
2008-04-06 01:13:24 +00:00
|
|
|
rm $RPM_BUILD_ROOT%_libdir/*.la
|
2007-01-12 16:13:46 +00:00
|
|
|
|
2008-04-06 01:13:24 +00:00
|
|
|
%post -n %libname -p /sbin/ldconfig
|
2007-01-12 16:13:46 +00:00
|
|
|
|
2008-04-06 01:13:24 +00:00
|
|
|
%postun -n %libname -p /sbin/ldconfig
|
2007-01-12 16:13:46 +00:00
|
|
|
|
2008-04-06 01:13:24 +00:00
|
|
|
%files -n %libname
|
|
|
|
%defattr(-,root,root)
|
2007-01-12 16:13:46 +00:00
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
2008-04-06 01:13:24 +00:00
|
|
|
%defattr(-,root,root)
|
2007-01-12 16:13:46 +00:00
|
|
|
%{_libdir}/*.so
|
2008-04-06 01:13:24 +00:00
|
|
|
%{_libdir}/pkgconfig/libwpd*.pc
|
|
|
|
%{_includedir}/libwpd-*
|
|
|
|
|
|
|
|
%files devel-doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %dir %{_docdir}/%{name}
|
|
|
|
%doc %{_docdir}/%{name}/html
|
|
|
|
%doc %{_docdir}/%{name}/libwpd.*
|
2007-01-12 16:13:46 +00:00
|
|
|
|
|
|
|
%files tools
|
2008-04-06 01:13:24 +00:00
|
|
|
%defattr(-,root,root)
|
2007-01-12 16:13:46 +00:00
|
|
|
%{_bindir}/*
|
2008-04-06 01:13:24 +00:00
|
|
|
%doc %dir %{_docdir}/%{name}
|
2010-12-08 13:19:53 +00:00
|
|
|
%doc ChangeLog
|
|
|
|
%doc COPYING
|
|
|
|
%doc CREDITS
|
|
|
|
%doc NEWS
|
|
|
|
%doc TODO
|
2007-11-26 19:49:49 +00:00
|
|
|
|
2007-03-22 09:55:58 +00:00
|
|
|
%changelog
|