SHA256
6
0
forked from pool/wv
wv/wv.spec
Michal Vyskocil 8f19a7ce34 - Update to 1.2.4 (no changelog available)
* bump soname to libwv-1.2.so.3
- Dropped wv-1.2.2-overflow.patch, fixed upstream
- Reformat spec file, added Source url and URL, use  more macros
  and use pkgconfig() based BuildRequires

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/wv?expand=0&rev=16
2013-10-04 10:10:29 +00:00

134 lines
3.4 KiB
RPMSpec

#
# spec file for package wv
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%global lname libwv-1_2-3
Name: wv
Version: 1.2.4
Release: 0
Summary: Tools for Importing Microsoft Word (tm) Documents
License: GPL-2.0+
Group: Productivity/Publishing/Word
Url: http://wvware.sourceforge.net/
Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0: wv-1.2.2-automake.patch
Patch5: wv-1.0.3-wvText.patch
Patch7: wv-1.0.3-pc.patch
Patch9: wv-1.2.2-fiximplicit.patch
Patch10: wv-strcasecmp.patch
Patch11: wv-gsf.patch
Patch12: wv-noansi.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: w3m
BuildRequires: libtool
BuildRequires: libwmf-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libgsf-1)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(zlib)
%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.
%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).
%package devel
Requires: %lname = %version
Requires: libgsf-devel
Requires: libwmf-devel
Summary: Static Libraries and Header Files for wv
Group: Development/Libraries/C and C++
%description devel
Static Libraries and Header Files for wv.
%prep
%setup -q
%patch0
%patch5
%patch7
%patch9 -p1
%patch10 -p1
%if 0%{?suse_version} > 1230
%patch11 -p1
%endif
%patch12 -p1
%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" \
%configure \
--with-libwmf \
--with-expat \
--disable-dependency-tracking \
--disable-static \
--with-pic
make %{?_smp_mflags}
%install
make DESTDIR=$RPM_BUILD_ROOT manonedir=%{_mandir}/man1 install
rm -f %{buildroot}%{_libdir}/*.la
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING README
%{_bindir}/wvAbw
%{_bindir}/wvCleanLatex
%{_bindir}/wvConvert
%{_bindir}/wvDVI
%{_bindir}/wvHtml
%{_bindir}/wvLatex
%{_bindir}/wvMime
%{_bindir}/wvPDF
%{_bindir}/wvPS
%{_bindir}/wvRTF
%{_bindir}/wvSummary
%{_bindir}/wvText
%{_bindir}/wvVersion
%{_bindir}/wvWare
%{_bindir}/wvWml
%{_bindir}/wvDocBook
%{_datadir}/wv
%doc %{_mandir}/*/*
%files -n %lname
%defattr(-,root,root)
%_libdir/libwv-1.2.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/wv
%{_libdir}/libwv.so
%{_libdir}/pkgconfig/%{name}-1.0.pc
%changelog