SHA256
1
0
forked from pool/openvswitch
Dirk Mueller 2014-09-22 07:24:15 +00:00 committed by Git OBS Bridge
parent 0ddb2ebfd2
commit edc370eb6c

View File

@ -39,8 +39,8 @@ Source2: openvswitch-switch.init
Source3: openvswitch-switch.template Source3: openvswitch-switch.template
Source4: openvswitch-switch.logrotate Source4: openvswitch-switch.logrotate
Source5: openvswitch-vtep.init Source5: openvswitch-vtep.init
Source7: openvswitch-ipsec.init Source6: openvswitch-ipsec.init
Source8: openvswitch.service Source7: openvswitch.service
Source10: Module.supported Source10: Module.supported
Source11: Module.supported.updates Source11: Module.supported.updates
Source99: README.packager Source99: README.packager
@ -95,7 +95,7 @@ BuildRequires: kernel-source
%suse_kernel_module_package -p %_sourcedir/preamble ec2 xenpae vmi um %suse_kernel_module_package -p %_sourcedir/preamble ec2 xenpae vmi um
%description -n %{name}-kmp %description -n %{name}-kmp
Kernel modules supporting the openvswitch datapath Kernel modules supporting the openvswitch datapath.
%endif %endif
%package devel %package devel
@ -105,7 +105,7 @@ Group: Productivity/Networking/System
Requires: %{name} = %{version} Requires: %{name} = %{version}
%description devel %description devel
Devel files for Open vSwitch Devel files for Open vSwitch.
%if %{with ipsec} %if %{with ipsec}
@ -190,7 +190,7 @@ openvswitch-brcompat provides a way for applications that use the
Linux bridge to gradually migrate to Open vSwitch. Programs that Linux bridge to gradually migrate to Open vSwitch. Programs that
ordinarily control the Linux bridge module, such as "brctl", instead ordinarily control the Linux bridge module, such as "brctl", instead
control the Open vSwitch kernel-based switch. Please note that this control the Open vSwitch kernel-based switch. Please note that this
feature is deprecated and will ve removed soon. feature is deprecated and will be removed soon.
Once this package is installed, adding BRCOMPAT=yes in Once this package is installed, adding BRCOMPAT=yes in
/etc/default/openvswitch-switch enables bridge compatibility. /etc/default/openvswitch-switch enables bridge compatibility.
@ -343,7 +343,7 @@ install -m 755 %{SOURCE5} \
ln -s %{_sysconfdir}/init.d/%{name}-vtep %{buildroot}%{_sbindir}/rc%{name}-vtep ln -s %{_sysconfdir}/init.d/%{name}-vtep %{buildroot}%{_sbindir}/rc%{name}-vtep
%if 0%{?suse_version} > 1230 %if 0%{?suse_version} > 1230
install -D -m 644 %{SOURCE8} \ install -D -m 644 %{SOURCE7} \
%{buildroot}%{_unitdir}/openvswitch.service %{buildroot}%{_unitdir}/openvswitch.service
%endif %endif
@ -362,7 +362,7 @@ install -m 644 vswitchd/vswitch.ovsschema \
%if %{with ipsec} %if %{with ipsec}
install -m 755 debian/ovs-monitor-ipsec \ install -m 755 debian/ovs-monitor-ipsec \
%{buildroot}/%{_datadir}/%{name}/ovs-monitor-ipsec %{buildroot}/%{_datadir}/%{name}/ovs-monitor-ipsec
install -m 755 %{SOURCE7} \ install -m 755 %{SOURCE6} \
%{buildroot}/%{_sysconfdir}/init.d/%{name}-ipsec %{buildroot}/%{_sysconfdir}/init.d/%{name}-ipsec
ln -s %{_sysconfdir}/init.d/%{name}-ipsec %{buildroot}%{_sbindir}/rc%{name}-ipsec ln -s %{_sysconfdir}/init.d/%{name}-ipsec %{buildroot}%{_sbindir}/rc%{name}-ipsec
%endif %endif
@ -399,6 +399,12 @@ rmdir %{buildroot}%{_datadir}/%{name}/python
%endif %endif
%insserv_cleanup %insserv_cleanup
%preun vtep
%stop_on_removal openvswitch-vtep
%postun vtep
%restart_on_update openvswitch-vtep
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_datadir}/openvswitch %dir %{_datadir}/openvswitch
@ -448,14 +454,6 @@ rmdir %{buildroot}%{_datadir}/%{name}/python
%{_mandir}/man8/ovs-pki.8.gz %{_mandir}/man8/ovs-pki.8.gz
%{_bindir}/ovs-pki %{_bindir}/ovs-pki
%files -n python-openvswitch
%defattr(-,root,root)
%{py_sitedir}/ovs/
%files -n python-openvswitch-test
%defattr(-,root,root)
%{py_sitedir}/ovstest/
%files vtep %files vtep
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/vtep-ctl %{_bindir}/vtep-ctl
@ -466,6 +464,14 @@ rmdir %{buildroot}%{_datadir}/%{name}/python
%{_datadir}/openvswitch/scripts/ovs-vtep %{_datadir}/openvswitch/scripts/ovs-vtep
%{_datadir}/openvswitch/vtep.ovsschema %{_datadir}/openvswitch/vtep.ovsschema
%files -n python-openvswitch
%defattr(-,root,root)
%{py_sitedir}/ovs/
%files -n python-openvswitch-test
%defattr(-,root,root)
%{py_sitedir}/ovstest/
%if %{with ipsec} %if %{with ipsec}
%files ipsec %files ipsec