libteam/libteam.spec

152 lines
4.3 KiB
RPMSpec
Raw Permalink Normal View History

2019-09-30 10:58:22 -04:00
Name: libteam
2023-12-15 16:18:42 +08:00
Version: 1.32
Release: 3
2019-09-30 10:58:22 -04:00
Summary: User-space counterpart library for team network
License: LGPL-2.0-or-later
URL: https://www.libteam.org
Source: https://www.libteam.org/files/libteam-%{version}.tar.gz
2019-09-30 10:58:22 -04:00
Patch0: libteam-fix-error-options-in-doc.patch
2019-11-06 19:40:12 +08:00
BuildRequires: gcc jansson-devel libdaemon-devel libnl3-devel
2020-10-29 10:50:25 +08:00
BuildRequires: swig dbus-devel systemd doxygen
2019-09-30 10:58:22 -04:00
2019-12-27 14:05:00 +08:00
Provides: teamd = %{version}-%{release} teamd%{?_isa} = %{version}-%{release}
2020-01-14 23:30:53 +08:00
Obsoletes: teamd < %{version}-%{release}
2019-09-30 10:58:22 -04:00
%description
This package is the user-space counterpart for the team network
driver, and provides an API to control them.
%package devel
Summary : The devel for %{name}
Requires: %{name} = %{version}-%{release}
2019-12-27 14:05:00 +08:00
Provides: teamd-devel = %{version}-%{release} teamd-devel%{?_isa} = %{version}-%{release}
2020-01-14 23:30:53 +08:00
Obsoletes: teamd-devel < %{version}-%{release}
2019-09-30 10:58:22 -04:00
%description devel
Libraries and header files for libteam development
%package -n network-scripts-teamd
Summary: legacy network service support of teamd
Requires: network-scripts
Supplements: (%{name} and network-scripts)
%description -n network-scripts-teamd
This package provides the ifup and ifdown scripts which
is use with the legacy network service.
%package help
Summary: Document of %{name}
BuildArch: noarch
2019-09-30 10:58:22 -04:00
Requires: %{name} = %{version}-%{release}
2019-12-26 09:35:13 +08:00
Provides: %{name}-doc = %{version}-%{release}
Obsoletes: %{name}-doc < %{version}-%{release}
2019-09-30 10:58:22 -04:00
%description help
This package contains the document of %{name}
%prep
%autosetup -n %{name}-%{version} -p1
%build
%configure --disable-static
%make_build
%make_build html
2019-09-30 10:58:22 -04:00
%install
mkdir -p _tmpdoc1/examples
2020-10-29 10:50:25 +08:00
rm examples/python/*.py
2019-09-30 10:58:22 -04:00
cp -p examples/*.c _tmpdoc1/examples
%make_install
%delete_la
2019-09-30 10:58:22 -04:00
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d
install -p teamd/dbus/teamd.conf $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d/
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
install -p teamd/redhat/systemd/teamd@.service $RPM_BUILD_ROOT%{_unitdir}
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/network-scripts
for i in ifup-Team ifdown-Team ifup-TeamPort ifdown-TeamPort; do
install -p -m 755 teamd/redhat/initscripts_systemd/network-scripts/$i $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/network-scripts
done
install -p -m 755 utils/bond2team $RPM_BUILD_ROOT%{_bindir}/bond2team
%files
%license COPYING
2019-11-06 19:40:12 +08:00
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/teamd.conf
%config(noreplace) %attr(644,root,root) %{_unitdir}/teamd@.service
2019-09-30 10:58:22 -04:00
%{_libdir}/libteam.so.*
%{_bindir}/teamnl
2019-11-06 19:40:12 +08:00
%{_libdir}/libteamdctl.so.*
%{_bindir}/teamd
%{_bindir}/teamdctl
%{_bindir}/bond2team
2019-09-30 10:58:22 -04:00
%files devel
%{_includedir}/team.h
%{_libdir}/libteam.so
%{_libdir}/pkgconfig/libteam.pc
%{_includedir}/teamdctl.h
%{_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 help
%doc _tmpdoc1/examples
%doc doc/api
2019-11-06 19:40:12 +08:00
%doc teamd/example_configs teamd/redhat/example_ifcfgs/
2019-09-30 10:58:22 -04:00
%{_mandir}/man1/bond2team.1*
%{_mandir}/man5/teamd.conf.5*
%{_mandir}/man8/teamd.8*
%{_mandir}/man8/teamdctl.8*
%{_mandir}/man8/teamnl.8*
%changelog
* Fri Nov 01 2024 xuguangmin <xuguangmin@kylinos.cn> - 1.32-3
- List non-existent files.
* Tue Sep 03 2024 Funda Wang <fundawang@yeah.net> - 1.32-2
- cleanup spec
2023-12-15 16:18:42 +08:00
* Fri Dec 15 2023 fuanan <fuanan3@h-partners.com> - 1.32-1
- update version to 1.32
* Thu Sep 21 2023 zhangruifang <zhangruifang1@h-partners.com> - 1.31-3
- fix an issue about teamd is using 100% cpu usage (of 1 core)
* Thu Sep 8 2022 yixiangzhike <yixiangzhike007@163.com> - 1.31-2
- fix error options in doc
2021-01-21 17:32:33 +08:00
* Thu Jan 21 2021 wangchen <wangchen137@huawei.com> - 1.31-1
- Update to 1.31
2020-10-29 10:50:25 +08:00
* Thu Oct 29 2020 wangchen <wangchen137@huawei.com> - 1.30-2
- Remove python2
* Thu Jul 16 2020 Hugel <gengqihu1@huawei.com> - 1.30-1
2020-07-16 18:56:24 +08:00
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update to 1.30
2020-01-14 23:30:53 +08:00
* Tue Jan 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.27-14
- Delete unneeded obsoletes with isa
2019-12-27 14:05:00 +08:00
* Fri Dec 27 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.27-13
- Add oboselets
2019-12-26 09:35:13 +08:00
* Wed Dec 25 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.27-12
- Add provides of libteam-doc
2019-09-30 10:58:22 -04:00
* Thu Aug 22 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.27-11
- Package init