File libvpd2.spec of Package libvpd2
#
# spec file for package libvpd2
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libvpd2
Version: 2.0.3
Release: 13
BuildRequires: gcc-c++ libtool sqlite3-devel zlib-devel
Summary: VPD Database access library for lsvpd
Group: Development/Libraries/Other
License: LGPLv2.1+
Url: http://linux-diag.sourceforge.net/Lsvpd.html
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: libvpd-%{version}.tar.bz2
Source2: baselibs.conf
Patch1: libvpd.return-value.patch
Patch2: libvpd-pkg.patch
Patch3: libvpd.async.patch
%description
The libvpd_cxx package contains the classes that are used to access a
vpd database created by vpdupdate in the lsvpd package.
Authors:
--------
Eric Munson <ebmunson@us.ibm.com>
Brad Peters <bpeters@us.ibm.com>
%package devel
License: LGPLv2.1+
Summary: VPD Database access library for lsvpd
Group: Development/Languages/C and C++
Requires: %{name} = %{version}
Requires: sqlite3-devel
AutoReqProv: on
%description devel
The libvpd-devel package contains development libraries and header
files that are used to access a vpd database created by vpdupdate in
the lsvpd package.
Authors:
--------
Eric Munson <ebmunson@us.ibm.com>
Brad Peters <bpeters@us.ibm.com>
%prep
%setup -q -n libvpd-%{version}
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
autoreconf -fi
%configure \
--prefix=%{_prefix}/ \
--disable-static
make %{?jobs:-j%jobs}
%clean
rm -rf $RPM_BUILD_ROOT
%install
make install DESTDIR=$RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%doc COPYING NEWS README TODO
%exclude %{_libdir}/*.la
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%changelog