Jelajahi Sumber

track only stable releases; use shtool instead of ginstall to avoid a necessary dependency to coreutils; remove installed gc stuff

Ralf S. Engelschall 21 tahun lalu
induk
melakukan
b23a556c80
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      mono/mono.spec

+ 3 - 3
mono/mono.spec

@@ -61,10 +61,9 @@ Conflicts:    pnet
 
 %track
     prog mono = {
-        comment   = "tho: 1.1.x is development tree; stay with 1.0.x until 1.2"
         version   = %{version}
         url       = http://www.go-mono.com/download.html
-        regex     = mono-(__VER__)\.tar\.gz
+        regex     = mono-(\d+\.[02468](\.\d+)*)\.tar\.gz
     }
 
 %prep
@@ -103,7 +102,7 @@ Conflicts:    pnet
 %install
     #   use a working install to create subdirs
     %{l_shtool} subst \
-        -e 's;\$(mkdir_p);%{l_prefix}/bin/ginstall -d;' \
+        -e 's;\$(mkdir_p);%{l_shtool} mkdir -p;' \
         Makefile */Makefile */*/Makefile
 
     #   install program
@@ -122,6 +121,7 @@ Conflicts:    pnet
     done
 
     #   strip down installation
+    rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/libgc-mono
     strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
 
     #   determine installation files