diff --git a/.libhbaapi.metadata b/.libhbaapi.metadata new file mode 100644 index 0000000..88db56c --- /dev/null +++ b/.libhbaapi.metadata @@ -0,0 +1 @@ +113a7eeded5127735b3394aa6bc989c24e3ae90f SOURCES/libhbaapi-2.2.9.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/libhbaapi-2.2.9-dl-linking.patch b/SOURCES/libhbaapi-2.2.9-dl-linking.patch new file mode 100644 index 0000000..e491fca --- /dev/null +++ b/SOURCES/libhbaapi-2.2.9-dl-linking.patch @@ -0,0 +1,13 @@ +diff --git a/configure.ac b/configure.ac +index 7d41812..27501c1 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -6,6 +6,8 @@ AM_INIT_AUTOMAKE([-Wall -Werror foreign]) + AC_PROG_CC + AC_PROG_LIBTOOL + ++AC_CHECK_LIB(dl, dlopen) ++ + AC_CONFIG_FILES([Makefile HBAAPI.pc]) + AC_OUTPUT + diff --git a/SPECS/libhbaapi.spec b/SPECS/libhbaapi.spec new file mode 100644 index 0000000..2c0e19a --- /dev/null +++ b/SPECS/libhbaapi.spec @@ -0,0 +1,116 @@ +Name: libhbaapi +Version: 2.2.9 +Release: 3%{?dist} +Summary: SNIA HBAAPI library +Group: System Environment/Libraries +License: SNIA +URL: http://open-fcoe.org/ +# This source was cloned from upstream git (libHBAAPI) +Source: %{name}-%{version}.tar.gz +Patch0: libhbaapi-2.2.9-dl-linking.patch +BuildRequires: automake libtool + +%description +The SNIA HBA API library. C-level project to manage +Fibre Channel Host Bus Adapters. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: pkgconfig + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%prep +%setup +%patch0 -p1 -b .ld-linking + +%build +./bootstrap.sh +%configure --disable-static +make %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} +find %{buildroot} -name '*.la' -exec rm -f {} ';' + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%doc COPYING +%config(noreplace) %{_sysconfdir}/hba.conf +%{_libdir}/*.so.* + +%files devel +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc + +%changelog +* Wed Jul 31 2013 Petr Šabata - 2.2.9-3 +- Make the devel subpackage arch-dependent + +* Thu Jul 11 2013 Petr Šabata - 2.2.9-2 +- Link against libdl + +* Tue Jun 04 2013 Petr Šabata - 2.2.9-1 +- 2.2.9 bump + +* Thu Feb 14 2013 Fedora Release Engineering - 2.2.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Oct 04 2012 Petr Šabata - 2.2.6-1 +- Migrate to the Open-FCoE.org fork + +* Thu Jul 19 2012 Fedora Release Engineering - 2.2-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jan 26 2012 Petr Šabata - 2.2-14 +- Update to hbaapi_build 2.2.5 + +* Fri Jan 13 2012 Fedora Release Engineering - 2.2-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Jul 07 2011 Petr Sabata - 2.2-12 +- Update to hbaapi_build 2.2.4 +- Remove now obsolete Buildroot and defattr + +* Tue Feb 08 2011 Fedora Release Engineering - 2.2-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Mar 16 2010 Jan Zeleny - 2.2-10 +- updated hbaapi_build to 2.2.2 + +* Wed Nov 04 2009 Jan Zeleny - 2.2-9 +- fixed linking with libdl + +* Thu Jul 30 2009 Jan Zeleny - 2.2-8 +- added libtool to BuildRequires + +* Thu Jul 30 2009 Jan Zeleny - 2.2-7 +- added automake to BuildRequires + +* Thu Jul 30 2009 Jan Zeleny - 2.2-6 +- rebase of hbaapi_build code + +* Fri Jul 24 2009 Fedora Release Engineering - 2.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Apr 01 2009 Jan Zeleny - 2.2-4 +- added some info to description line +- replaced unoficial build source tarball with official one + +* Tue Mar 31 2009 Jan Zeleny - 2.2-3 +- minor changes in spec file - filenames change, removal of + duplicate patch files (included in build source tarball) + +* Thu Mar 12 2009 Jan Zeleny - 2.2-2 +- correction of patches' names to correct format + +* Tue Feb 24 2009 Chris Leech - 2.2-1 +- initial packaging of hbaapi 2.2