Dominique Leuenberger 2016-01-15 09:41:44 +00:00 committed by Git OBS Bridge
commit 217af8ad30
2 changed files with 15 additions and 3 deletions

View File

@ -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 Sun Dec 28 21:27:49 UTC 2014 - andrea@opensuse.org

View File

@ -29,7 +29,7 @@ Release: 0
Summary: An open source, production quality, multilayer virtual switch Summary: An open source, production quality, multilayer virtual switch
License: Apache-2.0 License: Apache-2.0
Group: Productivity/Networking/System Group: Productivity/Networking/System
Url: http://openswitch.org/ Url: http://openvswitch.org/
Source0: http://openvswitch.org/releases/%{name}-%{version}.tar.gz Source0: http://openvswitch.org/releases/%{name}-%{version}.tar.gz
Source1: preamble Source1: preamble
Source2: openvswitch-switch.init Source2: openvswitch-switch.init
@ -330,14 +330,17 @@ install -m 644 %{SOURCE3} \
%{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}-switch %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}-switch
install -m 755 %{SOURCE2} \ install -m 755 %{SOURCE2} \
%{buildroot}/%{_sysconfdir}/init.d/%{name}-switch %{buildroot}/%{_sysconfdir}/init.d/%{name}-switch
ln -sf %_sbindir/service %{buildroot}%{_sbindir}/rc%{name}-switch
install -m 755 %{SOURCE5} \ install -m 755 %{SOURCE5} \
%{buildroot}/%{_sysconfdir}/init.d/%{name}-vtep %{buildroot}/%{_sysconfdir}/init.d/%{name}-vtep
ln -sf %_sbindir/service %{buildroot}%{_sbindir}/rc%{name}-vtep
%if 0%{?suse_version} > 1230 %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} \ install -D -m 644 %{SOURCE7} \
%{buildroot}%{_unitdir}/openvswitch.service %{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 %endif
install -d -m 755 %{buildroot}/%{_sysconfdir}/sysconfig install -d -m 755 %{buildroot}/%{_sysconfdir}/sysconfig
@ -368,6 +371,9 @@ rmdir %{buildroot}%{_datadir}/%{name}/python
%fdupes %{buildroot}%{py_sitedir} %fdupes %{buildroot}%{py_sitedir}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%pre switch %pre switch
%if 0%{?suse_version} > 1230 %if 0%{?suse_version} > 1230
%service_add_pre openvswitch.service %service_add_pre openvswitch.service