Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > by-pkgid > 6e6fa5f3359f2198579c7a26d0fca827 > files > 3

xlhtml-0.5-5mdk.src.rpm

%define name xlhtml
%define version 0.5
%define release 5

Name:         %{name}
Version:      %{version}
Release:      %mkrel %{release}
License:      GPL
Group:        Text tools
Requires:     xlhtml-cole
Summary:      Excel 95 and later file converter
URL:          http://chicago.sourceforge.net/xlhtml/
Source:       %{name}-%{version}.tar.bz2
Patch:        %{name}-%{version}.diff.bz2
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Buildrequires: automake
%if %mdkversion >= 1020
BuildRequires:  multiarch-utils >= 1.0.3
%endif

%description
xlHtml is an Excel 95 and later file converter. Its html output can be
used as a Netscape Plug-in to let you view xls e-mail attachments. It
can also extract regions of a spreadsheet and convert the spreadsheet
to pure text rather than html.


%package -n xlhtml-cole
Summary:      Free C OLE library
Group:        Development/C++
Autoreqprov:  on
#Provides:     xlhtml-cole

%description -n xlhtml-cole
Using cole, you can access Microsoft "Structured Storage" files. The
most popular Microsoft programs generate "Structured Storage" files,
including the Microsoft suite for offices. StarDivision's suite
(StarOffice) generates "Structured Storage" files, too. FlashPix file
format is "Structured Storage", too.


%prep
%setup
%patch

mv ppthtml/README README-ppthtml

%build
libtoolize --force
aclocal
autoconf
rm -f missing # Get newest from automake
#touch README
automake -a
./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir}
make
make -C cole/utils

%install
make DESTDIR=$RPM_BUILD_ROOT install
# xlhtml-cole
install -m 755 cole/cole-config $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT/%{_includedir}/cole
install cole/cole.h  $RPM_BUILD_ROOT/%{_includedir}/cole
install cole/utils/cole_extract $RPM_BUILD_ROOT/%{_bindir}
install cole/utils/cole_isfs $RPM_BUILD_ROOT/%{_bindir}
install cole/utils/cole_isfs_fast $RPM_BUILD_ROOT/%{_bindir}
install cole/utils/cole_tree $RPM_BUILD_ROOT/%{_bindir}
%if %mdkversion >= 1020
%multiarch_binaries %{buildroot}%{_bindir}/cole-config
%endif

%clean
rm -rf $RPM_BUILD_ROOT 

%files
%defattr(-,root,root)
%doc xlhtml/TODO xlhtml/README README-ppthtml
#%doc xlhtml/contrib/*.html
#%doc xlhtml/contrib/*.txt
%{_bindir}/nsopen
%{_bindir}/nspptview
%{_bindir}/nsxlview
%{_bindir}/ppthtml
%{_bindir}/xlhtml
%{_mandir}/*/*

%post -n xlhtml-cole -p /sbin/ldconfig

%postun -n xlhtml-cole -p /sbin/ldconfig

%files -n xlhtml-cole
%defattr(-,root,root)
%doc AUTHORS COPYING INSTALL ChangeLog NEWS cole/TODO README
%if %mdkversion >= 1020
%multiarch %{multiarch_bindir}/cole-config
%endif
%{_bindir}/cole-config
%{_bindir}/cole_extract
%{_bindir}/cole_isfs
%{_bindir}/cole_isfs_fast
%{_bindir}/cole_tree
%{_includedir}/cole
%{_libdir}/libcole.*
#/usr/share/aclocal/cole.m4

%changelog
* Fri Sep 16 2005 Gaetan Lehmann <gaetan.lehmann@jouy.inra.fr> 0.5-5mdk
- rebuild

* Wed Jul  6 2005 Gaetan Lehmann <gaetan.lehmann@jouy.inra.fr> 0.5-4mdk
- really fix url :-/

* Wed Jul  6 2005 Gaetan Lehmann <gaetan.lehmann@jouy.inra.fr> 0.5-3mdk
- fix url (bug #16708)
- use mkrel

* Sat Apr 16 2005 Giuseppe Ghibò <ghibo@mandriva.com> 0.5-2mdk
- %%multiarch.

* Tue Jan 18 2005 Gaetan Lehmann <gaetan.lehmann@jouy.inra.fr> 0.5-1mdk
- initial contrib

* Sun Jan 11 2004 - adrian@suse.de
- add %%defattr and %%run_ldconfig
* Thu Jul 24 2003 - tcrhak@suse.cz
- update to version 0.5
* Tue Jun 17 2003 - ro@suse.de
- fix filelist
* Mon Jan 13 2003 - tcrhak@suse.cz
- update to version 0.4
* Tue Sep 17 2002 - ro@suse.de
- removed bogus self-provides
* Fri May 10 2002 - tcrhak@suse.cz
- fixed for 64 bit platforms
* Tue Apr 02 2002 - ro@suse.de
- build with new automake
* Thu Mar 21 2002 - tcrhak@suse.cz
- added directory /usr/include/cole to filelist of xlhtml-cole
* Thu Oct 04 2001 - schwab@suse.de
- Remove bogus definition of size_t.
- Fix libtool/automake clashes.
* Tue Aug 21 2001 - dan@suse.cz
- initial version