From 962a6ed9e07fa68c006449c6279866372b946dd80003caaff261421c67c89b1e Mon Sep 17 00:00:00 2001 From: Andrey Karepin Date: Sat, 7 Feb 2015 07:12:19 +0000 Subject: [PATCH 1/2] Accepting request 284208 from home:daniel_dpi:branches:network Just a little debug of the .spec to build the SLES11-SP3 version. OBS-URL: https://build.opensuse.org/request/show/284208 OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=73 --- openvswitch.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/openvswitch.spec b/openvswitch.spec index 00be759..95b0ba3 100644 --- a/openvswitch.spec +++ b/openvswitch.spec @@ -330,14 +330,17 @@ install -m 644 %{SOURCE3} \ %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}-switch install -m 755 %{SOURCE2} \ %{buildroot}/%{_sysconfdir}/init.d/%{name}-switch - ln -sf %_sbindir/service %{buildroot}%{_sbindir}/rc%{name}-switch install -m 755 %{SOURCE5} \ %{buildroot}/%{_sysconfdir}/init.d/%{name}-vtep - ln -sf %_sbindir/service %{buildroot}%{_sbindir}/rc%{name}-vtep %if 0%{?suse_version} > 1230 +ln -sf %_sbindir/service %{buildroot}%{_sbindir}/rc%{name}-switch +ln -sf %_sbindir/service %{buildroot}%{_sbindir}/rc%{name}-vtep install -D -m 644 %{SOURCE7} \ %{buildroot}%{_unitdir}/openvswitch.service +%else +ln -sf %{_sysconfdir}/init.d/%{name}-switch %{buildroot}%{_sbindir}/rc%{name}-switch +ln -sf %{_sysconfdir}/init.d/%{name}-vtep %{buildroot}%{_sbindir}/rc%{name}-vtep %endif install -d -m 755 %{buildroot}/%{_sysconfdir}/sysconfig From fcef2cc6182f03a7c4c91e7611e29ba8724d516026aaead25455bc70f9ed831d Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 13 Jan 2016 18:17:58 +0000 Subject: [PATCH 2/2] Accepting request 352820 from home:1Antoine1:branches:network - Add calls to /sbin/ldconfig in %post and %postun - Fix typo in Url OBS-URL: https://build.opensuse.org/request/show/352820 OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=74 --- openvswitch.changes | 6 ++++++ openvswitch.spec | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/openvswitch.changes b/openvswitch.changes index b30766f..bfeff3b 100644 --- a/openvswitch.changes +++ b/openvswitch.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Jan 10 17:55:22 UTC 2016 - antoine.belvire@laposte.net + +- Add calls to /sbin/ldconfig in %post and %postun +- Fix typo in Url + ------------------------------------------------------------------- Sun Dec 28 21:27:49 UTC 2014 - andrea@opensuse.org diff --git a/openvswitch.spec b/openvswitch.spec index 95b0ba3..468542f 100644 --- a/openvswitch.spec +++ b/openvswitch.spec @@ -29,7 +29,7 @@ Release: 0 Summary: An open source, production quality, multilayer virtual switch License: Apache-2.0 Group: Productivity/Networking/System -Url: http://openswitch.org/ +Url: http://openvswitch.org/ Source0: http://openvswitch.org/releases/%{name}-%{version}.tar.gz Source1: preamble Source2: openvswitch-switch.init @@ -371,6 +371,9 @@ rmdir %{buildroot}%{_datadir}/%{name}/python %fdupes %{buildroot}%{py_sitedir} +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + %pre switch %if 0%{?suse_version} > 1230 %service_add_pre openvswitch.service