Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > c40ada2415b75c4aaabc9a097388ddcb > files > 29

mc-4.6.1-17mdv2008.0.src.rpm

--- ./lib/mc.ext.in.org	2005-06-10 17:04:56.341735824 +0200
+++ ./lib/mc.ext.in	2005-06-10 17:06:41.384766856 +0200
@@ -217,7 +217,11 @@
 	View=%view{ascii} rpm -qivl --scripts `basename %p .trpm`
 
 # RPM packages (SuSE uses *.spm for source packages)
-regex/\.(rpm|spm)$
+regex/\.(src\.rpm|spm)$
+	Open=%cd %p#srpm
+	View=%view{ascii} if rpm --nosignature --version >/dev/null 2>&1; then RPM="rpm --nosignature" ; else RPM="rpm" ; fi ; $RPM -qivlp --scripts %f
+
+regex/\.rpm$
 	Open=%cd %p#rpm
 	View=%view{ascii} if rpm --nosignature --version >/dev/null 2>&1; then RPM="rpm --nosignature" ; else RPM="rpm" ; fi ; $RPM -qivlp --scripts %f
 
--- ./vfs/extfs/Makefile.am.org	2005-06-10 17:08:02.014509272 +0200
+++ ./vfs/extfs/Makefile.am	2005-06-10 17:08:23.234283376 +0200
@@ -4,7 +4,7 @@
 EXTFS_MISC  = README extfs.ini sfs.ini
 
 # Scripts hat don't need adaptation to the local system
-EXTFS_CONST = bpp rpm trpm
+EXTFS_CONST = bpp rpm trpm srpm
 
 # Scripts that need adaptation to the local system - source files
 EXTFS_IN    = 			\
--- ./vfs/extfs/extfs.ini.org	2005-06-10 17:07:21.512666488 +0200
+++ ./vfs/extfs/extfs.ini	2005-06-10 17:07:48.611546832 +0200
@@ -15,6 +15,7 @@
 
 # Packages from popular Linux distributions
 rpm
+srpm
 deb
 
 # a: - mtools filesystem
--- ./vfs/extfs/srpm.org	2005-06-10 17:01:18.087915448 +0200
+++ ./vfs/extfs/srpm	2005-06-10 17:04:37.956530800 +0200
@@ -19,8 +19,15 @@
 LC_TIME=C
 export LC_TIME
 
+if rpmbuild --version >/dev/null 2>&1; then
+	RPMBUILD="rpmbuild"
+else
+	RPMBUILD="rpm"
+fi
+
 if rpm --nosignature --version >/dev/null 2>&1; then
   RPM="rpm --nosignature"
+  RPMBUILD="$RPMBUILD --nosignature"
 else
   RPM="rpm"
 fi
@@ -48,7 +55,7 @@
     HEADERSIZE=`echo "$DESC" | wc -c`
     echo "-r--r--r--   1 root     root  $HEADERSIZE $DATE HEADER"
     echo "-r-xr-xr-x   1 root     root    39 $DATE INSTALL"
-    echo "-r-xr-xr-x   1 root     root    39 $DATE UPGRADE"
+    echo "-r-xr-xr-x   1 root     root    39 $DATE REBUILD"
     echo "dr-xr-xr-x   3 root     root	   0 $DATE INFO"
     if [ "`$RPM -qp --qf \"%{SERIAL}\" \"$1\"`" = "(none)" ]; then
 	    echo "$FILEPREF 0 $DATE INFO/NAME-VERSION-RELEASE"
@@ -165,7 +172,7 @@
     case "$2" in
 	HEADER) $RPM -qip "$f" > "$3"; exit 0;;
 	INSTALL) echo "# Run this to install this RPM package" > "$3"; exit 0;;
-	UPGRADE) echo "# Run this to upgrade this RPM package" > "$3"; exit 0;;
+	REBUILD) echo "# Run this to rebuild this RPM package" > "$3"; exit 0;;
 	ERROR) $RPM -qip "$f" > /dev/null 2> "$3"; exit 0;;
 	INFO/NAME-VERSION-RELEASE)	$RPM -qp --qf "%{NAME}-%{VERSION}-%{RELEASE}\n" "$f" > "$3"; exit 0;;
 	INFO/NAME-SERIAL:VERSION-RELEASE) $RPM -qp --qf "%{NAME}-%{SERIAL}:%{VERSION}-%{RELEASE}\n" "$1" > "$3"; exit 0;;
@@ -216,7 +223,7 @@
     f="`echo "$1" | $SED "$SEDCMD"`"
     case "$2" in
 	INSTALL) echo "Installing \"\"$f\"\""; $RPM -ivh "$f"; exit 0;;
-	UPGRADE) echo "Upgrading \"\"$f\"\""; $RPM -Uvh "$f"; exit 0;;
+	REBUILD) echo "Rebuilding \"$1\""; $RPMBUILD --rebuild "$1"; exit 0;;
     esac
 }