소스 검색

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

Ralf S. Engelschall 21 년 전
부모
커밋
b23a556c80
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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