SPECS: promise-i2cli.spec - uses libstdc++ which lives in /usr/lib...
arekm
arekm at pld-linux.org
Mon Jul 23 12:06:32 CEST 2007
Author: arekm Date: Mon Jul 23 10:06:32 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- uses libstdc++ which lives in /usr/lib so no point in placing this utility in /sbin,/lib
---- Files affected:
SPECS:
promise-i2cli.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SPECS/promise-i2cli.spec
diff -u SPECS/promise-i2cli.spec:1.1 SPECS/promise-i2cli.spec:1.2
--- SPECS/promise-i2cli.spec:1.1 Mon Jul 23 11:54:11 2007
+++ SPECS/promise-i2cli.spec Mon Jul 23 12:06:27 2007
@@ -18,9 +18,6 @@
# ExclusiveArch: %{x8664}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _sbindir /sbin
-%define _libdir /%{_lib}/%{name}
-
%description
cli is the abbreviation of Promise Technology, Inc FastTrak serial
product utilities. It contains RAID API, command line utilities. RAID
@@ -41,23 +38,23 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sbindir},%{_libdir}}
+install -d $RPM_BUILD_ROOT{%{_sbindir},%{_libdir}/%{name}}
install -d fixed-lib
for l in usr/lib/*6.so; do
install $l fixed-lib/$(basename $l 6.so).so
done
-install usr/sbin/cli $RPM_BUILD_ROOT%{_libdir}
-install fixed-lib/*.so $RPM_BUILD_ROOT%{_libdir}
+install usr/sbin/cli $RPM_BUILD_ROOT%{_libdir}/%{name}
+install fixed-lib/*.so $RPM_BUILD_ROOT%{_libdir}/%{name}
-sed -i -e 's#1>&# > #g' $RPM_BUILD_ROOT%{_libdir}/libpri2plugin.so
+sed -i -e 's#1>&# > #g' $RPM_BUILD_ROOT%{_libdir}/%{name}/libpri2plugin.so
cat << 'EOF' > $RPM_BUILD_ROOT%{_sbindir}/promise-i2cli
#!/bin/sh
-LD_LIBRARY_PATH=%{_libdir}:$LD_LIBRARY_PATH
+LD_LIBRARY_PATH=%{_libdir}/%{name}:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
cd /tmp 2> /dev/null
-exec %{_libdir}/cli $*
+exec %{_libdir}/%{name}/cli $*
EOF
%clean
@@ -70,9 +67,9 @@
%defattr(644,root,root,755)
%doc usr/share/doc/*/*
%attr(755,root,root) %{_sbindir}/*
-%dir %{_libdir}
-%attr(755,root,root) %{_libdir}/cli
-%attr(755,root,root) %{_libdir}/*.so
+%dir %{_libdir}/%{name}
+%attr(755,root,root) %{_libdir}/%{name}/cli
+%attr(755,root,root) %{_libdir}/%{name}/*.so
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -80,6 +77,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2007/07/23 10:06:27 arekm
+- uses libstdc++ which lives in /usr/lib so no point in placing this utility in /sbin,/lib
+
Revision 1.1 2007/07/23 09:54:11 arekm
- promise raid controller utilities
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/promise-i2cli.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list