2007-01-16 00:41:34 +01:00
|
|
|
#
|
2011-11-16 17:22:11 +01:00
|
|
|
# spec file for package wv
|
2007-01-16 00:41:34 +01:00
|
|
|
#
|
2011-11-16 17:22:11 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:41:34 +01:00
|
|
|
#
|
2009-06-19 00:22:39 +02: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-16 00:41:34 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-07-09 02:00:29 +02:00
|
|
|
|
2007-01-16 00:41:34 +01:00
|
|
|
Name: wv
|
2011-11-17 04:38:10 +01:00
|
|
|
%define lname libwv-1_2-1
|
2011-11-16 17:22:11 +01:00
|
|
|
BuildRequires: glib2-devel libgsf-devel libtiff-devel libtool libwmf-devel libxml2-devel pkgconfig
|
2011-11-22 16:34:30 +01:00
|
|
|
License: GPL-2.0+
|
2007-01-16 00:41:34 +01:00
|
|
|
Group: Productivity/Publishing/Word
|
2007-01-18 01:48:25 +01:00
|
|
|
Version: 1.2.2
|
2009-11-02 12:45:19 +01:00
|
|
|
Release: 216
|
2011-11-17 04:38:10 +01:00
|
|
|
Summary: Tools for Importing Microsoft Word (tm) Documents
|
|
|
|
URL: http://wvWare.sourceforge.net/
|
2007-01-18 01:48:25 +01:00
|
|
|
Source: wv-%{version}.tar.gz
|
|
|
|
Patch: wv-1.2.2-automake.patch
|
|
|
|
Patch5: wv-1.0.3-wvText.patch
|
|
|
|
Patch7: wv-1.0.3-pc.patch
|
|
|
|
Patch8: wv-1.2.2-overflow.patch
|
2009-11-02 12:45:19 +01:00
|
|
|
Patch9: %{name}-1.2.2-fiximplicit.patch
|
2007-01-16 00:41:34 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-18 01:48:25 +01:00
|
|
|
Requires: w3m
|
2007-01-16 00:41:34 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
WV is a program that can understand the Microsoft Word 8 binary file
|
|
|
|
format (Office97). It currently converts Word into HTML, which can then
|
|
|
|
be read with a web browser.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Caolan McNamara <Caolan.McNamara@ul.ie>
|
|
|
|
|
2011-11-17 04:38:10 +01:00
|
|
|
%package -n %lname
|
|
|
|
Summary: Library for importing Microsoft Word documents
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
libwv can parse the Microsoft Word 8 binary file format (Office97).
|
|
|
|
|
2007-01-16 00:41:34 +01:00
|
|
|
%package devel
|
2011-11-17 04:38:10 +01:00
|
|
|
Requires: %lname = %version, libgsf-devel libwmf-devel
|
2007-01-16 00:41:34 +01:00
|
|
|
Summary: Static Libraries and Header Files for wv
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description devel
|
2009-11-02 12:45:19 +01:00
|
|
|
Static Libraries and Header Files for wv.
|
2007-01-16 00:41:34 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Caolan McNamara <Caolan.McNamara@ul.ie>
|
|
|
|
|
|
|
|
%prep
|
2008-07-09 02:00:29 +02:00
|
|
|
%setup -q
|
2007-01-18 01:48:25 +01:00
|
|
|
%patch
|
2007-01-16 00:41:34 +01:00
|
|
|
%patch5
|
|
|
|
%patch7
|
|
|
|
%patch8
|
2009-11-02 12:45:19 +01:00
|
|
|
%patch9 -p1
|
2007-01-16 00:41:34 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -f -i --verbose
|
|
|
|
%define warn_flags -Wall -Wstrict-prototypes -Wpointer-arith -Wformat -Wformat-security
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS %{warn_flags} -fno-strict-aliasing -fstack-protector" \
|
2008-07-09 02:00:29 +02:00
|
|
|
%configure --with-libwmf --with-expat --disable-dependency-tracking --disable-static --with-pic
|
|
|
|
%{__make} %{?jobs:-j%jobs}
|
2007-01-16 00:41:34 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT manonedir=%{_mandir}/man1 install
|
2008-07-09 02:00:29 +02:00
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
2007-01-16 00:41:34 +01:00
|
|
|
|
2011-11-17 04:38:10 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2007-01-16 00:41:34 +01:00
|
|
|
|
2011-11-17 04:38:10 +01:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2007-01-16 00:41:34 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/bin/wvAbw
|
|
|
|
/usr/bin/wvCleanLatex
|
|
|
|
/usr/bin/wvConvert
|
|
|
|
/usr/bin/wvDVI
|
|
|
|
/usr/bin/wvHtml
|
|
|
|
/usr/bin/wvLatex
|
|
|
|
/usr/bin/wvMime
|
|
|
|
/usr/bin/wvPDF
|
|
|
|
/usr/bin/wvPS
|
|
|
|
/usr/bin/wvRTF
|
|
|
|
/usr/bin/wvSummary
|
|
|
|
/usr/bin/wvText
|
|
|
|
/usr/bin/wvVersion
|
|
|
|
/usr/bin/wvWare
|
|
|
|
/usr/bin/wvWml
|
|
|
|
/usr/bin/wvDocBook
|
|
|
|
/usr/share/wv
|
|
|
|
%doc %{_mandir}/*/*
|
|
|
|
%doc COPYING README
|
|
|
|
|
2011-11-17 04:38:10 +01:00
|
|
|
%files -n %lname
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libwv-1.2.so.1*
|
|
|
|
|
2007-01-16 00:41:34 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2008-07-09 02:00:29 +02:00
|
|
|
%_libdir/pkgconfig/*
|
2007-01-16 00:41:34 +01:00
|
|
|
/usr/include/wv
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
2008-07-09 02:00:29 +02:00
|
|
|
%changelog
|