Accepting request 47523 from Base:System
Copy from Base:System/rpm based on submit request 47523 from user elvigia OBS-URL: https://build.opensuse.org/request/show/47523 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpm?expand=0&rev=103
This commit is contained in:
commit
7de37c6562
14
rpm-gst-provides.patch
Normal file
14
rpm-gst-provides.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Index: ./autodeps/linux.prov
|
||||||
|
===================================================================
|
||||||
|
--- ./autodeps/linux.prov
|
||||||
|
+++ ./autodeps/linux.prov
|
||||||
|
@@ -102,4 +102,9 @@ fi
|
||||||
|
[ -x /usr/lib/rpm/find-provides.ksyms ] &&
|
||||||
|
printf "%s\n" "${filelist[@]}" | /usr/lib/rpm/find-provides.ksyms "$@"
|
||||||
|
|
||||||
|
+#
|
||||||
|
+# --- GStreamer provides, codecs
|
||||||
|
+[ -x /usr/lib/rpm/gstreamer-provides ] &&
|
||||||
|
+ printf "%s\n" "${filelist[@]}" | /usr/lib/rpm/gstreamer-provides | sort -u
|
||||||
|
+
|
||||||
|
exit 0
|
@ -25,7 +25,7 @@ License: GPLv2+
|
|||||||
Group: System/Packages
|
Group: System/Packages
|
||||||
Summary: Python Bindings for Manipulating RPM Packages
|
Summary: Python Bindings for Manipulating RPM Packages
|
||||||
Version: 4.8.0
|
Version: 4.8.0
|
||||||
Release: 8
|
Release: 9
|
||||||
Requires: rpm = %{version}
|
Requires: rpm = %{version}
|
||||||
%py_requires
|
%py_requires
|
||||||
Source99: rpm.spec
|
Source99: rpm.spec
|
||||||
|
@ -208,8 +208,8 @@
|
|||||||
# and
|
# and
|
||||||
# name of (old) START variable (unless -s is given)
|
# name of (old) START variable (unless -s is given)
|
||||||
#
|
#
|
||||||
# template for variables into etc/sysconfig/package:
|
# template for variables into /etc/sysconfig/package:
|
||||||
# var/adm/fillup-templates/sysconfig.package
|
# /var/adm/fillup-templates/sysconfig.package
|
||||||
%fillup_and_insserv(finpsyY) \
|
%fillup_and_insserv(finpsyY) \
|
||||||
%{-p:echo "-p option for fillup_and_insserv no longer supported (ever only used on SL8.0)"; exit 1;} \
|
%{-p:echo "-p option for fillup_and_insserv no longer supported (ever only used on SL8.0)"; exit 1;} \
|
||||||
%{-s:echo "STARTVAR for fillup_and_insserv no longer supported (rc.config is gone since SL8.0)"; exit 1;} \
|
%{-s:echo "STARTVAR for fillup_and_insserv no longer supported (rc.config is gone since SL8.0)"; exit 1;} \
|
||||||
@ -224,7 +224,7 @@
|
|||||||
SV_B='^### BEGIN INIT INFO' \
|
SV_B='^### BEGIN INIT INFO' \
|
||||||
SV_E='^### END INIT INFO' \
|
SV_E='^### END INIT INFO' \
|
||||||
SV_KW=Default-Enabled \
|
SV_KW=Default-Enabled \
|
||||||
SV_VALUE=`sed -n -e "/$SV_B/,/$SV_E/{/^# [^[:space:]]*$SV_KW:[[:space:]]*\\([^[:space:]]*\\).*/s//\\1/p;}" < etc/init.d/$SCRIPTNAME` \
|
SV_VALUE=`sed -n -e "/$SV_B/,/$SV_E/{/^# [^[:space:]]*$SV_KW:[[:space:]]*\\([^[:space:]]*\\).*/s//\\1/p;}" < /etc/init.d/$SCRIPTNAME` \
|
||||||
test "$FORCE_YES" = "1" && SV_VALUE="yes" \
|
test "$FORCE_YES" = "1" && SV_VALUE="yes" \
|
||||||
test -n "$SV_VALUE" || SV_VALUE=%{-y:"yes"}%{!-y:"no"} \
|
test -n "$SV_VALUE" || SV_VALUE=%{-y:"yes"}%{!-y:"no"} \
|
||||||
INSSRV_ARRAY="$INSSRV_ARRAY $SCRIPTNAME $SV_VALUE" \
|
INSSRV_ARRAY="$INSSRV_ARRAY $SCRIPTNAME $SV_VALUE" \
|
||||||
@ -237,7 +237,7 @@
|
|||||||
# this part really calls fillup for the appropriate files
|
# this part really calls fillup for the appropriate files
|
||||||
#
|
#
|
||||||
%do_real_fillup() \
|
%do_real_fillup() \
|
||||||
TEMPLATE_DIR=var/adm/fillup-templates \
|
TEMPLATE_DIR=/var/adm/fillup-templates \
|
||||||
SYSC_TEMPLATE=$TEMPLATE_DIR/sysconfig.$PNAME \
|
SYSC_TEMPLATE=$TEMPLATE_DIR/sysconfig.$PNAME \
|
||||||
SD_NAME="" \
|
SD_NAME="" \
|
||||||
%{sysc_fillup}
|
%{sysc_fillup}
|
||||||
@ -251,15 +251,15 @@
|
|||||||
shift 2 \
|
shift 2 \
|
||||||
test -n "$SCRIPTNAME" -a -n "$SV_VALUE" || { echo "SCRIPTNAME or SV_VALUE unknown"; exit 1;} \
|
test -n "$SCRIPTNAME" -a -n "$SV_VALUE" || { echo "SCRIPTNAME or SV_VALUE unknown"; exit 1;} \
|
||||||
if test "$FIRST_ARG" = "1" -a "$SV_VALUE" = "no" ; then \
|
if test "$FIRST_ARG" = "1" -a "$SV_VALUE" = "no" ; then \
|
||||||
sbin/insserv ${YAST_IS_RUNNING:+-f} -r etc/init.d/$SCRIPTNAME \
|
/sbin/insserv ${YAST_IS_RUNNING:+-f} -r /etc/init.d/$SCRIPTNAME \
|
||||||
elif test "$FIRST_ARG" = "1" -o "$FORCE_YES" = "1" ; then \
|
elif test "$FIRST_ARG" = "1" -o "$FORCE_YES" = "1" ; then \
|
||||||
sbin/insserv ${YAST_IS_RUNNING:+-f} etc/init.d/$SCRIPTNAME \
|
/sbin/insserv ${YAST_IS_RUNNING:+-f} /etc/init.d/$SCRIPTNAME \
|
||||||
fi \
|
fi \
|
||||||
done
|
done
|
||||||
|
|
||||||
# macro: insserv_cleanup
|
# macro: insserv_cleanup
|
||||||
%insserv_cleanup() \
|
%insserv_cleanup() \
|
||||||
sbin/insserv etc/init.d
|
/sbin/insserv /etc/init.d
|
||||||
|
|
||||||
# macro: fillup_only
|
# macro: fillup_only
|
||||||
# do the fillup for sysconfig files
|
# do the fillup for sysconfig files
|
||||||
@ -277,7 +277,7 @@
|
|||||||
%fillup_only(dans) \
|
%fillup_only(dans) \
|
||||||
%{-n:PNAME=%{1}}%{!-n:PNAME=%{name}} \
|
%{-n:PNAME=%{1}}%{!-n:PNAME=%{name}} \
|
||||||
%{-s:SUBPNAME=-%{2}}%{!-s:SUBPNAME=%{-a:-%{name}}} \
|
%{-s:SUBPNAME=-%{2}}%{!-s:SUBPNAME=%{-a:-%{name}}} \
|
||||||
TEMPLATE_DIR=var/adm/fillup-templates \
|
TEMPLATE_DIR=/var/adm/fillup-templates \
|
||||||
SYSC_TEMPLATE=$TEMPLATE_DIR/sysconfig.$PNAME$SUBPNAME \
|
SYSC_TEMPLATE=$TEMPLATE_DIR/sysconfig.$PNAME$SUBPNAME \
|
||||||
SD_NAME="" \
|
SD_NAME="" \
|
||||||
%{-d:%{-s:SD_NAME=%{3}/}%{!-s:SD_NAME=%{2}/}} \
|
%{-d:%{-s:SD_NAME=%{3}/}%{!-s:SD_NAME=%{2}/}} \
|
||||||
@ -286,16 +286,16 @@
|
|||||||
|
|
||||||
# internal only: sysc_fillup
|
# internal only: sysc_fillup
|
||||||
%sysc_fillup() \
|
%sysc_fillup() \
|
||||||
if [ -x bin/fillup ] ; then \
|
if [ -x /bin/fillup ] ; then \
|
||||||
if [ -f $SYSC_TEMPLATE ] ; then \
|
if [ -f $SYSC_TEMPLATE ] ; then \
|
||||||
echo "Updating etc/sysconfig/$SD_NAME$PNAME..." \
|
echo "Updating /etc/sysconfig/$SD_NAME$PNAME..." \
|
||||||
mkdir -p etc/sysconfig/$SD_NAME \
|
mkdir -p /etc/sysconfig/$SD_NAME \
|
||||||
touch etc/sysconfig/$SD_NAME$PNAME \
|
touch /etc/sysconfig/$SD_NAME$PNAME \
|
||||||
bin/fillup -q etc/sysconfig/$SD_NAME$PNAME $SYSC_TEMPLATE \
|
/bin/fillup -q /etc/sysconfig/$SD_NAME$PNAME $SYSC_TEMPLATE \
|
||||||
fi \
|
fi \
|
||||||
else \
|
else \
|
||||||
echo "ERROR: fillup not found. This should not happen. Please compare" \
|
echo "ERROR: fillup not found. This should not happen. Please compare" \
|
||||||
echo "etc/sysconfig/$PNAME and $TEMPLATE_DIR/sysconfig.$PNAME and" \
|
echo "/etc/sysconfig/$PNAME and $TEMPLATE_DIR/sysconfig.$PNAME and" \
|
||||||
echo "update by hand." \
|
echo "update by hand." \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -316,16 +316,16 @@
|
|||||||
%remove_and_set(n:y) \
|
%remove_and_set(n:y) \
|
||||||
%{-n:PNAME=%{-n*}}%{!-n:PNAME=%{name}} \
|
%{-n:PNAME=%{-n*}}%{!-n:PNAME=%{name}} \
|
||||||
DEF_VAL=%{-y:"yes"}%{!-y:"no"} \
|
DEF_VAL=%{-y:"yes"}%{!-y:"no"} \
|
||||||
DEL_TEMPL=var/adm/fillup-templates/$PNAME.del \
|
DEL_TEMPL=/var/adm/fillup-templates/$PNAME.del \
|
||||||
rm -f $DEL_TEMPL \
|
rm -f $DEL_TEMPL \
|
||||||
for var in %{?*} ; do \
|
for var in %{?*} ; do \
|
||||||
echo -e "#\\n$var=$DEF_VAL\\n" >> $DEL_TEMPL \
|
echo -e "#\\n$var=$DEF_VAL\\n" >> $DEL_TEMPL \
|
||||||
done \
|
done \
|
||||||
if [ -f etc/sysconfig/$PNAME ] ; then \
|
if [ -f /etc/sysconfig/$PNAME ] ; then \
|
||||||
bin/fillup -q -t -r -i -d "=" etc/sysconfig/$PNAME $DEL_TEMPL etc/sysconfig/$PNAME.deleted.$$ \
|
/bin/fillup -q -t -r -i -d "=" /etc/sysconfig/$PNAME $DEL_TEMPL /etc/sysconfig/$PNAME.deleted.$$ \
|
||||||
test -f etc/sysconfig/$PNAME.new && mv etc/sysconfig/$PNAME.new etc/sysconfig/$PNAME \
|
test -f /etc/sysconfig/$PNAME.new && mv /etc/sysconfig/$PNAME.new /etc/sysconfig/$PNAME \
|
||||||
fi \
|
fi \
|
||||||
for i in $DEL_TEMPL etc/sysconfig/$PNAME.deleted.$$ ; do \
|
for i in $DEL_TEMPL /etc/sysconfig/$PNAME.deleted.$$ ; do \
|
||||||
if [ -f $i ] ; then \
|
if [ -f $i ] ; then \
|
||||||
. $i \
|
. $i \
|
||||||
rm -f $i \
|
rm -f $i \
|
||||||
@ -333,25 +333,25 @@
|
|||||||
done
|
done
|
||||||
|
|
||||||
%insserv_force_if_yast() \
|
%insserv_force_if_yast() \
|
||||||
sbin/insserv ${YAST_IS_RUNNING:+-f} %{?*}
|
/sbin/insserv ${YAST_IS_RUNNING:+-f} %{?*}
|
||||||
|
|
||||||
%run_ldconfig /sbin/ldconfig
|
%run_ldconfig /sbin/ldconfig
|
||||||
|
|
||||||
%install_info(:-:) \
|
%install_info(:-:) \
|
||||||
ALL_ARGS=(%{**}) \
|
ALL_ARGS=(%{**}) \
|
||||||
NUM_ARGS=${#ALL_ARGS[@]} \
|
NUM_ARGS=${#ALL_ARGS[@]} \
|
||||||
if test -x sbin/install-info ; then \
|
if test -x /sbin/install-info ; then \
|
||||||
if test -e "${ALL_ARGS[$((NUM_ARGS-1))]}" ; then \
|
if test -e "${ALL_ARGS[$((NUM_ARGS-1))]}" ; then \
|
||||||
sbin/install-info "${ALL_ARGS[@]}" \
|
/sbin/install-info "${ALL_ARGS[@]}" \
|
||||||
fi \
|
fi \
|
||||||
fi ;
|
fi ;
|
||||||
|
|
||||||
%install_info_delete(:-:) \
|
%install_info_delete(:-:) \
|
||||||
ALL_ARGS=(%{**}) \
|
ALL_ARGS=(%{**}) \
|
||||||
NUM_ARGS=${#ALL_ARGS[@]} \
|
NUM_ARGS=${#ALL_ARGS[@]} \
|
||||||
if test -x sbin/install-info ; then \
|
if test -x /sbin/install-info ; then \
|
||||||
if ! test -e "${ALL_ARGS[$((NUM_ARGS-1))]}" ; then \
|
if ! test -e "${ALL_ARGS[$((NUM_ARGS-1))]}" ; then \
|
||||||
sbin/install-info --quiet --delete "${ALL_ARGS[@]}" \
|
/sbin/install-info --quiet --delete "${ALL_ARGS[@]}" \
|
||||||
fi ; \
|
fi ; \
|
||||||
fi ;
|
fi ;
|
||||||
|
|
||||||
|
12
rpm.changes
12
rpm.changes
@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 8 11:35:46 CEST 2010 - ro@suse.de
|
||||||
|
|
||||||
|
- add leading / where appropriate in rpm-suse_macros (bnc#625763)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 2 10:26:05 UTC 2010 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
- Add rpm-gst-provides.patch to allow rpm to collect provides of
|
||||||
|
gstreamer codecs. This will help pk-gstreamer-install to also
|
||||||
|
find the codecs it is looking for.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 12 17:17:49 CEST 2010 - vuntz@opensuse.org
|
Thu Aug 12 17:17:49 CEST 2010 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
5
rpm.spec
5
rpm.spec
@ -28,7 +28,7 @@ PreReq: %insserv_prereq %fillup_prereq permissions
|
|||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Summary: The RPM Package Manager
|
Summary: The RPM Package Manager
|
||||||
Version: 4.8.0
|
Version: 4.8.0
|
||||||
Release: 8
|
Release: 9
|
||||||
Source: rpm-%{version}.tar.bz2
|
Source: rpm-%{version}.tar.bz2
|
||||||
Source1: RPM-HOWTO.tar.bz2
|
Source1: RPM-HOWTO.tar.bz2
|
||||||
Source2: RPM-Tips.html.tar.bz2
|
Source2: RPM-Tips.html.tar.bz2
|
||||||
@ -115,6 +115,7 @@ Patch78: nosource.diff
|
|||||||
Patch79: nosignature.diff
|
Patch79: nosignature.diff
|
||||||
Patch80: fixsbits.diff
|
Patch80: fixsbits.diff
|
||||||
Patch81: pkgconfig-0.24.diff
|
Patch81: pkgconfig-0.24.diff
|
||||||
|
Patch82: rpm-gst-provides.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
#
|
#
|
||||||
# avoid bootstrapping problem
|
# avoid bootstrapping problem
|
||||||
@ -176,7 +177,7 @@ rm -f rpmdb/db.h
|
|||||||
%patch -P 50 -P 51 -P 52 -P 53 -P 54 -P 55 -P 56 -P 57 -P 58 -P 59
|
%patch -P 50 -P 51 -P 52 -P 53 -P 54 -P 55 -P 56 -P 57 -P 58 -P 59
|
||||||
%patch -P 60 -P 61 -P 62 -P 63 -P 64 -P 65 -P 66 -P 67 -P 68 -P 69
|
%patch -P 60 -P 61 -P 62 -P 63 -P 64 -P 65 -P 66 -P 67 -P 68 -P 69
|
||||||
%patch -P 70 -P 71 -P 72 -P 73 -P 74 -P 75 -P 76 -P 77 -P 78 -P 79
|
%patch -P 70 -P 71 -P 72 -P 73 -P 74 -P 75 -P 76 -P 77 -P 78 -P 79
|
||||||
%patch -P 80 -P 81
|
%patch -P 80 -P 81 -P 82
|
||||||
#chmod 755 scripts/find-supplements{,.ksyms}
|
#chmod 755 scripts/find-supplements{,.ksyms}
|
||||||
#chmod 755 scripts/find-provides.ksyms scripts/find-requires.ksyms
|
#chmod 755 scripts/find-provides.ksyms scripts/find-requires.ksyms
|
||||||
#chmod 755 scripts/firmware.prov
|
#chmod 755 scripts/firmware.prov
|
||||||
|
Loading…
Reference in New Issue
Block a user