packages: tw_cli-9xxx/tw_cli-9xxx.spec - add tw_cli symlinks

glen glen at pld-linux.org
Thu Sep 10 13:12:17 CEST 2009


Author: glen                         Date: Thu Sep 10 11:12:17 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add tw_cli symlinks

---- Files affected:
packages/tw_cli-9xxx:
   tw_cli-9xxx.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: packages/tw_cli-9xxx/tw_cli-9xxx.spec
diff -u packages/tw_cli-9xxx/tw_cli-9xxx.spec:1.6 packages/tw_cli-9xxx/tw_cli-9xxx.spec:1.7
--- packages/tw_cli-9xxx/tw_cli-9xxx.spec:1.6	Thu Sep 10 13:06:27 2009
+++ packages/tw_cli-9xxx/tw_cli-9xxx.spec	Thu Sep 10 13:12:12 2009
@@ -1,5 +1,5 @@
 # $Revision$, $Date$
-%define	model	9xxx
+%define		model	9xxx
 Summary:	Utility to control 3ware SATA RAID controllers
 Summary(pl.UTF-8):	Narzędzie do sterowania kontrolerami SATA RAID firmy 3ware
 Name:		tw_cli-%{model}
@@ -33,20 +33,19 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
-
-install tw_cli $RPM_BUILD_ROOT%{_sbindir}/tw_cli-%{model}
-
-install tw_cli.8.nroff $RPM_BUILD_ROOT%{_mandir}/man8/tw_cli-%{model}.8
+install -p tw_cli $RPM_BUILD_ROOT%{_sbindir}/tw_cli-%{model}
+ln -s tw_cli-%{model} $RPM_BUILD_ROOT%{_sbindir}/tw_cli
+cp -p tw_cli.8.nroff $RPM_BUILD_ROOT%{_mandir}/man8/tw_cli-%{model}.8
+echo '.so tw_cli-%{model}.8' > $RPM_BUILD_ROOT%{_mandir}/man8/tw_cli.8
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_sbindir}/*
-%{_mandir}/man?/*
+%attr(755,root,root) %{_sbindir}/tw_cli*
+%{_mandir}/man8/tw_cli*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -54,6 +53,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2009/09/10 11:12:12  glen
+- add tw_cli symlinks
+
 Revision 1.6  2009/09/10 11:06:27  glen
 - skip debuginfo package
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/tw_cli-9xxx/tw_cli-9xxx.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list