2007-01-15 23:41:35 +00:00
|
|
|
#
|
2011-11-29 15:25:10 +00:00
|
|
|
# spec file for package wv2
|
2007-01-15 23:41:35 +00:00
|
|
|
#
|
2022-07-07 13:03:46 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2007-01-15 23:41:35 +00:00
|
|
|
#
|
2009-01-22 01:04:30 +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.
|
|
|
|
|
2022-07-07 13:03:46 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:41:35 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: wv2
|
2010-03-01 00:51:07 +00:00
|
|
|
Version: 0.4.2
|
2012-02-13 13:48:54 +00:00
|
|
|
Release: 0
|
2015-03-07 08:10:25 +00:00
|
|
|
Summary: Library for Importing Microsoft Word (tm) Documents
|
2022-07-07 13:03:46 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2011-11-29 22:33:19 +00:00
|
|
|
Group: Productivity/Publishing/Word
|
2022-07-07 13:03:46 +00:00
|
|
|
URL: https://sourceforge.net/projects/wvware
|
|
|
|
Source0: https://sourceforge.net/projects/wvware/files/%{name}-%{version}.tar.bz2
|
|
|
|
Source1: https://sourceforge.net/projects/wvware/files/%{name}-%{version}.tar.bz2.asc
|
2015-03-05 09:04:13 +00:00
|
|
|
Source2: %{name}.keyring
|
2012-01-09 14:43:10 +00:00
|
|
|
Patch0: glib_include.patch
|
2010-03-01 00:51:07 +00:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libgsf-devel
|
2007-01-15 23:41:35 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
The wv2 library is used to import Microsoft Word documents in koffice
|
|
|
|
for example.
|
|
|
|
|
2010-03-01 00:51:07 +00:00
|
|
|
%package -n libwv2-4
|
2015-03-07 08:10:25 +00:00
|
|
|
Summary: Library for Importing Microsoft Word (tm) Documents
|
2010-03-01 00:51:07 +00:00
|
|
|
Group: System/Libraries
|
2007-01-15 23:41:35 +00:00
|
|
|
|
2010-03-01 00:51:07 +00:00
|
|
|
%description -n libwv2-4
|
|
|
|
The wv2 library is used to import Microsoft Word documents in koffice
|
|
|
|
for example.
|
2007-01-15 23:41:35 +00:00
|
|
|
|
|
|
|
%package devel
|
2015-03-07 08:10:25 +00:00
|
|
|
Summary: Library for Importing Microsoft Word(tm) Documents - development files
|
2011-11-29 22:33:19 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-03-05 09:04:13 +00:00
|
|
|
Requires: lib%{name}-4 = %{version}
|
2010-03-01 00:51:07 +00:00
|
|
|
Requires: libgsf-devel
|
|
|
|
Requires: libstdc++-devel
|
2007-01-15 23:41:35 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The wv2 library is used to import Microsoft Word documents in koffice
|
|
|
|
for example.
|
|
|
|
|
|
|
|
%prep
|
2024-02-20 15:26:49 +00:00
|
|
|
%autosetup -p1
|
2007-01-15 23:41:35 +00:00
|
|
|
|
|
|
|
%build
|
2012-01-22 13:52:13 +00:00
|
|
|
export CXXFLAGS="%optflags -fvisibility-inlines-hidden"
|
2015-03-05 09:04:13 +00:00
|
|
|
# build fails with %%cmake macro
|
|
|
|
cmake \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
|
|
%if "%{_lib}" == "lib64"
|
|
|
|
-DLIB_SUFFIX=64 \
|
|
|
|
%endif
|
|
|
|
|
2012-01-22 13:52:13 +00:00
|
|
|
make VERBOSE=1 %{?_smp_mflags}
|
2007-01-15 23:41:35 +00:00
|
|
|
|
|
|
|
%install
|
2015-03-05 09:04:13 +00:00
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
mkdir -p %{buildroot}%{_defaultdocdir}/wv2/
|
2007-01-15 23:41:35 +00:00
|
|
|
cp -a doc AUTHORS README TODO COPYING.LIB \
|
2015-03-05 09:04:13 +00:00
|
|
|
%{buildroot}%{_defaultdocdir}/wv2/
|
|
|
|
rm -rf %{buildroot}%{_defaultdocdir}/wv2/doc/escher/CVS
|
|
|
|
rm -rf %{buildroot}%{_defaultdocdir}/wv2/doc/CVS
|
|
|
|
rm -rf %{buildroot}%{_defaultdocdir}/wv2/doc/.cvsignore
|
2007-01-15 23:41:35 +00:00
|
|
|
|
2010-03-01 00:51:07 +00:00
|
|
|
%post -n libwv2-4 -p /sbin/ldconfig
|
2007-01-15 23:41:35 +00:00
|
|
|
|
2010-03-01 00:51:07 +00:00
|
|
|
%postun -n libwv2-4 -p /sbin/ldconfig
|
2007-01-15 23:41:35 +00:00
|
|
|
|
2010-03-01 00:51:07 +00:00
|
|
|
%files -n libwv2-4
|
2007-01-15 23:41:35 +00:00
|
|
|
%defattr(-, root, root)
|
2015-03-05 09:04:13 +00:00
|
|
|
%dir %{_defaultdocdir}/wv2
|
2015-03-07 08:10:25 +00:00
|
|
|
%{_defaultdocdir}/wv2/AUTHORS
|
|
|
|
%{_defaultdocdir}/wv2/COPYING.LIB
|
2010-03-01 00:51:07 +00:00
|
|
|
/%{_libdir}/libwv2.so.*
|
2007-01-15 23:41:35 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
2015-03-07 08:10:25 +00:00
|
|
|
%dir %{_defaultdocdir}/wv2
|
|
|
|
%{_defaultdocdir}/wv2/doc
|
|
|
|
%{_defaultdocdir}/wv2/README
|
|
|
|
%{_defaultdocdir}/wv2/TODO
|
2010-03-01 00:51:07 +00:00
|
|
|
%{_bindir}/wv2-config
|
|
|
|
%{_includedir}/wv2
|
|
|
|
%{_libdir}/libwv2.so
|
|
|
|
%{_libdir}/wvWare
|
2008-07-09 00:01:59 +00:00
|
|
|
|
2007-10-23 23:45:52 +00:00
|
|
|
%changelog
|