rpms/libhbalinux/devel libhbalinux-1.0.7-conf.patch, NONE, 1.1 libhbalinux.spec, NONE, 1.1
Jan Zeleny
jzeleny at fedoraproject.org
Fri Apr 10 06:44:19 UTC 2009
- Previous message (by thread): rpms/skyviewer/F-10 skyviewer-license.txt, NONE, 1.1 skyviewer.desktop, NONE, 1.1 skyviewer.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/libhbalinux/devel .cvsignore,1.1,1.2 sources,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: jzeleny
Update of /cvs/extras/rpms/libhbalinux/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv16005
Added Files:
libhbalinux-1.0.7-conf.patch libhbalinux.spec
Log Message:
Initial import of libhbalinux (#489962), removed ldconfig according to
suggestion of reviewer in bugzilla
libhbalinux-1.0.7-conf.patch:
--- NEW FILE libhbalinux-1.0.7-conf.patch ---
--- libhbalinux-1.0.7/Makefile.am 2009-03-27 21:40:12.000000000 +0100
+++ libhbalinux-1.0.7/Makefile.am.conf 2009-04-01 16:38:02.000000000 +0200
@@ -10,22 +10,3 @@ libhbalinux_la_LIBADD = $(PCIACCESS_LIBS
dist_noinst_DATA = README COPYING INSTALL libhbalinux.spec
-install-data-hook: libhbalinux.la
- . $<; \
- ORG=org.open-fcoe.libhbalinux; \
- LIB=${libdir}/$${dlname}; \
- STR="$$ORG $$LIB"; \
- CONF=${sysconfdir}/hba.conf; \
- if test -f $$CONF; then \
- grep -E -q ^[[:space:]]*$$ORG[[:space:]]+$$LIB $$CONF; \
- if test $$? -ne 0; then \
- echo $$STR >> $$CONF; \
- else \
- echo "** $$CONF already configured"; \
- echo "** system configuration not updated"; \
- fi; \
- else \
- echo "** WARNING: $$CONF does not exist"; \
- echo "** system configuration not updated"; \
- fi
-
--- libhbalinux-1.0.7/Makefile.in 2009-03-27 21:41:20.000000000 +0100
+++ libhbalinux-1.0.7/Makefile.in.conf 2009-04-01 17:30:28.000000000 +0200
@@ -623,25 +623,6 @@ uninstall-am: uninstall-libLTLIBRARIES
mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
uninstall-am uninstall-libLTLIBRARIES
-
-install-data-hook: libhbalinux.la
- . $<; \
- ORG=org.open-fcoe.libhbalinux; \
- LIB=${libdir}/$${dlname}; \
- STR="$$ORG $$LIB"; \
- CONF=${sysconfdir}/hba.conf; \
- if test -f $$CONF; then \
- grep -E -q ^[[:space:]]*$$ORG[[:space:]]+$$LIB $$CONF; \
- if test $$? -ne 0; then \
- echo $$STR >> $$CONF; \
- else \
- echo "** $$CONF already configured"; \
- echo "** system configuration not updated"; \
- fi; \
- else \
- echo "** WARNING: $$CONF does not exist"; \
- echo "** system configuration not updated"; \
- fi
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
--- NEW FILE libhbalinux.spec ---
Name: libhbalinux
Version: 1.0.7
Release: 3%{?dist}
Summary: FC-HBAAPI implementation using scsi_transport_fc interfaces
Group: System Environment/Libraries
License: LGPLv2
URL: http://www.open-fcoe.org
Source0: http://www.open-fcoe.org/openfc/downloads/%{name}-%{version}.tar.gz
Patch0: libhbalinux-1.0.7-conf.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libhbaapi-devel libpciaccess-devel
Requires: libhbaapi
%description
SNIA HBAAPI vendor library built on top of the scsi_transport_fc interfaces
%prep
%setup -q
%patch0 -p1 -b .conf
%build
%configure --disable-static
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
find $RPM_BUILD_ROOT -name '*.so' -exec rm -f {} ';'
%clean
rm -rf $RPM_BUILD_ROOT
%post
ORG=org.open-fcoe.libhbalinux
LIB=%{_libdir}/libhbalinux.so.2.0.2
STR="$ORG $LIB"
CONF=%{_sysconfdir}/hba.conf
if test -f $CONF; then
grep -E -q ^[[:space:]]*$ORG[[:space:]]+$LIB $CONF
if test $? -ne 0; then
echo $STR >> $CONF;
fi
fi
%postun
ORG=org.open-fcoe.libhbalinux
CONF=%{_sysconfdir}/hba.conf
if test -f $CONF; then
grep -v $ORG $CONF > %{_sysconfdir}/hba.conf.new
mv %{_sysconfdir}/hba.conf.new %{_sysconfdir}/hba.conf
fi
%files
%defattr(-,root,root,-)
%doc README COPYING
%{_libdir}/*.so.*
%changelog
* Tue Apr 01 2009 Jan Zeleny <jzeleny at redhat.com> - 1.0.7-3
- replaced unofficial 1.0.7 source tarball with official one
- update of Makefile, part of it moved to postinstall section
of spec file
* Tue Mar 31 2009 Jan Zeleny <jzeleny at redhat.com> - 1.0.7-2
- minor changes in spec file
* Mon Mar 2 2009 Chris Leech <christopher.leech at intel.com> - 1.0.7-1
- initial build
- Previous message (by thread): rpms/skyviewer/F-10 skyviewer-license.txt, NONE, 1.1 skyviewer.desktop, NONE, 1.1 skyviewer.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/libhbalinux/devel .cvsignore,1.1,1.2 sources,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list