Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rpm-config-SUSE for openSUSE:Factory 
checked in at 2025-04-04 17:29:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rpm-config-SUSE (Old)
 and      /work/SRC/openSUSE:Factory/.rpm-config-SUSE.new.1907 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rpm-config-SUSE"

Fri Apr  4 17:29:23 2025 rev:34 rq:1265247 version:20250328

Changes:
--------
--- /work/SRC/openSUSE:Factory/rpm-config-SUSE/rpm-config-SUSE.changes  
2024-11-14 16:08:10.701492749 +0100
+++ 
/work/SRC/openSUSE:Factory/.rpm-config-SUSE.new.1907/rpm-config-SUSE.changes    
    2025-04-04 17:29:44.409585885 +0200
@@ -1,0 +2,15 @@
+Fri Mar 28 16:22:44 UTC 2025 - dmuel...@suse.com
+
+- Update to version 20250328:
+  * Revert "Define %jobs as variable (boo#1237231)"
+  * Create the directory for rpm macros installation in install
+
+-------------------------------------------------------------------
+Mon Mar 24 12:43:56 UTC 2025 - dmuel...@suse.com
+
+- Update to version 20250324:
+  * Define %jobs as variable (boo#1237231)
+  * %requires_eq|ge(): Fix multiline output
+  * Split the SUSE distribution version macros to a separate file
+
+-------------------------------------------------------------------

Old:
----
  rpm-config-SUSE-20241031.tar.zst

New:
----
  rpm-config-SUSE-20250328.tar.zst

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rpm-config-SUSE.spec ++++++
--- /var/tmp/diff_new_pack.EOQh4F/_old  2025-04-04 17:29:45.045612109 +0200
+++ /var/tmp/diff_new_pack.EOQh4F/_new  2025-04-04 17:29:45.049612274 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rpm-config-SUSE
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 # Copyright (c) 2018 Neal Gompa <ngomp...@gmail.com>.
 #
 # All modifications and additions to the file contributed by third parties
@@ -20,7 +20,7 @@
 # ignore the explicit bash requires from the kernel mod scripts
 %define __requires_exclude ^/bin/bash$
 Name:           rpm-config-SUSE
-Version:        20241031
+Version:        20250328
 Release:        0
 Summary:        SUSE specific RPM configuration files
 License:        GPL-2.0-or-later
@@ -53,7 +53,7 @@
 %else
     -e '/@sle_version@/d' \
 %endif
-  < suse_macros.in > suse_macros
+  < suse_dist_macros.in > macros.d/macros.susedist
 
 %if 0%{?is_opensuse}
 # use latest build date of BuildRequires as reference and go to January 1st 
three years back - the + 6 * 3600 is to match exactly the previous value of 
2020-01-01 00:00 as leap-years cause some hours of offset
@@ -68,8 +68,8 @@
 
 %install
 # Install SUSE vendor macros and rpmrc
-mkdir -p %{buildroot}%{_rpmconfigdir}/suse
-cp -a suse_macros %{buildroot}%{_rpmconfigdir}/suse/macros
+install -d -m 0755 %{buildroot}%{_rpmconfigdir}
+cp -a suse %{buildroot}%{_rpmconfigdir}
 
 # Install vendor dependency generators
 cp -a fileattrs %{buildroot}%{_rpmconfigdir}

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.EOQh4F/_old  2025-04-04 17:29:45.093614088 +0200
+++ /var/tmp/diff_new_pack.EOQh4F/_new  2025-04-04 17:29:45.093614088 +0200
@@ -1,7 +1,7 @@
 <servicedata>
   <service name="tar_scm">
     <param name="url">https://github.com/openSUSE/rpm-config-SUSE</param>
-    <param 
name="changesrevision">0f18356a55adbba0e4884617ae6f09a9d1ffcb0e</param>
+    <param 
name="changesrevision">134e70e47ed6dace59c28499e18de50bdc25ecb6</param>
   </service>
 </servicedata>
 (No newline at EOF)

++++++ rpm-config-SUSE-20241031.tar.zst -> rpm-config-SUSE-20250328.tar.zst 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/rpm-config-SUSE-20241031/package/rpm-config-SUSE.spec 
new/rpm-config-SUSE-20250328/package/rpm-config-SUSE.spec
--- old/rpm-config-SUSE-20241031/package/rpm-config-SUSE.spec   2024-10-31 
10:33:18.000000000 +0100
+++ new/rpm-config-SUSE-20250328/package/rpm-config-SUSE.spec   2025-03-28 
17:22:33.000000000 +0100
@@ -53,7 +53,7 @@
 %else
     -e '/@sle_version@/d' \
 %endif
-  < suse_macros.in > suse_macros
+  < suse_dist_macros.in > macros.d/macros.susedist
 
 
 %if 0%{?is_opensuse}
@@ -69,8 +69,8 @@
 
 %install
 # Install SUSE vendor macros and rpmrc
-mkdir -p %{buildroot}%{_rpmconfigdir}/suse
-cp -a suse_macros %{buildroot}%{_rpmconfigdir}/suse/macros
+install -d -m 0755 %{buildroot}%{_rpmconfigdir}
+cp -a suse %{buildroot}%{_rpmconfigdir}
 
 # Install vendor dependency generators
 cp -a fileattrs %{buildroot}%{_rpmconfigdir}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rpm-config-SUSE-20241031/suse/macros 
new/rpm-config-SUSE-20250328/suse/macros
--- old/rpm-config-SUSE-20241031/suse/macros    1970-01-01 01:00:00.000000000 
+0100
+++ new/rpm-config-SUSE-20250328/suse/macros    2025-03-28 17:22:33.000000000 
+0100
@@ -0,0 +1,303 @@
+# need to keep this around for a while
+%suse_check             %{nil}
+
+# directories
+%_infodir               %{_prefix}/share/info
+%_mandir                %{_prefix}/share/man
+%_sysconfdir            /etc
+%_localstatedir         /var
+%_defaultdocdir         %{_usr}/share/doc/packages
+%_fillupdir             %{_usr}/share/fillup-templates
+%_distconfdir           %{_usr}/etc
+%_firmwaredir           %{_usr}/lib/firmware
+
+# package build macros
+%make_install           make install DESTDIR="%{?buildroot}"
+%makeinstall            make DESTDIR="%{?buildroot:%{buildroot}}" install
+%insserv_prereq         insserv sed
+%fillup_prereq          fillup /usr/bin/mkdir /usr/bin/touch
+# to be removed. deprecated since 11/2019 boo#1152105
+# I can't just not define it, as otherwise all specs using it break: [   25s] 
error: line 27: Empty tag: Requires(post):
+%install_info_prereq    /bin/sh
+%suseconfig_fonts_prereq perl aaa_base
+
+# this script calls all scripts in /usr/lib/rpm/brp-suse.d
+%__os_install_post  \
+       /usr/lib/rpm/brp-compress \
+       /usr/lib/rpm/brp-suse  \
+%{nil}
+
+%restart_on_update()   %{expand::%%service_del_postun %{?**}}
+%stop_on_removal()     %{expand:%%service_del_preun %{?**}}
+
+# macro: %configure_kernel_source
+#
+#
+%configure_kernel_source() \
+       if test -d /usr/src/linux ; then \
+           pushd /usr/src/linux \
+           test -f .config || cp arch/%_arch/defconfig.default .config \
+           yes "" | make oldconfig \
+           make dep \
+           popd \
+       fi \
+       %nil
+
+%is_plus %(if test -f /.buildenv ; then source /.buildenv ; if [[ 
"$BUILD_BASENAME" == *+kde ]] ; then echo 1 ; else echo 0 ; fi ; else echo 0 ; 
fi)
+
+%suse_update_libdir() \
+   if [ %_lib != lib ]; then \
+     for file in %{?*} ; do \
+        [ ! -e $file ] && echo "Error:  $file does not exist!" && exit -1 \
+        [ -e $file.nolib64 ] && echo "Error:  $file.nolib64 already exists!" 
&& exit -1 \
+        cp $file $file.nolib64 \
+        echo "patching $file" \
+        sed -e "s,/lib\\\>,/%_lib,g" $file.nolib64 | sed -e 
"s,/%_lib/cpp,/lib/cpp,; s,/usr/%_lib/perl,/usr/lib/perl, ; 
s,/%_lib\\([\$-]\\),/lib\\1,g" > $file \
+       diff -u $file.nolib64 $file \
+        rm -f $file.nolib64 \
+     done; \
+   fi ; \
+
+
+# macro: fillup_and_insserv
+# do the fillup and insserv calls for postinstall
+# options:
+#         -n  (use first argument as name for fillup template filenames
+#              instead of package name)
+#         -f  (skip fillup parts)
+#         -i  (skip insserv parts)
+#         -y  (default start-variable value to yes)
+#             Used only if X-UnitedLinux-Default-Enabled is not specified
+#             in the init script
+#         -Y  (force_yes: always activate, discard setting before update)
+# arguments:
+#         [if "-n" first argument as package name]
+#         Pairs of:
+#            main script name
+#           and
+#            name of (old) START variable (unless -s is given)
+#
+# template for variables into /etc/sysconfig/package:
+#     /usr/share/fillup-templates/sysconfig.package
+%fillup_and_insserv(finpsyY) \
+    %{-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;} \
+    test -n "$FIRST_ARG" || FIRST_ARG=$1 \
+    %{-Y:FORCE_YES=1}%{!-Y:FORCE_YES=0} \
+    set -- %{?*} \
+    %{-n:PNAME=$1 ; shift }%{!-n:PNAME=%{name}} \
+    INSSRV_ARRAY="" \
+    while [ ${#*} -gt 0 ] ; do \
+       SCRIPTNAME=$1 \
+       shift \
+       SV_B='^### BEGIN INIT INFO' \
+       SV_E='^### END INIT INFO' \
+       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` \
+       test "$FORCE_YES" = "1" && SV_VALUE="yes" \
+       test -n "$SV_VALUE" || SV_VALUE=%{-y:"yes"}%{!-y:"no"} \
+       INSSRV_ARRAY="$INSSRV_ARRAY $SCRIPTNAME $SV_VALUE" \
+    done \
+    %{!-f: %{do_real_fillup}} \
+    %{!-i: %{add_start_if_needed $INSSRV_ARRAY } } \
+    %nil
+
+# do_real_fillup: internal macro
+# this part really calls fillup for the appropriate files
+#
+%do_real_fillup() \
+    SYSC_TEMPLATE=%{_fillupdir}/sysconfig.$PNAME \
+    # If template not in new %{_fillupdir}, fallback to old TEMPLATE_DIR \
+    if [ ! -f $SYSC_TEMPLATE ] ; then \
+        TEMPLATE_DIR=/var/adm/fillup-templates \
+        SYSC_TEMPLATE=$TEMPLATE_DIR/sysconfig.$PNAME \
+    fi \
+    SD_NAME="" \
+    %{sysc_fillup}
+
+# add_start_if_needed: internally used by fillup_and_insserv
+%add_start_if_needed() \
+    set -- %{?*} \
+    while [ ${#*} -gt 0 ] ; do \
+       SCRIPTNAME=$1 \
+       SV_VALUE=$2 \
+       shift 2 \
+       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 \
+           /sbin/insserv ${YAST_IS_RUNNING:+-f} -r /etc/init.d/$SCRIPTNAME \
+       elif test "$FIRST_ARG" = "1" -o "$FORCE_YES" = "1" ; then \
+           /sbin/insserv ${YAST_IS_RUNNING:+-f} /etc/init.d/$SCRIPTNAME \
+       fi \
+    done
+
+# macro: insserv_cleanup
+%insserv_cleanup() \
+    /sbin/insserv /etc/init.d
+
+# macro: fillup_only
+#    do the fillup for sysconfig files
+#   template naming convention:
+#     .../fillup-templates/sysconfig.$NAME1[-$NAME2]
+#     NAME1: the name of the sysconfig-file
+#     NAME2: if needed (if more packages fill the
+#            same sysconfig file) the package name
+#   options:
+#           -n set sysconfig name manually
+#           -a use package name as $NAME2
+#           -s use second arg as package-name
+#           -d use a subdirectory of sysconfig
+#              (last arg as directory name)
+%fillup_only(dans) \
+    %{-n:PNAME=%{1}}%{!-n:PNAME=%{name}} \
+    %{-s:SUBPNAME=-%{2}}%{!-s:SUBPNAME=%{-a:-%{name}}} \
+    SYSC_TEMPLATE=%{_fillupdir}/sysconfig.$PNAME$SUBPNAME \
+    # If template not in new %{_fillupdir}, fallback to old TEMPLATE_DIR \
+    if [ ! -f $SYSC_TEMPLATE ] ; then \
+        TEMPLATE_DIR=/var/adm/fillup-templates \
+        SYSC_TEMPLATE=$TEMPLATE_DIR/sysconfig.$PNAME$SUBPNAME \
+    fi \
+    SD_NAME="" \
+    %{-d:%{-s:SD_NAME=%{3}/}%{!-s:SD_NAME=%{2}/}} \
+    %{sysc_fillup} \
+    %nil
+
+# internal only: sysc_fillup
+%sysc_fillup() \
+    if [ -x /bin/fillup ] ; then \
+       if [ -f $SYSC_TEMPLATE ] ; then \
+           echo "Updating /etc/sysconfig/$SD_NAME$PNAME ..." \
+           mkdir -p /etc/sysconfig/$SD_NAME \
+           touch /etc/sysconfig/$SD_NAME$PNAME \
+           /bin/fillup -q /etc/sysconfig/$SD_NAME$PNAME $SYSC_TEMPLATE \
+       fi \
+    else \
+       echo "ERROR: fillup not found. This should not happen. Please compare" \
+       echo "/etc/sysconfig/$PNAME and $TEMPLATE_DIR/sysconfig.$PNAME and" \
+       echo "update by hand." \
+    fi
+
+# macro: rename_sysconfig_variable
+#     as the name says, rename a variable in the file given with -f
+%rename_sysconfig_variable(f:) \
+    %{!-f:echo "missing argument for rename_sysconfig_variable"; exit 1; 
}%{-f:FILE=%{-f*}} \
+    if [ -f $FILE ] ; then \
+       sed -i -e "s/^%{1}=/%{2}=/" $FILE \
+    fi
+
+# macro: remove_and_set
+#      remove variables from sysconfig.$NAME
+#      (both if existant) and set them in the environment
+#      for further handling in postinstall
+#  options: -n set package name
+#           -y default to yes if not found (otherwise no)
+%remove_and_set(n:y) \
+    %{-n:PNAME=%{-n*}}%{!-n:PNAME=%{name}} \
+    DEF_VAL=%{-y:"yes"}%{!-y:"no"} \
+    DEL_TEMPL=%{_fillupdir}/$PNAME.del \
+    rm -f $DEL_TEMPL \
+    for var in %{?*} ; do \
+       printf "#\\n%s=%s\\n" "$var" "$DEF_VAL" >> $DEL_TEMPL \
+    done \
+    if [ -f /etc/sysconfig/$PNAME ] ; then \
+       /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 \
+    fi  \
+    for i in $DEL_TEMPL /etc/sysconfig/$PNAME.deleted.$$ ; do \
+       if [ -f $i ] ; then \
+           . $i \
+           rm -f $i \
+       fi \
+    done
+
+%insserv_force_if_yast() \
+    /sbin/insserv ${YAST_IS_RUNNING:+-f} %{?*}
+
+%run_ldconfig /sbin/ldconfig
+
+# to be removed. deprecated since 11/2019 boo#1152105
+%install_info(:-:) \
+   : # install_info deprecated in favor of file triggers
+
+# to be removed. deprecated since 11/2019 boo#1152105
+%install_info_delete(:-:) \
+   : # install_info_delete deprecated in favor of file triggers
+
+# find-supplements.ksyms parses this macro directly out of the spec file:
+%supplements_kernel_module() \
+    %{expand:%(if ! rpm -q kernel-syms > /dev/null; then echo "%fail Please 
add the kernel-syms package to BuildRequires"; fi)}
+
+%do_profiling 1
+%cflags_profile_generate -fprofile-update=atomic -fprofile-generate
+%cflags_profile_feedback -fprofile-use
+
+%suse_install_update_message() \
+    install -D -m 644 %1 
%buildroot/var/adm/update-messages/%{name}-%{version}-%{release}-%(basename 
%1).txt \
+%nil
+
+%suse_install_update_script() \
+     install -D -m 755 %1 
%buildroot/var/adm/update-scripts/%{name}-%{version}-%{release}-%(basename 
%1).txt \
+%nil
+
+# Template for lang sub-package.
+%lang_package(n:r:b:) \
+%package %{-n:-n %{-n*}-}lang \
+Summary: Translations for package %{-n:%{-n*}}%{!-n:%{name}} \
+Group: System/Localization \
+%{-n:Requires: %{-n*} = %{version}} \
+%{!-n:%{!-r:Requires: %{name} = %{version}}} \
+%{-r:Requires: %{-r*}} \
+Provides: %{-n:%{-n*}}%{!-n:%{name}}-lang-all = %{version} \
+%{-b:Provides: %{-b*}-lang = %{version}} \
+%{-b:Conflicts: %{-b*}-lang} \
+BuildArch: noarch \
+%description %{-n:-n %{-n*}-}lang \
+Provides translations for the \"%{-n:%{-n*}}%{!-n:%{name}}\" package.
+
+# package version comparison macros
+
+# compare two versions, returns -1, 0, 1, ~~~
+%rpm_vercmp() %{lua:print(rpm.expand('%1') == '~~~' and '~~~' or 
rpm.vercmp(rpm.expand('%1'), rpm.expand('%2')))}
+
+# expand to the installed version of a package/provides
+%pkg_version() %(LC_ALL=C rpm -q --whatprovides --qf "%%{version}" "%1" | sed 
-e "s/^no package provides .*/~~~/")
+
+# compare the installed version to a value. returns -1, 0, 1, ~~~
+%pkg_version_cmp() %{expand:%{expand:%%%%{rpm_vercmp %%{pkg_version %1} %%2}}}
+
+# convenience/readability
+%pkg_vcmp() (%{expand:%%{pkg_version_cmp %1 %3}} %2 0)
+
+# to be removed when added to the javapackages-tools package
+%_jvmjardir     %{_libdir}/jvm-exports
+
+# to be removed when no longer needed
+%py_ver                 %(python -c "import sys; v=sys.version_info[:2]; print 
'%%d.%%d'%%v" 2>/dev/null || echo PYTHON-NOT-FOUND)
+%py_prefix              %(python -c "import sys; print sys.prefix" 2>/dev/null 
|| echo PYTHON-NOT-FOUND)
+%py_libdir              %{py_prefix}/%{_lib}/python%{py_ver}
+%py_incdir              %{py_prefix}/include/python%{py_ver}
+%py_sitedir             %{py_libdir}/site-packages
+
+# dropped from rpm package
+%requires_eq() %{expand:%(t=$(echo '%*' | LC_ALL=C xargs -r rpm -q --qf 
'Requires: %%{name} = %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 's/ 
0:/ /' | grep -v "is not"); test -n "$t" || echo "%%{error: %%%%{requires_eq 
%*} does not resolve}"; echo "$t")}
+%requires_ge() %{expand:%(t=$(echo '%*' | LC_ALL=C xargs -r rpm -q --qf 
'Requires: %%{name} >= %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 
's/ 0:/ /' | grep -v "is not"); test -n "$t" || echo "%%{error: 
%%%%{requires_eq %*} does not resolve}"; echo "$t")}
+%__perl                        /usr/bin/perl
+
+# we use the macro as one can easily override it and thus disable LTO for a 
particular package
+%_lto_cflags           -flto=auto
+
+# avoid overwriting files that didn't actually change on disk
+%_minimize_writes      1
+
+# SUSE expects bash for building
+%_buildshell           /usr/bin/bash
+
+# Expands to shell code to seot the compiler/linker environment
+# variables CFLAGS, CXXFLAGS, FFLAGS, FCFLAGS, LDFLAGS if they have
+# not been set already.
+%set_build_flags \
+  CONFIG_SHELL="${CONFIG_SHELL:-/usr/bin/bash}" ; export CONFIG_SHELL ; \
+  CFLAGS="${CFLAGS:-%{?build_cflags}}" ; export CFLAGS ; \
+  CXXFLAGS="${CXXFLAGS:-%{?build_cxxflags}}" ; export CXXFLAGS ; \
+  FFLAGS="${FFLAGS:-%{?build_fflags}}" ; export FFLAGS ; \
+  FCFLAGS="${FCFLAGS:-%{?build_fflags}}" ; export FCFLAGS ; \
+  LDFLAGS="${LDFLAGS:-%{?build_ldflags}}" ; export LDFLAGS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rpm-config-SUSE-20241031/suse_dist_macros.in 
new/rpm-config-SUSE-20250328/suse_dist_macros.in
--- old/rpm-config-SUSE-20241031/suse_dist_macros.in    1970-01-01 
01:00:00.000000000 +0100
+++ new/rpm-config-SUSE-20250328/suse_dist_macros.in    2025-03-28 
17:22:33.000000000 +0100
@@ -0,0 +1,6 @@
+%suse_version @suse_version@
+%sles_version @sles_version@
+%ul_version @ul_version@
+%is_opensuse @is_opensuse@
+%sle_version @sle_version@
+%leap_version @leap_version@
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rpm-config-SUSE-20241031/suse_macros.in 
new/rpm-config-SUSE-20250328/suse_macros.in
--- old/rpm-config-SUSE-20241031/suse_macros.in 2024-10-31 10:33:18.000000000 
+0100
+++ new/rpm-config-SUSE-20250328/suse_macros.in 1970-01-01 01:00:00.000000000 
+0100
@@ -1,309 +0,0 @@
-# need to keep this around for a while
-%suse_check             %{nil}
-
-# directories
-%_infodir               %{_prefix}/share/info
-%_mandir                %{_prefix}/share/man
-%_sysconfdir            /etc
-%_localstatedir         /var
-%_defaultdocdir         %{_usr}/share/doc/packages
-%_fillupdir             %{_usr}/share/fillup-templates
-%_distconfdir           %{_usr}/etc
-%_firmwaredir           %{_usr}/lib/firmware
-
-# package build macros
-%make_install           make install DESTDIR="%{?buildroot}"
-%makeinstall            make DESTDIR="%{?buildroot:%{buildroot}}" install
-%insserv_prereq         insserv sed
-%fillup_prereq          fillup /usr/bin/mkdir /usr/bin/touch
-# to be removed. deprecated since 11/2019 boo#1152105
-# I can't just not define it, as otherwise all specs using it break: [   25s] 
error: line 27: Empty tag: Requires(post):
-%install_info_prereq    /bin/sh
-%suseconfig_fonts_prereq perl aaa_base
-
-# this script calls all scripts in /usr/lib/rpm/brp-suse.d
-%__os_install_post  \
-       /usr/lib/rpm/brp-compress \
-       /usr/lib/rpm/brp-suse  \
-%{nil}
-
-%restart_on_update()   %{expand::%%service_del_postun %{?**}}
-%stop_on_removal()     %{expand:%%service_del_preun %{?**}}
-
-# macro: %configure_kernel_source
-#
-#
-%configure_kernel_source() \
-       if test -d /usr/src/linux ; then \
-           pushd /usr/src/linux \
-           test -f .config || cp arch/%_arch/defconfig.default .config \
-           yes "" | make oldconfig \
-           make dep \
-           popd \
-       fi \
-       %nil
-
-%is_plus %(if test -f /.buildenv ; then source /.buildenv ; if [[ 
"$BUILD_BASENAME" == *+kde ]] ; then echo 1 ; else echo 0 ; fi ; else echo 0 ; 
fi)
-
-%suse_update_libdir() \
-   if [ %_lib != lib ]; then \
-     for file in %{?*} ; do \
-        [ ! -e $file ] && echo "Error:  $file does not exist!" && exit -1 \
-        [ -e $file.nolib64 ] && echo "Error:  $file.nolib64 already exists!" 
&& exit -1 \
-        cp $file $file.nolib64 \
-        echo "patching $file" \
-        sed -e "s,/lib\\\>,/%_lib,g" $file.nolib64 | sed -e 
"s,/%_lib/cpp,/lib/cpp,; s,/usr/%_lib/perl,/usr/lib/perl, ; 
s,/%_lib\\([\$-]\\),/lib\\1,g" > $file \
-       diff -u $file.nolib64 $file \
-        rm -f $file.nolib64 \
-     done; \
-   fi ; \
-
-
-# macro: fillup_and_insserv
-# do the fillup and insserv calls for postinstall
-# options:
-#         -n  (use first argument as name for fillup template filenames
-#              instead of package name)
-#         -f  (skip fillup parts)
-#         -i  (skip insserv parts)
-#         -y  (default start-variable value to yes)
-#             Used only if X-UnitedLinux-Default-Enabled is not specified
-#             in the init script
-#         -Y  (force_yes: always activate, discard setting before update)
-# arguments:
-#         [if "-n" first argument as package name]
-#         Pairs of:
-#            main script name
-#           and
-#            name of (old) START variable (unless -s is given)
-#
-# template for variables into /etc/sysconfig/package:
-#     /usr/share/fillup-templates/sysconfig.package
-%fillup_and_insserv(finpsyY) \
-    %{-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;} \
-    test -n "$FIRST_ARG" || FIRST_ARG=$1 \
-    %{-Y:FORCE_YES=1}%{!-Y:FORCE_YES=0} \
-    set -- %{?*} \
-    %{-n:PNAME=$1 ; shift }%{!-n:PNAME=%{name}} \
-    INSSRV_ARRAY="" \
-    while [ ${#*} -gt 0 ] ; do \
-       SCRIPTNAME=$1 \
-       shift \
-       SV_B='^### BEGIN INIT INFO' \
-       SV_E='^### END INIT INFO' \
-       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` \
-       test "$FORCE_YES" = "1" && SV_VALUE="yes" \
-       test -n "$SV_VALUE" || SV_VALUE=%{-y:"yes"}%{!-y:"no"} \
-       INSSRV_ARRAY="$INSSRV_ARRAY $SCRIPTNAME $SV_VALUE" \
-    done \
-    %{!-f: %{do_real_fillup}} \
-    %{!-i: %{add_start_if_needed $INSSRV_ARRAY } } \
-    %nil
-
-# do_real_fillup: internal macro
-# this part really calls fillup for the appropriate files
-#
-%do_real_fillup() \
-    SYSC_TEMPLATE=%{_fillupdir}/sysconfig.$PNAME \
-    # If template not in new %{_fillupdir}, fallback to old TEMPLATE_DIR \
-    if [ ! -f $SYSC_TEMPLATE ] ; then \
-        TEMPLATE_DIR=/var/adm/fillup-templates \
-        SYSC_TEMPLATE=$TEMPLATE_DIR/sysconfig.$PNAME \
-    fi \
-    SD_NAME="" \
-    %{sysc_fillup}
-
-# add_start_if_needed: internally used by fillup_and_insserv
-%add_start_if_needed() \
-    set -- %{?*} \
-    while [ ${#*} -gt 0 ] ; do \
-       SCRIPTNAME=$1 \
-       SV_VALUE=$2 \
-       shift 2 \
-       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 \
-           /sbin/insserv ${YAST_IS_RUNNING:+-f} -r /etc/init.d/$SCRIPTNAME \
-       elif test "$FIRST_ARG" = "1" -o "$FORCE_YES" = "1" ; then \
-           /sbin/insserv ${YAST_IS_RUNNING:+-f} /etc/init.d/$SCRIPTNAME \
-       fi \
-    done
-
-# macro: insserv_cleanup
-%insserv_cleanup() \
-    /sbin/insserv /etc/init.d
-
-# macro: fillup_only
-#    do the fillup for sysconfig files
-#   template naming convention:
-#     .../fillup-templates/sysconfig.$NAME1[-$NAME2]
-#     NAME1: the name of the sysconfig-file
-#     NAME2: if needed (if more packages fill the
-#            same sysconfig file) the package name
-#   options:
-#           -n set sysconfig name manually
-#           -a use package name as $NAME2
-#           -s use second arg as package-name
-#           -d use a subdirectory of sysconfig
-#              (last arg as directory name)
-%fillup_only(dans) \
-    %{-n:PNAME=%{1}}%{!-n:PNAME=%{name}} \
-    %{-s:SUBPNAME=-%{2}}%{!-s:SUBPNAME=%{-a:-%{name}}} \
-    SYSC_TEMPLATE=%{_fillupdir}/sysconfig.$PNAME$SUBPNAME \
-    # If template not in new %{_fillupdir}, fallback to old TEMPLATE_DIR \
-    if [ ! -f $SYSC_TEMPLATE ] ; then \
-        TEMPLATE_DIR=/var/adm/fillup-templates \
-        SYSC_TEMPLATE=$TEMPLATE_DIR/sysconfig.$PNAME$SUBPNAME \
-    fi \
-    SD_NAME="" \
-    %{-d:%{-s:SD_NAME=%{3}/}%{!-s:SD_NAME=%{2}/}} \
-    %{sysc_fillup} \
-    %nil
-
-# internal only: sysc_fillup
-%sysc_fillup() \
-    if [ -x /bin/fillup ] ; then \
-       if [ -f $SYSC_TEMPLATE ] ; then \
-           echo "Updating /etc/sysconfig/$SD_NAME$PNAME ..." \
-           mkdir -p /etc/sysconfig/$SD_NAME \
-           touch /etc/sysconfig/$SD_NAME$PNAME \
-           /bin/fillup -q /etc/sysconfig/$SD_NAME$PNAME $SYSC_TEMPLATE \
-       fi \
-    else \
-       echo "ERROR: fillup not found. This should not happen. Please compare" \
-       echo "/etc/sysconfig/$PNAME and $TEMPLATE_DIR/sysconfig.$PNAME and" \
-       echo "update by hand." \
-    fi
-
-# macro: rename_sysconfig_variable
-#     as the name says, rename a variable in the file given with -f
-%rename_sysconfig_variable(f:) \
-    %{!-f:echo "missing argument for rename_sysconfig_variable"; exit 1; 
}%{-f:FILE=%{-f*}} \
-    if [ -f $FILE ] ; then \
-       sed -i -e "s/^%{1}=/%{2}=/" $FILE \
-    fi
-
-# macro: remove_and_set
-#      remove variables from sysconfig.$NAME
-#      (both if existant) and set them in the environment
-#      for further handling in postinstall
-#  options: -n set package name
-#           -y default to yes if not found (otherwise no)
-%remove_and_set(n:y) \
-    %{-n:PNAME=%{-n*}}%{!-n:PNAME=%{name}} \
-    DEF_VAL=%{-y:"yes"}%{!-y:"no"} \
-    DEL_TEMPL=%{_fillupdir}/$PNAME.del \
-    rm -f $DEL_TEMPL \
-    for var in %{?*} ; do \
-       printf "#\\n%s=%s\\n" "$var" "$DEF_VAL" >> $DEL_TEMPL \
-    done \
-    if [ -f /etc/sysconfig/$PNAME ] ; then \
-       /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 \
-    fi  \
-    for i in $DEL_TEMPL /etc/sysconfig/$PNAME.deleted.$$ ; do \
-       if [ -f $i ] ; then \
-           . $i \
-           rm -f $i \
-       fi \
-    done
-
-%insserv_force_if_yast() \
-    /sbin/insserv ${YAST_IS_RUNNING:+-f} %{?*}
-
-%run_ldconfig /sbin/ldconfig
-
-# to be removed. deprecated since 11/2019 boo#1152105
-%install_info(:-:) \
-   : # install_info deprecated in favor of file triggers
-
-# to be removed. deprecated since 11/2019 boo#1152105
-%install_info_delete(:-:) \
-   : # install_info_delete deprecated in favor of file triggers
-
-# find-supplements.ksyms parses this macro directly out of the spec file:
-%supplements_kernel_module() \
-    %{expand:%(if ! rpm -q kernel-syms > /dev/null; then echo "%fail Please 
add the kernel-syms package to BuildRequires"; fi)}
-
-%suse_version @suse_version@
-%sles_version @sles_version@
-%ul_version @ul_version@
-%is_opensuse @is_opensuse@
-%sle_version @sle_version@
-
-%do_profiling 1
-%cflags_profile_generate -fprofile-update=atomic -fprofile-generate
-%cflags_profile_feedback -fprofile-use
-
-%suse_install_update_message() \
-    install -D -m 644 %1 
%buildroot/var/adm/update-messages/%{name}-%{version}-%{release}-%(basename 
%1).txt \
-%nil
-
-%suse_install_update_script() \
-     install -D -m 755 %1 
%buildroot/var/adm/update-scripts/%{name}-%{version}-%{release}-%(basename 
%1).txt \
-%nil
-
-# Template for lang sub-package.
-%lang_package(n:r:b:) \
-%package %{-n:-n %{-n*}-}lang \
-Summary: Translations for package %{-n:%{-n*}}%{!-n:%{name}} \
-Group: System/Localization \
-%{-n:Requires: %{-n*} = %{version}} \
-%{!-n:%{!-r:Requires: %{name} = %{version}}} \
-%{-r:Requires: %{-r*}} \
-Provides: %{-n:%{-n*}}%{!-n:%{name}}-lang-all = %{version} \
-%{-b:Provides: %{-b*}-lang = %{version}} \
-%{-b:Conflicts: %{-b*}-lang} \
-BuildArch: noarch \
-%description %{-n:-n %{-n*}-}lang \
-Provides translations for the \"%{-n:%{-n*}}%{!-n:%{name}}\" package.
-
-# package version comparison macros
-
-# compare two versions, returns -1, 0, 1, ~~~
-%rpm_vercmp() %{lua:print(rpm.expand('%1') == '~~~' and '~~~' or 
rpm.vercmp(rpm.expand('%1'), rpm.expand('%2')))}
-
-# expand to the installed version of a package/provides
-%pkg_version() %(LC_ALL=C rpm -q --whatprovides --qf "%%{version}" "%1" | sed 
-e "s/^no package provides .*/~~~/")
-
-# compare the installed version to a value. returns -1, 0, 1, ~~~
-%pkg_version_cmp() %{expand:%{expand:%%%%{rpm_vercmp %%{pkg_version %1} %%2}}}
-
-# convenience/readability
-%pkg_vcmp() (%{expand:%%{pkg_version_cmp %1 %3}} %2 0)
-
-# to be removed when added to the javapackages-tools package
-%_jvmjardir     %{_libdir}/jvm-exports
-
-# to be removed when no longer needed
-%py_ver                 %(python -c "import sys; v=sys.version_info[:2]; print 
'%%d.%%d'%%v" 2>/dev/null || echo PYTHON-NOT-FOUND)
-%py_prefix              %(python -c "import sys; print sys.prefix" 2>/dev/null 
|| echo PYTHON-NOT-FOUND)
-%py_libdir              %{py_prefix}/%{_lib}/python%{py_ver}
-%py_incdir              %{py_prefix}/include/python%{py_ver}
-%py_sitedir             %{py_libdir}/site-packages
-
-# dropped from rpm package
-%requires_eq() %{expand:%(t=$(echo '%*' | LC_ALL=C xargs -r rpm -q --qf 
'Requires: %%{name} = %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 's/ 
0:/ /' | grep -v "is not"); test -n "$t" || echo "%%{error: %%%%{requires_eq 
%*} does not resolve}"; echo $t)}
-%requires_ge() %{expand:%(t=$(echo '%*' | LC_ALL=C xargs -r rpm -q --qf 
'Requires: %%{name} >= %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 
's/ 0:/ /' | grep -v "is not"); test -n "$t" || echo "%%{error: 
%%%%{requires_eq %*} does not resolve}"; echo $t)}
-%__perl                        /usr/bin/perl
-
-# we use the macro as one can easily override it and thus disable LTO for a 
particular package
-%_lto_cflags           -flto=auto
-
-# avoid overwriting files that didn't actually change on disk
-%_minimize_writes      1
-
-# SUSE expects bash for building
-%_buildshell           /usr/bin/bash
-
-# Expands to shell code to seot the compiler/linker environment
-# variables CFLAGS, CXXFLAGS, FFLAGS, FCFLAGS, LDFLAGS if they have
-# not been set already.
-%set_build_flags \
-  CONFIG_SHELL="${CONFIG_SHELL:-/usr/bin/bash}" ; export CONFIG_SHELL ; \
-  CFLAGS="${CFLAGS:-%{?build_cflags}}" ; export CFLAGS ; \
-  CXXFLAGS="${CXXFLAGS:-%{?build_cxxflags}}" ; export CXXFLAGS ; \
-  FFLAGS="${FFLAGS:-%{?build_fflags}}" ; export FFLAGS ; \
-  FCFLAGS="${FCFLAGS:-%{?build_fflags}}" ; export FCFLAGS ; \
-  LDFLAGS="${LDFLAGS:-%{?build_ldflags}}" ; export LDFLAGS

Reply via email to