File libvpd2.spec of Package libvpd2
#
# spec file for package libvpd2
#
# Copyright (c) 2015 SUSE LINUX 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/
#
Name: libvpd2
Version: 2.2.4
Release: 0
Summary: VPD Database access library for lsvpd
License: LGPL-2.1+
Group: Development/Libraries/Other
Url: http://linux-diag.sourceforge.net/Lsvpd.html
Source: http://downloads.sourceforge.net/project/linux-diag/libvpd/%{version}/libvpd-%{version}.tar.gz
Source2: baselibs.conf
Patch1: libvpd2.makefile.patch
Patch3: libvpd.async.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: sqlite3-devel
BuildRequires: udev
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The libvpd_cxx package contains the classes that are used to access a
vpd database created by vpdupdate in the lsvpd package.
%package devel
Summary: VPD Database access library for lsvpd
Group: Development/Languages/C and C++
Requires: %{name} = %{version}
Requires: sqlite3-devel
%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.
%prep
%setup -q -n libvpd-%{version}
%patch1 -p1
%patch3 -p1
%build
autoreconf -fiv
%configure \
--disable-static
make %{?_smp_mflags}
%install
%make_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/*.so.*
/%{_udevrulesdir}/90-vpdupdate.rules
%dir %{_localstatedir}/lib/lsvpd
%{_localstatedir}/lib/lsvpd/run.vpdupdate
%files devel
%defattr(-,root,root)
%doc COPYING README
%exclude %{_libdir}/*.la
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%changelog