libHBAAPI2/libHBAAPI2.spec

75 lines
1.8 KiB
RPMSpec

#
# spec file for package libHBAAPI2
#
# Copyright (c) 2015 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/
#
Name: libHBAAPI2
Version: 2.2.10
Release: 0
Summary: SNIA HBAAPI library
License: SUSE-SNIA-1.1
Group: System/Libraries
Url: http://open-fcoe.org/libHBAAPI
Source0: libHBAAPI-v%{version}.tar.xz
Source1: SNIAv1.1.txt
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The SNIA HBA API library
%package devel
Summary: SNIA HBAAPI library
Group: System/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
The SNIA HBA API library
%prep
%setup -n libHBAAPI-v%{version}
cp %{S:1} COPYING
%build
autoreconf --install
%configure --disable-static
make %{?_smp_mflags}
%install
make install DESTDIR="%buildroot"
rm -f "%buildroot/%_libdir"/*.la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc COPYING
%config(noreplace) %{_sysconfdir}/hba.conf
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%changelog