Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > by-pkgid > 73f449378499a5e2bbd4c364f0f62c17 > files > 3

libofx-0.9.0-3mdv2009.0.src.rpm

%define major 4
%define libname %mklibname ofx %{major}
%define develname %mklibname ofx -d

Summary:	LibOFX library provides support for OFX command responses
Name:		libofx
Version:	0.9.0
Release:	%mkrel 3
Group:		System/Libraries
License:	GPL
URL:		http://libofx.sourceforge.net
Source0:	http://download.sourceforge.net/libofx/%{name}-%{version}.tar.bz2
Patch0:		libofx-gcc43.diff
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	OpenSP-devel
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
This is the LibOFX library.  It is a API designed to allow applications to
very easily support OFX command responses, usually provided by financial
institutions.  See http://www.ofx.net/ofx/default.asp for details and
specification. LibOFX is based on the excellent OpenSP library written by
James Clark, and now part of the OpenJADE http://openjade.sourceforge.net/
project.  OpenSP by itself is not widely distributed.  OpenJADE 1.3.1 includes
a version on OpenSP that will link, however, it has some major problems with
LibOFX and isn't recommended.  Since LibOFX uses the generic interface to
OpenSP, it should be compatible with all recent versions of OpenSP (It has
been developed with OpenSP-1.5pre5).  LibOFX is written in C++, but provides a
C style interface usable transparently from both C and C++ using a single
include file.

%package -n %{libname}
Summary:	Libraries for libofx
Group:		System/Libraries
Requires:	%{name} >= %{version}-%{release}

%description -n %{libname}
This package provides libraries to use libofx.

%package -n %{develname}
Group:		Development/C
Summary:	Libraries needed to develop for libofx
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Requires:	OpenSP-devel
Conflicts:	%{_lib}ofx2-devel < 0.8.2
Provides:	%mklibname ofx 3 -d
Obsoletes:	%mklibname ofx 3 -d

%description -n %{develname}
Libraries needed to develop for libofx.

%prep

%setup -q
%patch0 -p1

%build
# FIXME: better make it lib64 aware in configure script
# disable curl detection
%configure2_5x \
    --with-opensp-libs=%{_libdir} \
    --without-libcurl

%make

%install
rm -rf %{buildroot}

%makeinstall_std

#remove unpackaged files
rm -rf %{buildroot}%{_docdir}/libofx

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog NEWS README totest.txt 
%{_bindir}/*
%{_datadir}/libofx

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%defattr(-,root,root)
%doc doc/html doc/ofx_sample_files
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc


%changelog
* Sat Jun 28 2008 Oden Eriksson <oeriksson@mandriva.com> 0.9.0-3mdv2009.0
+ Revision: 229893
- fix deps
- added a gcc43 patch (gentoo)

  + Thierry Vignaud <tvignaud@mandriva.com>
    - rebuild

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Tue Jan 01 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 0.9.0-1mdv2008.1
+ Revision: 140041
- new license policy
- new devel library policy
- spec file clean
- new version
- bump %%major

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request

* Tue Jul 10 2007 Gustavo Pichorim Boiko <boiko@mandriva.com> 0.8.3-2mdv2008.0
+ Revision: 50807
- Rebuild to fix libosp dependency

* Tue May 29 2007 Frederic Crozat <fcrozat@mandriva.com> 0.8.3-1mdv2008.0
+ Revision: 32526
- Release 0.8.3
- Fix buildrequires and prevent libcurl detection, we don't need to build ofxconnect sample binary


* Fri Dec 29 2006 Frederic Crozat <fcrozat@mandriva.com> 0.8.2-1mdv2007.0
+ Revision: 102598
- Release 0.8.2
- bump major, add conflicts to ease upgrade
- remove patch0, no longer needed
- Import libofx

* Mon Dec 05 2005 Christiaan Welvaart <cjw@daneel.dyndns.org> 0.8.0-2mdk
- add BuildRequires: libcurl-devel

* Fri Dec 02 2005 Götz Waschk <waschk@mandriva.org> 0.8.0-1mdk
- major 2
- New release 0.8.0

* Thu Aug 25 2005 Gwenole Beauchesne <gbeauchesne@mandriva.com> 0.7.0-2mdk
- c++ fixes

* Mon Dec 13 2004 Götz Waschk <waschk@linux-mandrake.com> 0.7.0-1mdk
- major 1
- drop patch
- New release 0.7.0

* Thu Jun 17 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 0.6.6-2mdk
- Rebuild

* Thu Jan 15 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 0.6.6-1mdk
- Release 0.6.6