Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > affbcae652a2709c3e0752f75750e2e5 > files > 3

libole2-0.2.4-4mdk.src.rpm

# Note that this is NOT a relocatable package
%define libname ole2
%define version	0.2.4
%define release 4mdk
%define lib_major 0
%define lib_name %mklibname %{libname} %{lib_major}

Summary: Libole2 library
Name: lib%libname
Version: %version
Release: %release
License: LGPL
Group: System/Libraries
Source: ftp://ftp.gnome.org/pub/GNOME/unstable/sources/libole2/libole2-%{version}.tar.bz2
# (fc) 0.2.4-2mdk Fix cflags and ldflags for gcc 3.2 in libole2-config
Patch0: libole2-0.2.4-gcc32.patch.bz2
BuildRequires:	glib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-root
URL: ftp://ftp.gnome.org/pub/GNOME/unstable/sources/libole2/

%description
The applications today needs store multiple type of data.
One way to do it is using a filesystem in a file.
OLE2-developers used this approach.

Inside a OLE2 file, there are streams (files) and directories.
Using libole2 is easy to travel through such filesystem-in-a-file,
and create, read, write or remove files, and create or remove
directories.

%package -n %{lib_name}
Summary: Libole2 library
Group: System/Libraries
Obsoletes: libole2
Provides: libole2

%description -n %{lib_name}
The applications today needs store multiple type of data.
One way to do it is using a filesystem in a file.
OLE2-developers used this approach.

Inside a OLE2 file, there are streams (files) and directories.
Using libole2 is easy to travel through such filesystem-in-a-file,
and create, read, write or remove files, and create or remove
directories.

%package -n %{lib_name}-devel
Summary: Libraries, includes, etc to develop libole2 applications
Group: Development/Other
Requires: %{lib_name} = %{version}
Provides: libole-devel = %{version}-%{release}
Provides: %{name}-devel = %{version}-%{release}

%description -n %{lib_name}-devel
Libraries, include files, etc you can use to develop libole2 applications.

%prep
%setup -q
%patch0 -p1 -b .gcc32

%build
%configure2_5x
%make

%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
%makeinstall

cd $RPM_BUILD_ROOT%{_libdir} 
ln -s libgnomeole2.so.0.0.0 libole2.so.0.0.0
ln -s libgnomeole2.so.0 libole2.so.0
cd ..

%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

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

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

%files -n %{lib_name}
%defattr(-, root, root)
%doc AUTHORS ChangeLog INSTALL NEWS README COPYING
%{_libdir}/lib*.so.*

%files -n %{lib_name}-devel
%defattr(-, root, root)
%doc %{_datadir}/libole2
%{_libdir}/lib*.so
%{_bindir}/*
%{_libdir}/*a
%{_includedir}/*
%{_datadir}/aclocal/*
%{_libdir}/*.sh

%changelog
* Mon Sep  1 2003 Frederic Lepied <flepied@mandrakesoft.com> 0.2.4-4mdk
- mklibname

* Tue Jul 22 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 0.2.4-3mdk
- rebuild

* Tue Nov  5 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 0.2.4-2mdk
- Patch0: Fix cflags and ldflags for gcc 3.2 in libole2-config

* Fri Nov  9 2001 Renaud Chaillat <rchaillat@mandrakesoft.com> 0.2.4-1mdk
- release 0.2.4 needed by gnumeric 0.75

* Wed Aug 22 2001 dam's <damien@mandrakesoft.com> 0.2.3-4mdk
- added Provides.

* Mon Aug 13 2001 dam's <damien@mandrakesoft.com> 0.2.3-3mdk
- rebuilt

* Wed Jul 11 2001 Stefan van der Eijk <stefan@eijk.nu> 0.2.3-2mdk
- BuildRequires:	glib-devel

* Mon Jun 11 2001 Renaud Chaillat <rchaillat@mandrakesoft.com> 0.2.3-1mdk
- new version for gnumeric 0.65

* Wed Nov 29 2000 dam's <damien@mandrakesoft.com> 0.1.7-3mdk
- new lib policy

* Fri Nov 24 2000 dam's <damien@mandrakesoft.com> 0.1.7-2mdk
- corrected version dependencies
- capitalized summary to make rpmlint happy

* Tue Nov 14 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 0.1.7-1mdk
- new and shiny source.

* Fri Jul 21 2000 dam's <damien@mandrakesoft.com> 0.1.6-5mdk
- BM

* Tue Jul 18 2000 dam's <damien@mandrakesoft.com> 0.1.6-4mdk
- incorporated : Reinhard Katzmann <reinhard@suamor.de>
		- added some docs

* Tue Jul 18 2000 dam's <damien@mandrakesoft.com> 0.1.6-3mdk
- corrected links.
- provides libole2.so.0 & libole2.so.0.0.0

* Tue Jul 11 2000 dam's <damien@mandrakesoft.com> 0.1.6-2mdk
- made link to be used with gnumeric.
- chmouelization.

* Tue Jul  4 2000 dam's <damien@mandrakesoft.com> 0.1.6-1mdk
- updated.
- spec cleanup.

* Wed Jun 21 2000 dam's <damien@mandrakesoft.com> 0.1.4-1mdk
- built first spec.
- mandrake adaptation.