369b32a
%define name libvpd
c1ac5e4
%define version 2.1.0
369b32a
369b32a
Name:		%{name}
369b32a
Version:	%{version}
eb284ed
Release:	1%{?dist}
369b32a
Summary:	VPD Database access library for lsvpd
369b32a
369b32a
Group:		System Environment/Libraries
369b32a
License:	LGPLv2+
369b32a
URL:		http://linux-diag.sf.net/Lsvpd.html
369b32a
Source:		http://downloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
369b32a
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
369b32a
c20b5d4
BuildRequires:	sqlite-devel zlib-devel libstdc++-devel
369b32a
369b32a
%description
369b32a
The libvpd package contains the classes that are used to access a vpd database
369b32a
created by vpdupdate in the lsvpd package.
369b32a
369b32a
%package devel
369b32a
Summary:	Header files for libvpd
369b32a
Group:		Development/Libraries
c20b5d4
Requires:	%{name} = %{version}-%{release} sqlite-devel pkgconfig
369b32a
%description devel
369b32a
Contains header files for building with libvpd.
369b32a
369b32a
%prep
369b32a
%setup -q
369b32a
369b32a
%build
369b32a
%configure --disable-static
369b32a
%{__make} %{?_smp_mflags}
369b32a
369b32a
%clean 
369b32a
%{__rm} -rf $RPM_BUILD_ROOT
369b32a
369b32a
%install
369b32a
%{__rm} -rf $RPM_BUILD_ROOT
369b32a
%{__make} install DESTDIR=$RPM_BUILD_ROOT
369b32a
369b32a
%post -p /sbin/ldconfig
369b32a
369b32a
%postun -p /sbin/ldconfig
369b32a
369b32a
%files 
369b32a
%defattr(-,root,root,-)
369b32a
%doc COPYING NEWS README TODO AUTHORS
369b32a
%exclude %{_libdir}/*.la
c1ac5e4
%{_libdir}/libvpd_cxx-2.1.so.*
c1ac5e4
%{_libdir}/libvpd-2.1.so.*
369b32a
369b32a
%files devel
369b32a
%defattr(-,root,root,-)
369b32a
%exclude %{_libdir}/*.la
c20b5d4
%{_includedir}/libvpd-2
369b32a
%{_libdir}/libvpd_cxx.so
369b32a
%{_libdir}/libvpd.so
c20b5d4
%{_libdir}/pkgconfig/libvpd-2.pc
c20b5d4
%{_libdir}/pkgconfig/libvpd_cxx-2.pc
369b32a
369b32a
%changelog
eb284ed
* Mon Mar 17 2008 Eric Munson <ebmunson@us.ibm.com> 2.0.1-1
eb284ed
- Update for libvpd-2.0.1
eb284ed
c4e2ca5
* Tue Feb 26 2008 Eric Munson <ebmunson@us.ibm.com> 2.0.0-2
c4e2ca5
- Updating release number for new build in FC
c4e2ca5
c4e2ca5
* Mon Feb 25 2008 Eric Munson <ebmunson@us.ibm.com> 2.0.0-1
c20b5d4
- Updated library to use sqlite instead of berkeley db.
fd911e1
c4e2ca5
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.5.0-2
c4e2ca5
- Autorebuild for GCC 4.3
c4e2ca5
369b32a
* Mon Jan 7 2008 Eric Munson <ebmunson@us.ibm.com> -1.5.0-1
369b32a
- Moved pkgconfig to devel Requires
369b32a
- Updated %%defattrs to -,root,root,-
369b32a
- Added AUTHORS to %%doc
369b32a
369b32a
* Thu Jan 3 2008 Eric Munson <ebmunson@us.ibm.com> - 1.5.0-0
369b32a
- Updated Requires and Provides fields per fedora community request
369b32a
369b32a
* Fri Dec 7 2007 Brad Peters <bpeters@us.ibm.com> - 1.4.2-0
369b32a
- Added functions to helper_functions class
369b32a
- Mnior changes necessary to support new device discovery method
369b32a
369b32a
* Fri Nov 16 2007 Eric Munson <ebmunson@us.ibm.com> - 1.4.1-1
369b32a
- Removing INSTALL from docs and docs from -devel package
369b32a
- Fixing Makfile.am so libraries have the .so extension
369b32a
- Using %%configure, %%{__make}, and %%{__rm} calls
369b32a
- Changing source URL
369b32a
369b32a
* Wed Oct 31 2007 Eric Munson <ebmunson@us.ibm.com> - 1.4.0-2
369b32a
- Changing files lists for libdirs to match library file names
369b32a
369b32a
* Tue Oct 30 2007 Eric Munson <ebmunson@us.ibm.com> - 1.4.0-1
369b32a
- Adding C Library to files lists.
369b32a
369b32a
* Sat Oct 20 2007 Ralf Corsepius <rc040203@freenet.de>	- 1.3.5-4
369b32a
- Various spec-file fixes.
369b32a
369b32a
* Fri Oct 19 2007 Eric Munson <ebmunson@us.ibm.com> - 1.3.5-3
369b32a
- Removed hard coded /usr/lib from spec file
369b32a
- Install now sets all headers to 644
369b32a
- Updated license