Move legacy network scripts into network-scripts-teamd sub package
This commit is contained in:
parent
b3d34b5242
commit
055519d8eb
29
libteam.spec
29
libteam.spec
@ -1,6 +1,6 @@
|
||||
Name: libteam
|
||||
Version: 1.27
|
||||
Release: 8%{?dist}
|
||||
Release: 9%{?dist}
|
||||
Summary: Library for controlling team network device
|
||||
License: LGPLv2+
|
||||
URL: http://www.libteam.org
|
||||
@ -10,7 +10,6 @@ BuildRequires: gcc
|
||||
BuildRequires: jansson-devel
|
||||
BuildRequires: libdaemon-devel
|
||||
BuildRequires: libnl3-devel
|
||||
BuildRequires: python-unversioned-command
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: dbus-devel
|
||||
BuildRequires: systemd
|
||||
@ -42,6 +41,11 @@ Requires: network-scripts
|
||||
Summary: Libraries and header files for teamd development
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%package -n network-scripts-teamd
|
||||
Summary: teamd legacy network service support
|
||||
Requires: network-scripts
|
||||
Supplements: (%{name} and network-scripts)
|
||||
|
||||
%package -n python2-libteam
|
||||
%{?python_provide:%python_provide python2-libteam}
|
||||
Summary: Team network device library bindings
|
||||
@ -58,6 +62,10 @@ The teamd package contains team network device control daemon.
|
||||
The teamd-devel package contains the header files and libraries
|
||||
necessary for developing programs using libteamdctl.
|
||||
|
||||
%description -n network-scripts-teamd
|
||||
This provides the ifup and ifdown scripts for use with the legacy network
|
||||
service.
|
||||
|
||||
%description -n python2-libteam
|
||||
The team-python package contains a module that permits applications
|
||||
written in the Python programming language to use the interface
|
||||
@ -82,7 +90,7 @@ chmod -x _tmpdoc2/examples/*.py
|
||||
make %{?_smp_mflags}
|
||||
make html
|
||||
cd binding/python
|
||||
python ./setup.py build
|
||||
python2 ./setup.py build
|
||||
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
||||
@ -99,7 +107,7 @@ install -p -m 755 teamd/redhat/initscripts_systemd/network-scripts/ifup-TeamPort
|
||||
install -p -m 755 teamd/redhat/initscripts_systemd/network-scripts/ifdown-TeamPort $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/network-scripts
|
||||
install -p -m 755 utils/bond2team $RPM_BUILD_ROOT%{_bindir}/bond2team
|
||||
cd binding/python
|
||||
python ./setup.py install --root $RPM_BUILD_ROOT -O1
|
||||
python2 ./setup.py install --root $RPM_BUILD_ROOT -O1
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
@ -124,10 +132,6 @@ python ./setup.py install --root $RPM_BUILD_ROOT -O1
|
||||
%doc teamd/example_configs teamd/redhat/example_ifcfgs/
|
||||
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/teamd.conf
|
||||
%config(noreplace) %attr(644,root,root) %{_unitdir}/teamd@.service
|
||||
%{_sysconfdir}/sysconfig/network-scripts/ifup-Team
|
||||
%{_sysconfdir}/sysconfig/network-scripts/ifdown-Team
|
||||
%{_sysconfdir}/sysconfig/network-scripts/ifup-TeamPort
|
||||
%{_sysconfdir}/sysconfig/network-scripts/ifdown-TeamPort
|
||||
%{_libdir}/libteamdctl.so.*
|
||||
%{_bindir}/teamd
|
||||
%{_bindir}/teamdctl
|
||||
@ -142,11 +146,20 @@ python ./setup.py install --root $RPM_BUILD_ROOT -O1
|
||||
%{_libdir}/libteamdctl.so
|
||||
%{_libdir}/pkgconfig/libteamdctl.pc
|
||||
|
||||
%files -n network-scripts-teamd
|
||||
%{_sysconfdir}/sysconfig/network-scripts/ifup-Team
|
||||
%{_sysconfdir}/sysconfig/network-scripts/ifdown-Team
|
||||
%{_sysconfdir}/sysconfig/network-scripts/ifup-TeamPort
|
||||
%{_sysconfdir}/sysconfig/network-scripts/ifdown-TeamPort
|
||||
|
||||
%files -n python2-libteam
|
||||
%doc _tmpdoc2/examples
|
||||
%{python2_sitearch}/*
|
||||
|
||||
%changelog
|
||||
* Thu Aug 2 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.27-9
|
||||
- Move legacy network scripts into network-scripts-teamd sub package
|
||||
|
||||
* Sun Jul 22 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.27-8
|
||||
- Cleanup spec, fix deps
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user