tweaks
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 9 Oct 2008 03:45:09 +0000 (03:45 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 9 Oct 2008 03:45:09 +0000 (03:45 +0000)
myplc-native.spec
myplc-release.spec

index 33f4e8f..e518500 100644 (file)
@@ -95,13 +95,13 @@ system.
 %setup -q
 
 %build
+
+%install
 pushd MyPLC
 rm -rf $RPM_BUILD_ROOT
 ./build-native.sh %{pldistro} $RPM_BUILD_ROOT
 popd
 
-%install
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
index fa57579..3f70d1f 100644 (file)
@@ -34,20 +34,20 @@ contents of that release. This is used by the GetPlcRelease API call.
 %setup -q
 
 %build
-rm -rf $RPM_BUILD_ROOT
 
 # fetch the release stamp from the build if any
-if [ -f ../../../myplc-release ] ; then
-  cp ../../../myplc-release myplc-release
+if [ -f ../../myplc-release ] ; then
+  cp ../../myplc-release myplc-release
 else
   echo "Cannot find release information." > myplc-release
   date >> myplc-release
   echo "$HeadURL$" >> myplc-release
 fi
-# install it in /etc/myplc-release 
-install -m 444 myplc-release ${RPM_BUILD_ROOT}/etc/myplc-release
 
 %install
+rm -rf $RPM_BUILD_ROOT
+# install it in /etc/myplc-release 
+install -D -m 444 myplc-release ${RPM_BUILD_ROOT}/etc/myplc-release
 
 %clean
 rm -rf $RPM_BUILD_ROOT