Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > cb2a44453bd69c6654c265a713a70858 > files > 4

pxlib-0.4.3-2mdk.src.rpm

%define libname %mklibname px 0

Summary: A library to read Paradox DB files
Name: pxlib
Version: 0.4.3
Release: 2mdk
License: GPL
Group: System/Libraries
Url: http://pxlib.sourceforge.net/
Source: http://prdownloads.sourceforge.net/pxlib/%{name}-%{version}.tar.bz2
Patch0: pxlib-0.4.3-lib64.patch.bz2
Patch1: pxlib-0.4.3-64bit-fixes.patch.bz2
BuildRoot: %_tmppath/%name-%version-root
BuildRequires: autoconf2.5 >= 2.54
BuildRequires: sqlite-devel
BuildRequires: libgsf-devel
BuildRequires: perl-XML-Parser
BuildRequires: libglib2.0-devel

%description
pxlib is a simply and still small C library to read Paradox DB files. It
supports all versions starting from 3.0. It currently has a very limited set of
functions like to open a DB file, read its header and read every single record.

%package -n %libname
Group: System/Libraries
Summary: A library to read Paradox DB files

%description -n %libname
pxlib is a simply and still small C library to read Paradox DB files. It
supports all versions starting from 3.0. It currently has a very limited set of
functions like to open a DB file, read its header and read every single record.

%package -n %libname-devel
Summary: A library to read Paradox DB files (Development)
Group: Development/C
Requires: %libname = %{version}
Provides: libpx-devel = %{version}-%release

%description -n %libname-devel
pxlib is a simply and still small C library to read Paradox DB files. It
supports all versions starting from 3.0. It currently has a very limited set of
functions like to open a DB file, read its header and read every single record.

%prep
%setup -q
%patch0 -p1 -b .lib64
%patch1 -p1 -b .64bit-fixes
autoconf

%build
%configure2_5x  --with-sqlite --with-gsf
%make

%install
rm -rf ${RPM_BUILD_ROOT}
%makeinstall_std
%find_lang %name

%clean
rm -rf ${RPM_BUILD_ROOT}

%post -n %libname -p /sbin/ldconfig
%postun -n %libname -p /sbin/ldconfig

%files -n %libname -f %name.lang
%defattr(-,root,root)
%doc README AUTHORS ChangeLog
%_libdir/lib*.so.*

%files -n %libname-devel
%defattr(-,root,root)
%_libdir/lib*.so
%_libdir/*.a
%_libdir/*.la
%_libdir/pkgconfig/*
%_includedir/*

%changelog
* Wed Mar  9 2005 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 0.4.3-2mdk
- lib64 & 64-bit fixes

* Tue Jan 04 2005 Lenny Cartier <lenny@mandrakesoft.com> 0.4.3-1mdk
- 0.4.3

* Mon Nov 08 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.4.0-1mdk
- 0.4.0

* Tue Oct 12 2004 Götz Waschk <waschk@linux-mandrake.com> 0.3.1-1mdk
- fix source URL
- New release 0.3.1

* Sun Sep 19 2004 Götz Waschk <waschk@linux-mandrake.com> 0.3.0-2mdk
- fix buildrequires


* Tue Aug 31 2004 Götz Waschk <waschk@linux-mandrake.com> 0.3.0-1mdk
- initial mdk package