File libHBAAPI2.spec of Package libHBAAPI2
#
# spec file for package libHBAAPI2 (Version 2.2.1)
#
# Copyright (c) 2010 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: libHBAAPI2
Version: 2.2.1
Release: 2
Summary: SNIA HBAAPI library
Group: System/Libraries
License: Other uncritical OpenSource License
Url: http://www.sourceforge.net/projects/hbaapi
Source0: libHBAAPI-v%{version}.tar.bz2
Source1: SNIAv1.1.txt
Patch0: libHBAAPI-makefile-fixup
Patch1: libHBAAPI-build-fixes
BuildRequires: automake pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The SNIA HBA API library
%package devel
License: Other uncritical OpenSource License
Summary: SNIA HBAAPI library
Group: System/Libraries
Requires: %{name} = %{version}-%{release} pkgconfig
%description devel
The SNIA HBA API library
%prep
%setup -n libHBAAPI-v%{version}
%patch0 -p1
%patch1 -p1
cp %{S:1} COPYING
%build
autoreconf --install
%configure --disable-static
make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc readme.txt
%doc COPYING
%config(noreplace) %{_sysconfdir}/hba.conf
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%changelog