SPECS: nant.spec - rpm autodeps for bin script

glen glen at pld-linux.org
Sun May 18 23:59:42 CEST 2008


Author: glen                         Date: Sun May 18 21:59:42 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- rpm autodeps for bin script

---- Files affected:
SPECS:
   nant.spec (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: SPECS/nant.spec
diff -u SPECS/nant.spec:1.12 SPECS/nant.spec:1.13
--- SPECS/nant.spec:1.12	Wed May 16 22:23:48 2007
+++ SPECS/nant.spec	Sun May 18 23:59:36 2008
@@ -30,16 +30,21 @@
 %setup -q
 %patch0 -p1
 
+cat <<'EOF' > %{name}.sh
+#!/bin/sh
+exec mono %{_datadir}/NAnt/bin/NAnt.exe "$@"
+EOF
+
 %build
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+mono bootstrap/NAnt.exe \
+	-f:NAnt.build install-linux \
+	-D:install.prefix=$RPM_BUILD_ROOT%{_prefix}
 
-mono bootstrap/NAnt.exe -f:NAnt.build install-linux -D:install.prefix=$RPM_BUILD_ROOT%{_prefix}
-
-echo "#!/bin/sh" > $RPM_BUILD_ROOT%{_bindir}/nant
-echo 'exec mono %{_datadir}/NAnt/bin/NAnt.exe "$@"' >> $RPM_BUILD_ROOT%{_bindir}/nant
+install %{name}.sh $RPM_BUILD_ROOT%{_bindir}/nant
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -56,6 +61,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.13  2008-05-18 21:59:36  glen
+- rpm autodeps for bin script
+
 Revision 1.12  2007-05-16 20:23:48  qboosh
 - updated to final 0.85
 - removed obsolete same-variable patch, added fix patch
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/nant.spec?r1=1.12&r2=1.13&f=u



More information about the pld-cvs-commit mailing list