forked from pool/openvswitch
Accepting request 397564 from home:jengelh:branches:network
- Keep %prep small for speedier `quilt setup`. Kill __DATE__ from source. Drop all .la files that are in %_libdir. Combine systemd calls. OBS-URL: https://build.opensuse.org/request/show/397564 OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=89
This commit is contained in:
parent
5f85681b30
commit
e17f3c7c14
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 23 18:33:13 UTC 2016 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Keep %prep small for speedier `quilt setup`. Kill __DATE__ from
|
||||||
|
source. Drop all .la files that are in %_libdir.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri May 20 09:54:16 UTC 2016 - mchandras@suse.de
|
Fri May 20 09:54:16 UTC 2016 - mchandras@suse.de
|
||||||
|
|
||||||
|
@ -190,13 +190,14 @@ Open vSwitch is a full-featured software-based Ethernet switch.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
set -- * .travis*
|
set -- * .travis*
|
||||||
mkdir source
|
mkdir source
|
||||||
mv "$@" source/
|
mv "$@" source/
|
||||||
mkdir obj
|
mkdir obj
|
||||||
|
|
||||||
%build
|
|
||||||
pushd source
|
pushd source
|
||||||
|
perl -i -pe 's{__(DATE|TIME)__}{""}g' include/openvswitch/util.h
|
||||||
# only call boot.sh for distros with autoconf >= 2.64
|
# only call boot.sh for distros with autoconf >= 2.64
|
||||||
bash -x boot.sh
|
bash -x boot.sh
|
||||||
popd
|
popd
|
||||||
@ -271,6 +272,8 @@ mkdir -p %{buildroot}%{py_sitedir}
|
|||||||
mv %{buildroot}%{_datadir}/%{name}/python/* %{buildroot}%{py_sitedir}
|
mv %{buildroot}%{_datadir}/%{name}/python/* %{buildroot}%{py_sitedir}
|
||||||
rmdir %{buildroot}%{_datadir}/%{name}/python
|
rmdir %{buildroot}%{_datadir}/%{name}/python
|
||||||
|
|
||||||
|
rm -f %buildroot/%_libdir/*.la
|
||||||
|
|
||||||
%fdupes %{buildroot}%{py_sitedir}
|
%fdupes %{buildroot}%{py_sitedir}
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
@ -289,25 +292,17 @@ rmdir %{buildroot}%{_datadir}/%{name}/python
|
|||||||
%service_del_postun openvswitch.service
|
%service_del_postun openvswitch.service
|
||||||
|
|
||||||
%pre ovn
|
%pre ovn
|
||||||
%service_add_pre ovn-controller.service
|
%service_add_pre ovn-controller.service ovn-controller-vtep.service ovn-northd.service
|
||||||
%service_add_pre ovn-controller-vtep.service
|
|
||||||
%service_add_pre ovn-northd.service
|
|
||||||
|
|
||||||
%post ovn
|
%post ovn
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
%service_add_post ovn-controller.service
|
%service_add_post ovn-controller.service ovn-controller-vtep.service ovn-northd.service
|
||||||
%service_add_post ovn-controller-vtep.service
|
|
||||||
%service_add_post ovn-northd.service
|
|
||||||
|
|
||||||
%preun ovn
|
%preun ovn
|
||||||
%service_del_preun ovn-controller.service
|
%service_del_preun ovn-controller.service ovn-controller-vtep.service ovn-northd.service
|
||||||
%service_del_preun ovn-controller-vtep.service
|
|
||||||
%service_del_preun ovn-northd.service
|
|
||||||
|
|
||||||
%postun ovn
|
%postun ovn
|
||||||
%service_del_postun ovn-controller.service
|
%service_del_postun ovn-controller.service ovn-controller-vtep.service ovn-northd.service
|
||||||
%service_del_postun ovn-controller-vtep.service
|
|
||||||
%service_del_postun ovn-northd.service
|
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
%preun test
|
%preun test
|
||||||
@ -458,17 +453,11 @@ rmdir %{buildroot}%{_datadir}/%{name}/python
|
|||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libofproto.so
|
%{_libdir}/libofproto.so
|
||||||
%{_libdir}/libofproto.la
|
|
||||||
%{_libdir}/libopenvswitch.so
|
%{_libdir}/libopenvswitch.so
|
||||||
%{_libdir}/libopenvswitch.la
|
|
||||||
%{_libdir}/libovn.so
|
%{_libdir}/libovn.so
|
||||||
%exclude %{_libdir}/libovn.la
|
|
||||||
%{_libdir}/libovsdb.so
|
%{_libdir}/libovsdb.so
|
||||||
%{_libdir}/libovsdb.la
|
|
||||||
%{_libdir}/libsflow.so
|
%{_libdir}/libsflow.so
|
||||||
%{_libdir}/libsflow.la
|
|
||||||
%{_libdir}/libvtep.so
|
%{_libdir}/libvtep.so
|
||||||
%{_libdir}/libvtep.la
|
|
||||||
%{_includedir}/openflow/
|
%{_includedir}/openflow/
|
||||||
%{_includedir}/openvswitch/
|
%{_includedir}/openvswitch/
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
Loading…
Reference in New Issue
Block a user