From 85df621f92c1c69e7d306ebbe43450844cb11fab95fdd0e4789d3e52ff905cdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Fri, 17 Feb 2017 23:05:07 +0000 Subject: [PATCH] Accepting request 458658 from GNOME:Next Fix build with the latest util-linux submission in Staging:C OBS-URL: https://build.opensuse.org/request/show/458658 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/avahi?expand=0&rev=133 --- avahi-glib2.spec | 33 ++++++++------------------------- avahi-mono.spec | 33 ++++++++------------------------- avahi-qt4.spec | 33 ++++++++------------------------- avahi.changes | 13 ++++++++++++- avahi.spec | 33 ++++++++------------------------- avahi_spec-prepare.sh | 24 ------------------------ 6 files changed, 44 insertions(+), 125 deletions(-) diff --git a/avahi-glib2.spec b/avahi-glib2.spec index f858a25..b00870f 100644 --- a/avahi-glib2.spec +++ b/avahi-glib2.spec @@ -1,7 +1,7 @@ # # spec file for package avahi-glib2 # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -119,9 +119,7 @@ BuildRequires: doxygen BuildRequires: graphviz BuildRequires: python-gdbm BuildRequires: zlib-devel -%if %suse_version >= 1210 BuildRequires: pkgconfig(systemd) -%endif # For python bindings and utilities: #BuildRequires: dbus-1-python #Requires: dbus-1 @@ -235,9 +233,9 @@ across LAN segments. %package -n libdns_sd Summary: mDNSResponder Compatibility Package for D-BUS Service for Zeroconf/Bonjour -Group: System/Libraries # mDNSResponder-lib used unversioned soname. # Provide full compatibility with mDNSResponder (FIXME: should be fixed in the package): +Group: System/Libraries %ifarch ia64 x86_64 ppc64 s390x Provides: libdns_sd.so()(64bit) %else @@ -272,8 +270,8 @@ correct mDNS reflection across LAN segments. %package -n libhowl0 Summary: Howl Compatibility Package for D-BUS Service for Zeroconf/Bonjour -Group: System/Libraries # Old name used for <= 10.3: +Group: System/Libraries Provides: avahi-compat-howl = %{version} Obsoletes: avahi-compat-howl < %{version} @@ -321,8 +319,8 @@ elsewhere, like correct mDNS reflection across LAN segments. %package autoipd Summary: IPv4LL Service for Zeroconf and Bonjour -Group: Productivity/Networking/Other # Split provides for upgrade from openSUSE <= 12.3 and SLE <= 11. +Group: Productivity/Networking/Other Provides: avahi:%{_sbindir}/avahi-autoipd # Disable this conflict for now, it breaks staging, and it's pretty much obsolete, but can go back in if needed once a new version of avahi is released. # File conflict for avahi-autoipd openSUSE <= 12.3 SLE <= 11 @@ -359,8 +357,8 @@ across LAN segments. %package -n libavahi-devel Summary: Include Files and Libraries Mandatory for Development -Group: Development/Libraries/C and C++ # +Group: Development/Libraries/C and C++ Requires: %{_name} = %{version} Requires: dbus-1-devel Requires: glibc-devel @@ -467,8 +465,8 @@ across LAN segments. %package -n libavahi-glib1 Summary: Glib Bindings for avahi, the D-BUS Service for Zeroconf and Bonjour -Group: System/Libraries # Old name used for <= 10.3: +Group: System/Libraries Provides: avahi-glib = %{version} Obsoletes: avahi-glib < %{version} @@ -624,8 +622,8 @@ across LAN segments. %package -n libavahi-qt3-1 Summary: Qt3 Bindings for avahi, the D-BUS Service for Zeroconf and Bonjour -Group: System/GUI/KDE # Old name used for <= 10.3: +Group: System/GUI/KDE Provides: avahi-qt3 = %{version} Obsoletes: avahi-qt3 < %{version} @@ -673,8 +671,8 @@ correct mDNS reflection across LAN segments. %package -n libavahi-qt4-1 Summary: Qt4 Bindings for avahi, the D-BUS Service for Zeroconf and Bonjour -Group: System/GUI/KDE # Old name used for <= 10.3: +Group: System/GUI/KDE Provides: avahi-qt4 = %{version} Obsoletes: avahi-qt4 < %{version} @@ -965,9 +963,7 @@ rm $RPM_BUILD_ROOT%{_libdir}/pkgconfig/avahi-ui.pc %pre %{_sbindir}/groupadd -r avahi 2> /dev/null || : %{_sbindir}/useradd -r -s /bin/false -c "User for Avahi" -d /run/avahi-daemon -g avahi avahi 2> /dev/null || : -%if %suse_version >= 1210 %service_add_pre avahi-dnsconfd.service avahi-daemon.service -%endif # bnc#853845,bnc#851953: do not start by default under # sysconfig as this breaks vlan,bridge,bonding setups # in pre to revert old default setting from template. @@ -983,18 +979,12 @@ fi %post %{fillup_only -n avahi} %{fillup_only -ns security checksig} -%if %suse_version >= 1210 %service_add_post avahi-dnsconfd.service avahi-daemon.service -%endif %preun -%if %suse_version >= 1210 %service_del_preun avahi-dnsconfd.service avahi-daemon.service -%endif %postun -%insserv_cleanup -%if %suse_version >= 1210 %service_del_postun avahi-dnsconfd.service avahi-daemon.service %pre autoipd @@ -1005,7 +995,6 @@ fi %{fillup_only -ns avahi autoipd} # Change ownership of /var/lib/avahi-autoipd after upgrade from openSUSE <= 12.3 and SLE <= 11. chown -R avahi-autoipd:avahi-autoipd %{_localstatedir}/lib/avahi-autoipd -%endif %post -n libavahi-client3 -p /sbin/ldconfig @@ -1026,12 +1015,6 @@ chown -R avahi-autoipd:avahi-autoipd %{_localstatedir}/lib/avahi-autoipd %post -n libhowl0 -p /sbin/ldconfig %postun -n libhowl0 -p /sbin/ldconfig - -%preun -n python-avahi -%insserv_cleanup - -%postun -n python-avahi -%insserv_cleanup %endif %if %build_glib2 diff --git a/avahi-mono.spec b/avahi-mono.spec index fa40336..b940efb 100644 --- a/avahi-mono.spec +++ b/avahi-mono.spec @@ -1,7 +1,7 @@ # # spec file for package avahi-mono # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -119,9 +119,7 @@ BuildRequires: doxygen BuildRequires: graphviz BuildRequires: python-gdbm BuildRequires: zlib-devel -%if %suse_version >= 1210 BuildRequires: pkgconfig(systemd) -%endif # For python bindings and utilities: #BuildRequires: dbus-1-python #Requires: dbus-1 @@ -234,9 +232,9 @@ across LAN segments. %package -n libdns_sd Summary: mDNSResponder Compatibility Package for D-BUS Service for Zeroconf/Bonjour -Group: System/Libraries # mDNSResponder-lib used unversioned soname. # Provide full compatibility with mDNSResponder (FIXME: should be fixed in the package): +Group: System/Libraries %ifarch ia64 x86_64 ppc64 s390x Provides: libdns_sd.so()(64bit) %else @@ -271,8 +269,8 @@ correct mDNS reflection across LAN segments. %package -n libhowl0 Summary: Howl Compatibility Package for D-BUS Service for Zeroconf/Bonjour -Group: System/Libraries # Old name used for <= 10.3: +Group: System/Libraries Provides: avahi-compat-howl = %{version} Obsoletes: avahi-compat-howl < %{version} @@ -320,8 +318,8 @@ elsewhere, like correct mDNS reflection across LAN segments. %package autoipd Summary: IPv4LL Service for Zeroconf and Bonjour -Group: Productivity/Networking/Other # Split provides for upgrade from openSUSE <= 12.3 and SLE <= 11. +Group: Productivity/Networking/Other Provides: avahi:%{_sbindir}/avahi-autoipd # Disable this conflict for now, it breaks staging, and it's pretty much obsolete, but can go back in if needed once a new version of avahi is released. # File conflict for avahi-autoipd openSUSE <= 12.3 SLE <= 11 @@ -358,8 +356,8 @@ across LAN segments. %package -n libavahi-devel Summary: Include Files and Libraries Mandatory for Development -Group: Development/Libraries/C and C++ # +Group: Development/Libraries/C and C++ Requires: %{_name} = %{version} Requires: dbus-1-devel Requires: glibc-devel @@ -466,8 +464,8 @@ across LAN segments. %package -n libavahi-glib1 Summary: Glib Bindings for avahi, the D-BUS Service for Zeroconf and Bonjour -Group: System/Libraries # Old name used for <= 10.3: +Group: System/Libraries Provides: avahi-glib = %{version} Obsoletes: avahi-glib < %{version} @@ -623,8 +621,8 @@ across LAN segments. %package -n libavahi-qt3-1 Summary: Qt3 Bindings for avahi, the D-BUS Service for Zeroconf and Bonjour -Group: System/GUI/KDE # Old name used for <= 10.3: +Group: System/GUI/KDE Provides: avahi-qt3 = %{version} Obsoletes: avahi-qt3 < %{version} @@ -672,8 +670,8 @@ correct mDNS reflection across LAN segments. %package -n libavahi-qt4-1 Summary: Qt4 Bindings for avahi, the D-BUS Service for Zeroconf and Bonjour -Group: System/GUI/KDE # Old name used for <= 10.3: +Group: System/GUI/KDE Provides: avahi-qt4 = %{version} Obsoletes: avahi-qt4 < %{version} @@ -965,9 +963,7 @@ rm $RPM_BUILD_ROOT%{_libdir}/pkgconfig/avahi-ui.pc %pre %{_sbindir}/groupadd -r avahi 2> /dev/null || : %{_sbindir}/useradd -r -s /bin/false -c "User for Avahi" -d /run/avahi-daemon -g avahi avahi 2> /dev/null || : -%if %suse_version >= 1210 %service_add_pre avahi-dnsconfd.service avahi-daemon.service -%endif # bnc#853845,bnc#851953: do not start by default under # sysconfig as this breaks vlan,bridge,bonding setups # in pre to revert old default setting from template. @@ -983,18 +979,12 @@ fi %post %{fillup_only -n avahi} %{fillup_only -ns security checksig} -%if %suse_version >= 1210 %service_add_post avahi-dnsconfd.service avahi-daemon.service -%endif %preun -%if %suse_version >= 1210 %service_del_preun avahi-dnsconfd.service avahi-daemon.service -%endif %postun -%insserv_cleanup -%if %suse_version >= 1210 %service_del_postun avahi-dnsconfd.service avahi-daemon.service %pre autoipd @@ -1005,7 +995,6 @@ fi %{fillup_only -ns avahi autoipd} # Change ownership of /var/lib/avahi-autoipd after upgrade from openSUSE <= 12.3 and SLE <= 11. chown -R avahi-autoipd:avahi-autoipd %{_localstatedir}/lib/avahi-autoipd -%endif %post -n libavahi-client3 -p /sbin/ldconfig @@ -1026,12 +1015,6 @@ chown -R avahi-autoipd:avahi-autoipd %{_localstatedir}/lib/avahi-autoipd %post -n libhowl0 -p /sbin/ldconfig %postun -n libhowl0 -p /sbin/ldconfig - -%preun -n python-avahi -%insserv_cleanup - -%postun -n python-avahi -%insserv_cleanup %endif %if %build_glib2 diff --git a/avahi-qt4.spec b/avahi-qt4.spec index 5b8ad4a..6fbf151 100644 --- a/avahi-qt4.spec +++ b/avahi-qt4.spec @@ -1,7 +1,7 @@ # # spec file for package avahi-qt4 # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -119,9 +119,7 @@ BuildRequires: doxygen BuildRequires: graphviz BuildRequires: python-gdbm BuildRequires: zlib-devel -%if %suse_version >= 1210 BuildRequires: pkgconfig(systemd) -%endif # For python bindings and utilities: #BuildRequires: dbus-1-python #Requires: dbus-1 @@ -237,9 +235,9 @@ across LAN segments. %package -n libdns_sd Summary: mDNSResponder Compatibility Package for D-BUS Service for Zeroconf/Bonjour -Group: System/Libraries # mDNSResponder-lib used unversioned soname. # Provide full compatibility with mDNSResponder (FIXME: should be fixed in the package): +Group: System/Libraries %ifarch ia64 x86_64 ppc64 s390x Provides: libdns_sd.so()(64bit) %else @@ -274,8 +272,8 @@ correct mDNS reflection across LAN segments. %package -n libhowl0 Summary: Howl Compatibility Package for D-BUS Service for Zeroconf/Bonjour -Group: System/Libraries # Old name used for <= 10.3: +Group: System/Libraries Provides: avahi-compat-howl = %{version} Obsoletes: avahi-compat-howl < %{version} @@ -323,8 +321,8 @@ elsewhere, like correct mDNS reflection across LAN segments. %package autoipd Summary: IPv4LL Service for Zeroconf and Bonjour -Group: Productivity/Networking/Other # Split provides for upgrade from openSUSE <= 12.3 and SLE <= 11. +Group: Productivity/Networking/Other Provides: avahi:%{_sbindir}/avahi-autoipd # Disable this conflict for now, it breaks staging, and it's pretty much obsolete, but can go back in if needed once a new version of avahi is released. # File conflict for avahi-autoipd openSUSE <= 12.3 SLE <= 11 @@ -361,8 +359,8 @@ across LAN segments. %package -n libavahi-devel Summary: Include Files and Libraries Mandatory for Development -Group: Development/Libraries/C and C++ # +Group: Development/Libraries/C and C++ Requires: %{_name} = %{version} Requires: dbus-1-devel Requires: glibc-devel @@ -469,8 +467,8 @@ across LAN segments. %package -n libavahi-glib1 Summary: Glib Bindings for avahi, the D-BUS Service for Zeroconf and Bonjour -Group: System/Libraries # Old name used for <= 10.3: +Group: System/Libraries Provides: avahi-glib = %{version} Obsoletes: avahi-glib < %{version} @@ -626,8 +624,8 @@ across LAN segments. %package -n libavahi-qt3-1 Summary: Qt3 Bindings for avahi, the D-BUS Service for Zeroconf and Bonjour -Group: System/GUI/KDE # Old name used for <= 10.3: +Group: System/GUI/KDE Provides: avahi-qt3 = %{version} Obsoletes: avahi-qt3 < %{version} @@ -675,8 +673,8 @@ correct mDNS reflection across LAN segments. %package -n libavahi-qt4-1 Summary: Qt4 Bindings for avahi, the D-BUS Service for Zeroconf and Bonjour -Group: System/GUI/KDE # Old name used for <= 10.3: +Group: System/GUI/KDE Provides: avahi-qt4 = %{version} Obsoletes: avahi-qt4 < %{version} @@ -967,9 +965,7 @@ rm $RPM_BUILD_ROOT%{_libdir}/pkgconfig/avahi-ui.pc %pre %{_sbindir}/groupadd -r avahi 2> /dev/null || : %{_sbindir}/useradd -r -s /bin/false -c "User for Avahi" -d /run/avahi-daemon -g avahi avahi 2> /dev/null || : -%if %suse_version >= 1210 %service_add_pre avahi-dnsconfd.service avahi-daemon.service -%endif # bnc#853845,bnc#851953: do not start by default under # sysconfig as this breaks vlan,bridge,bonding setups # in pre to revert old default setting from template. @@ -985,18 +981,12 @@ fi %post %{fillup_only -n avahi} %{fillup_only -ns security checksig} -%if %suse_version >= 1210 %service_add_post avahi-dnsconfd.service avahi-daemon.service -%endif %preun -%if %suse_version >= 1210 %service_del_preun avahi-dnsconfd.service avahi-daemon.service -%endif %postun -%insserv_cleanup -%if %suse_version >= 1210 %service_del_postun avahi-dnsconfd.service avahi-daemon.service %pre autoipd @@ -1007,7 +997,6 @@ fi %{fillup_only -ns avahi autoipd} # Change ownership of /var/lib/avahi-autoipd after upgrade from openSUSE <= 12.3 and SLE <= 11. chown -R avahi-autoipd:avahi-autoipd %{_localstatedir}/lib/avahi-autoipd -%endif %post -n libavahi-client3 -p /sbin/ldconfig @@ -1028,12 +1017,6 @@ chown -R avahi-autoipd:avahi-autoipd %{_localstatedir}/lib/avahi-autoipd %post -n libhowl0 -p /sbin/ldconfig %postun -n libhowl0 -p /sbin/ldconfig - -%preun -n python-avahi -%insserv_cleanup - -%postun -n python-avahi -%insserv_cleanup %endif %if %build_glib2 diff --git a/avahi.changes b/avahi.changes index db0d1c0..70a606c 100644 --- a/avahi.changes +++ b/avahi.changes @@ -1,7 +1,18 @@ +------------------------------------------------------------------- +Wed Feb 15 17:58:46 UTC 2017 - dimstar@opensuse.org + +- Drop %insserv_cleanup scriptlets: it's been a while that avahi + did not install any sysV init scripts anymore. +- Simplify avahi_spec-prepare.sh: OBS is well able to handle macros + in package names by now. +- Drop conditions to only handle systemd services on openSUSE > + 12.1; it's been long that we did not ship the sysv scripts + anymore and openSUSE 12.1 is long EOL. + ------------------------------------------------------------------- Mon Jul 11 18:31:35 UTC 2016 - mgorse@suse.com -- Replace avahi-0.6.31-systemd-order.patch with +- Replace avahi-0.6.31-systemd-order.patch with avahi-0.6.32-suppress-resolv-conf-warning.patch: only warn on missing resolv.conf if the options that use it are enabled. https://github.com/lathiat/avahi/pull/63 diff --git a/avahi.spec b/avahi.spec index 43469a0..473186e 100644 --- a/avahi.spec +++ b/avahi.spec @@ -1,7 +1,7 @@ # # spec file for package avahi # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -121,9 +121,7 @@ BuildRequires: doxygen BuildRequires: graphviz BuildRequires: python-gdbm BuildRequires: zlib-devel -%if %suse_version >= 1210 BuildRequires: pkgconfig(systemd) -%endif # For python bindings and utilities: #BuildRequires: dbus-1-python #Requires: dbus-1 @@ -237,9 +235,9 @@ across LAN segments. %package -n libdns_sd Summary: mDNSResponder Compatibility Package for D-BUS Service for Zeroconf/Bonjour -Group: System/Libraries # mDNSResponder-lib used unversioned soname. # Provide full compatibility with mDNSResponder (FIXME: should be fixed in the package): +Group: System/Libraries %ifarch ia64 x86_64 ppc64 s390x Provides: libdns_sd.so()(64bit) %else @@ -274,8 +272,8 @@ correct mDNS reflection across LAN segments. %package -n libhowl0 Summary: Howl Compatibility Package for D-BUS Service for Zeroconf/Bonjour -Group: System/Libraries # Old name used for <= 10.3: +Group: System/Libraries Provides: avahi-compat-howl = %{version} Obsoletes: avahi-compat-howl < %{version} @@ -323,8 +321,8 @@ elsewhere, like correct mDNS reflection across LAN segments. %package autoipd Summary: IPv4LL Service for Zeroconf and Bonjour -Group: Productivity/Networking/Other # Split provides for upgrade from openSUSE <= 12.3 and SLE <= 11. +Group: Productivity/Networking/Other Provides: avahi:%{_sbindir}/avahi-autoipd # Disable this conflict for now, it breaks staging, and it's pretty much obsolete, but can go back in if needed once a new version of avahi is released. # File conflict for avahi-autoipd openSUSE <= 12.3 SLE <= 11 @@ -361,8 +359,8 @@ across LAN segments. %package -n libavahi-devel Summary: Include Files and Libraries Mandatory for Development -Group: Development/Libraries/C and C++ # +Group: Development/Libraries/C and C++ Requires: %{_name} = %{version} Requires: dbus-1-devel Requires: glibc-devel @@ -469,8 +467,8 @@ across LAN segments. %package -n libavahi-glib1 Summary: Glib Bindings for avahi, the D-BUS Service for Zeroconf and Bonjour -Group: System/Libraries # Old name used for <= 10.3: +Group: System/Libraries Provides: avahi-glib = %{version} Obsoletes: avahi-glib < %{version} @@ -626,8 +624,8 @@ across LAN segments. %package -n libavahi-qt3-1 Summary: Qt3 Bindings for avahi, the D-BUS Service for Zeroconf and Bonjour -Group: System/GUI/KDE # Old name used for <= 10.3: +Group: System/GUI/KDE Provides: avahi-qt3 = %{version} Obsoletes: avahi-qt3 < %{version} @@ -675,8 +673,8 @@ correct mDNS reflection across LAN segments. %package -n libavahi-qt4-1 Summary: Qt4 Bindings for avahi, the D-BUS Service for Zeroconf and Bonjour -Group: System/GUI/KDE # Old name used for <= 10.3: +Group: System/GUI/KDE Provides: avahi-qt4 = %{version} Obsoletes: avahi-qt4 < %{version} @@ -967,9 +965,7 @@ rm $RPM_BUILD_ROOT%{_libdir}/pkgconfig/avahi-ui.pc %pre %{_sbindir}/groupadd -r avahi 2> /dev/null || : %{_sbindir}/useradd -r -s /bin/false -c "User for Avahi" -d /run/avahi-daemon -g avahi avahi 2> /dev/null || : -%if %suse_version >= 1210 %service_add_pre avahi-dnsconfd.service avahi-daemon.service -%endif # bnc#853845,bnc#851953: do not start by default under # sysconfig as this breaks vlan,bridge,bonding setups # in pre to revert old default setting from template. @@ -985,18 +981,12 @@ fi %post %{fillup_only -n avahi} %{fillup_only -ns security checksig} -%if %suse_version >= 1210 %service_add_post avahi-dnsconfd.service avahi-daemon.service -%endif %preun -%if %suse_version >= 1210 %service_del_preun avahi-dnsconfd.service avahi-daemon.service -%endif %postun -%insserv_cleanup -%if %suse_version >= 1210 %service_del_postun avahi-dnsconfd.service avahi-daemon.service %pre autoipd @@ -1007,7 +997,6 @@ fi %{fillup_only -ns avahi autoipd} # Change ownership of /var/lib/avahi-autoipd after upgrade from openSUSE <= 12.3 and SLE <= 11. chown -R avahi-autoipd:avahi-autoipd %{_localstatedir}/lib/avahi-autoipd -%endif %post -n libavahi-client3 -p /sbin/ldconfig @@ -1028,12 +1017,6 @@ chown -R avahi-autoipd:avahi-autoipd %{_localstatedir}/lib/avahi-autoipd %post -n libhowl0 -p /sbin/ldconfig %postun -n libhowl0 -p /sbin/ldconfig - -%preun -n python-avahi -%insserv_cleanup - -%postun -n python-avahi -%insserv_cleanup %endif %if %build_glib2 diff --git a/avahi_spec-prepare.sh b/avahi_spec-prepare.sh index 3c5b912..0cf260d 100644 --- a/avahi_spec-prepare.sh +++ b/avahi_spec-prepare.sh @@ -13,30 +13,6 @@ if ! test -f $1/$ORIG_SPEC.spec ; then exit fi -for PKGNAME in avahi-client avahi-common avahi-core avahi-ui avahi-glib avahi-gobject avahi-qt4 ; do - # Packages with name ending by number needs separator - if test x`echo $PKGNAME | sed "s/.*[0-9]$//"` = x ; then - SEPARATOR=- - else - SEPARATOR= - fi - sed -i " - 1,/%changelog/ { - # Copy ${PKGNAME//-/_}_soname to hold space - /^%define ${PKGNAME//-/_}_soname / { - h; - s/^%define ${PKGNAME//-/_}_soname //; - x; - }; - - # Update ${PKGNAME}_soname everywhere - /$PKGNAME$SEPARATOR[0-9][0-9]*\([[:space:]].*\|\)\$/ { - G; - s/$PKGNAME$SEPARATOR[0-9][0-9]*\([[:space:]].*\|\)\n\(.*\)/$PKGNAME$SEPARATOR\2\1/; - }; - };" $1/$ORIG_SPEC.spec -done - # Edit file to fit -mono build needs: sed ' s/spec file for package avahi/spec file for package avahi-mono/;