Browse Source

figure out version numbers for ostag in suse and redflag

svn:r19083
Andrew Lewman 15 years ago
parent
commit
4962e466b2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tor.spec.in

+ 2 - 2
tor.spec.in

@@ -68,11 +68,11 @@
 %endif
 %endif
 
 
 %if %{is_suse}
 %if %{is_suse}
-%define ostag suse
+%define ostag suse%(grep openSUSE /etc/SuSE-release | awk '{print $2}' | sed -e 's/\\./_/')
 %endif
 %endif
 
 
 %if %{is_rfl}
 %if %{is_rfl}
-%define ostag redflag
+%define ostag redflag%(sed -e 's/^.*Desktop /redflag/' -e 's/ .*$//' -e 's/\\./_/g' < /etc/redflag-release)
 %endif
 %endif
 
 
 # Using the build date ensures that every build really does get
 # Using the build date ensures that every build really does get