Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > d87c5909514656b0d6720b8776dbb4a1 > files > 2

wv-1.2.4-3mdv2008.0.src.rpm

%define name wv
%define version 1.2.4
%define real_version %version
%define release %mkrel 3
%define serial 1

%define api_version 1.2
%define lib_major   3
%define lib_name    %mklibname %{name}- %{api_version} %{lib_major}

Summary: MSWord 6/7/8/9 binary file format -> HTML converter
Name: %{name}
Version: %{version}
Release: %{release}
Epoch: %{serial}
License: GPL
Group: Office
URL: http://sourceforge.net/projects/wvware/
Source: http://prdownloads.sourceforge.net/wvware/%{name}-%{real_version}.tar.bz2
BuildRequires: XFree86-devel
BuildRequires: glib2-devel
BuildRequires: libwmf-devel >= 0.2.8
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel 
BuildRequires: libxml2-devel
BuildRequires: libgsf-devel
BuildRoot: %{_tmppath}/%{name}-buildroot
Obsoletes: mswordview 
Provides: mswordview
Requires: tetex-latex
Requires: tetex-dvips

%description
Wv is a program that understands the Microsoft Word 6/7/8/9
binary file format and is able to convert Word
documents into HTML, which can then be read with a browser.

%package -n %{lib_name}
Summary: Library used by wv
Group: System/Libraries
Provides: lib%{name} = %{serial}:%{version}-%{release}

%description -n %{lib_name}
Wv is a program that understands the Microsoft Word 6/7/8/9
binary file format and is able to convert Word
documents into HTML, which can then be read with a browser.

This package provides the library that is used by wv.

%package -n %{lib_name}-devel
Summary: MSWord 6/7/8/9 binary file format -> HTML converter (development)
Group: Development/C
Requires: %{lib_name} = %{serial}:%{version}
Provides: %{name}-devel = %{serial}:%{version}

%description -n %{lib_name}-devel
Wv is a program that understands the Microsoft Word 6/7/8/9
binary file format and is able to convert Word
documents into HTML, which can then be read with a browser.

This is the development package.

%prep
%setup -q -n %{name}-%{version}

%build
CFLAGS="$RPM_OPT_FLAGS" %configure2_5x --with-Magick=/usr/X11R6/include/X11/magick --with-libwmf=/usr --with-expat=/usr --prefix=/usr
make
# uglly hack to remove CVS directory here!
rm -rf `find . -type d -a -name CVS`

%install
rm -rf $RPM_BUILD_ROOT
# manonedir is set to /usr/man/man1, reset it
%makeinstall manonedir=$RPM_BUILD_ROOT/%{_mandir}/man1
# uggly fix for symlink /usr/bin/wvText to wvConvert.
ln -sf wvConvert $RPM_BUILD_ROOT/%{_bindir}/wvText
# the following file seems not to be used by any wv executable.
#cp $RPM_BUILD_DIR/%{name}/config-mswordview $RPM_BUILD_ROOT/usr/lib/mswordview
rm -f notes/decompress/a.out
# make sure libwv.a is in lib directory
# mv $RPM_BUILD_ROOT%{_datadir}/libwv.a $RPM_BUILD_ROOT%{_libdir}/libwv.a

%post -n %{lib_name} -p /sbin/ldconfig

%postun -n %{lib_name} -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README
%attr(755,root,root)      %{_bindir}/wv[A-Z]*
%attr(755,root,root) %dir %{_datadir}/wv
%attr(644,root,root)      %{_datadir}/wv/*.xml
%attr(644,root,root)      %{_datadir}/wv/*.dtd
%attr(755,root,root) %dir %{_datadir}/wv/patterns
%attr(644,root,root)      %{_datadir}/wv/patterns/*
%attr(755,root,root) %dir %{_datadir}/wv/wingdingfont
%attr(644,root,root)      %{_datadir}/wv/wingdingfont/*
%attr(644,root,root)      %{_mandir}/man1/*

%files -n %{lib_name}
%defattr(-,root,root)
%attr(755,root,root)      %{_libdir}/libwv-%{api_version}.so.%{lib_major}*

%files -n %{lib_name}-devel
%defattr(-,root,root)
%attr(755,root,root) %dir %{_includedir}/wv
%attr(644,root,root)      %{_includedir}/wv/*.h
%attr(755,root,root)      %{_libdir}/libwv.so
%attr(644,root,root)      %{_libdir}/libwv.*a
%attr(644,root,root)      %{_libdir}/pkgconfig/wv-1.0.pc




%changelog
* Tue Jun 12 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 1.2.4-3mdv2008.0
+ Revision: 38366
- rebuild for expat


* Mon Jan 29 2007 Götz Waschk <waschk@mandriva.org> 1.2.4-2mdv2007.0
+ Revision: 115126
- fix major
- drop disabled patches

* Sun Jan 28 2007 Jérôme Soyer <saispo@mandriva.org> 1:1.2.4-1mdv2007.1
+ Revision: 114726
- New release 1.2.4
- Import wv

* Thu Jun 22 2006 Götz Waschk <waschk@mandriva.org> 1:1.2.0-5mdv2007.1
- Rebuild

* Wed Jun 21 2006 Götz Waschk <waschk@mandriva.org> 1:1.2.0-5mdk
- Rebuild

* Tue Mar 07 2006 Götz Waschk <waschk@mandriva.org> 1.2.0-4mdk
- rebuild with new libgsf

* Wed Oct 19 2005 Götz Waschk <waschk@mandriva.org> 1.2.0-3mdk
- fix buildrequires

* Tue Oct 18 2005 Götz Waschk <waschk@mandriva.org> 1.2.0-2mdk
- fix buildrequires

* Tue Oct 18 2005 Marcel Pol <mpol@mandrake.org> 1.2.0-1mdk
- 1.2.0
- mkrel
- update api_version and lib_major
- drop P0, changes upstream
- drop P1, afaik it didn't apply anymore anyway

* Sun Sep 18 2005 Götz Waschk <waschk@mandriva.org> 1.0.3-3mdk
- open ole2 files read only

* Tue Jun 14 2005 Götz Waschk <waschk@mandriva.org> 1.0.3-2mdk
- major 3

* Tue Jun 14 2005 Götz Waschk <waschk@mandriva.org> 1.0.3-1mdk
- fix source URL
- New release 1.0.3

* Tue Aug 10 2004 Marcel Pol <mpol@mandrake.org> 1.0.2-1mdk
- 1.0.2
- drop patch2
- increase major

* Fri Jul 30 2004 Marcel Pol <mpol@mandrake.org> 1.0.0-3mdk
- fix provides of devel package

* Mon Jul 26 2004 Marcel Pol <mpol@mandrake.org> 1.0.0-2mdk
- patch2: buffer overflow bugfix

* Tue Jun 01 2004 Marcel Pol <mpol@mandrake.org> 1.0.0-1mdk
- 1.0.0
- updated files section
- libify
- manually set manonedir in %%makeinstall
- require tetex-latex and tetex-dvips for pdf, ps, etc.

* Fri Feb 27 2004 Stew Benedict <sbenedict@mandrakesoft.com> 0.7.4-3mdk
- fix -devel dependencies (epoch)

* Wed Feb 25 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 0.7.4-2mdk
- rebuild && reupload