libteam: fix spec issues
Change-Id: I0fa2e1bf17522d53501e21e2522a1e6b5f03f446 Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com> Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/c/photon/+/22019 Tested-by: gerrit-photon <photon-checkins@vmware.com>
This commit is contained in:
parent
9c43283ee7
commit
b437c4ca80
|
@ -1,7 +1,7 @@
|
|||
Summary: Team driver
|
||||
Name: libteam
|
||||
Version: 1.31
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
License: GPLv2+
|
||||
URL: http://www.libteam.org
|
||||
Group: System Environment/Libraries
|
||||
|
@ -15,6 +15,8 @@ BuildRequires: libnl-devel
|
|||
BuildRequires: libdaemon-devel
|
||||
BuildRequires: jansson-devel
|
||||
|
||||
Requires: libnl
|
||||
|
||||
%description
|
||||
The libteam package contains the user-space components of the Team driver.
|
||||
It provides a mechanism to team multiple NICs into one logical port at the L2 layer.
|
||||
|
@ -30,6 +32,8 @@ developing applications that use libteam
|
|||
%package -n teamd
|
||||
Summary: Team network device control daemon
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: libnl
|
||||
Requires: libdaemon
|
||||
|
||||
%description -n teamd
|
||||
The teamd package contains the team network device control daemon
|
||||
|
@ -46,25 +50,40 @@ developing applications that use teamd and libteamdctl
|
|||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%configure
|
||||
%configure \
|
||||
--disable-static
|
||||
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install %{?_smp_mflags}
|
||||
install -D -m 0644 teamd/redhat/systemd/teamd@.service %{buildroot}%{_unitdir}/teamd@.service
|
||||
|
||||
install -D -m 0644 teamd/redhat/systemd/teamd@.service \
|
||||
%{buildroot}%{_unitdir}/teamd@.service
|
||||
|
||||
install -p -m 755 utils/bond2team %{buildroot}%{_bindir}/bond2team
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/network-scripts
|
||||
install -p -m 755 teamd/redhat/initscripts_systemd/network-scripts/ifup-Team %{buildroot}%{_sysconfdir}/sysconfig/network-scripts
|
||||
install -p -m 755 teamd/redhat/initscripts_systemd/network-scripts/ifdown-Team %{buildroot}%{_sysconfdir}/sysconfig/network-scripts
|
||||
install -p -m 755 teamd/redhat/initscripts_systemd/network-scripts/ifup-TeamPort %{buildroot}%{_sysconfdir}/sysconfig/network-scripts
|
||||
install -p -m 755 teamd/redhat/initscripts_systemd/network-scripts/ifdown-TeamPort %{buildroot}%{_sysconfdir}/sysconfig/network-scripts
|
||||
mkdir -p %{buildroot}%{_datadir}/teamd/example_configs/
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/network-scripts \
|
||||
%{buildroot}%{_datadir}/teamd/example_configs/
|
||||
|
||||
install -p -m 755 teamd/redhat/initscripts_systemd/network-scripts/ifup-Team \
|
||||
%{buildroot}%{_sysconfdir}/sysconfig/network-scripts
|
||||
|
||||
install -p -m 755 teamd/redhat/initscripts_systemd/network-scripts/ifdown-Team \
|
||||
%{buildroot}%{_sysconfdir}/sysconfig/network-scripts
|
||||
|
||||
install -p -m 755 teamd/redhat/initscripts_systemd/network-scripts/ifup-TeamPort \
|
||||
%{buildroot}%{_sysconfdir}/sysconfig/network-scripts
|
||||
|
||||
install -p -m 755 teamd/redhat/initscripts_systemd/network-scripts/ifdown-TeamPort \
|
||||
%{buildroot}%{_sysconfdir}/sysconfig/network-scripts
|
||||
|
||||
install -p -m 644 teamd/example_configs/* %{buildroot}%{_datadir}/teamd/example_configs/
|
||||
|
||||
%preun
|
||||
%preun -n teamd
|
||||
%systemd_preun teamd@.service
|
||||
|
||||
%postun
|
||||
%postun -n teamd
|
||||
%systemd_postun teamd@.service
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
@ -76,7 +95,6 @@ install -p -m 644 teamd/example_configs/* %{buildroot}%{_datadir}/teamd/example_
|
|||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/team.h
|
||||
%{_libdir}/libteam.a
|
||||
%{_libdir}/libteam.so
|
||||
%{_libdir}/pkgconfig/libteam.pc
|
||||
|
||||
|
@ -91,12 +109,13 @@ install -p -m 644 teamd/example_configs/* %{buildroot}%{_datadir}/teamd/example_
|
|||
|
||||
%files -n teamd-devel
|
||||
%{_includedir}/teamdctl.h
|
||||
%{_libdir}/libteamdctl.a
|
||||
%{_libdir}/libteamdctl.so
|
||||
%{_libdir}/pkgconfig/libteamdctl.pc
|
||||
%{_datadir}/teamd/*
|
||||
|
||||
%changelog
|
||||
* Sat Sep 30 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.31-4
|
||||
- Fix spec issues
|
||||
* Sun Aug 07 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.31-3
|
||||
- Remove .la files
|
||||
* Mon Aug 02 2021 Susant Sahani <ssahani@vmware.com> 1.31-2
|
||||
|
|
Loading…
Reference in New Issue