This commit is contained in:
parent
869168037c
commit
fc77f67578
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 17 20:15:58 CEST 2009 - crrodriguez@suse.de
|
||||
|
||||
- remove static libraries and "la" files
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 26 15:30:31 CET 2009 - hare@suse.de
|
||||
|
||||
|
@ -28,7 +28,7 @@ Obsoletes: scsi <= 1.7_2.38_1.25_0.19_1.02_0.93
|
||||
AutoReqProv: on
|
||||
PreReq: %insserv_prereq
|
||||
Version: 1.27
|
||||
Release: 18
|
||||
Release: 19
|
||||
Summary: A collection of tools that send SCSI commands to devices
|
||||
Source: http://sg.torque.net/sg/p/sg3_utils-%{sgver}.tar.bz2
|
||||
Source2: http://www.garloff.de/kurt/linux/rescan-scsi-bus.sh
|
||||
@ -74,7 +74,7 @@ Authors:
|
||||
Kurt Garloff <garloff@suse.de>
|
||||
|
||||
%prep
|
||||
%setup
|
||||
%setup -q
|
||||
%patch1
|
||||
%patch2 -p1
|
||||
|
||||
@ -83,9 +83,8 @@ autoreconf -fi
|
||||
export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's/\-O2/-Os/'`
|
||||
CFLAGS="$RPM_OPT_FLAGS -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" \
|
||||
PREFIX=%{_prefix} LIBDIR=%{_libdir} CC=gcc \
|
||||
./configure --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
|
||||
--libdir=%{_libdir}
|
||||
make
|
||||
%configure --disable-static --with-pic
|
||||
%{__make} %{?jobs:-j%jobs}
|
||||
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT INSTDIR=$RPM_BUILD_ROOT%{_bindir} \
|
||||
@ -93,12 +92,12 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTDIR=$RPM_BUILD_ROOT%{_bindir} \
|
||||
PREFIX=%{_prefix}
|
||||
install -m 755 scripts/scsi_logging_level $RPM_BUILD_ROOT%{_bindir}
|
||||
install -m 755 %{S:2} $RPM_BUILD_ROOT%{_bindir}
|
||||
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
||||
grep -r -E '^#include[ \t]+[<"][^>"]+[">]' %{buildroot}%{_includedir} | awk -F: '{print $2}'
|
||||
|
||||
%post
|
||||
%{run_ldconfig}
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun
|
||||
%{run_ldconfig}
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
@ -206,10 +205,7 @@ install -m 755 %{S:2} $RPM_BUILD_ROOT%{_bindir}
|
||||
%files devel
|
||||
%defattr(644,root,root)
|
||||
%attr(755,root,root) %{_libdir}/libsgutils.so
|
||||
%attr(755,root,root) %{_libdir}/libsgutils.la
|
||||
%attr(644,root,root) %{_libdir}/libsgutils.a
|
||||
%attr(755,root,root) %dir %{_prefix}/include/scsi
|
||||
%{_libdir}/libsgutils.a
|
||||
%{_prefix}/include/scsi/sg_cmds.h
|
||||
%{_prefix}/include/scsi/sg_cmds_basic.h
|
||||
%{_prefix}/include/scsi/sg_cmds_extra.h
|
||||
@ -225,6 +221,8 @@ test ! -z "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" && rm -rf $RPM_BUILD_ROO
|
||||
rm -rf $RPM_BUILD_DIR/sg3_utils-%{sgver}
|
||||
|
||||
%changelog
|
||||
* Fri Apr 17 2009 crrodriguez@suse.de
|
||||
- remove static libraries and "la" files
|
||||
* Mon Jan 26 2009 hare@suse.de
|
||||
- Fixes to rescan-scsi-bus.sh:
|
||||
* Implement '--forcerescan' to force a rescan of existing devices
|
||||
|
Loading…
Reference in New Issue
Block a user