2019-11-06 19:41:31 +08:00
|
|
|
%global _default_patch_fuzz 2
|
|
|
|
|
%global _hardened_build 1
|
|
|
|
|
%global checkout 036e314
|
|
|
|
|
|
|
|
|
|
Name: lldpad
|
2021-01-30 10:54:50 +08:00
|
|
|
Version: 1.1
|
2022-11-01 03:36:09 +00:00
|
|
|
Release: 4
|
2019-11-06 19:41:31 +08:00
|
|
|
Summary: Intel LLDP Agent
|
|
|
|
|
License: GPLv2
|
|
|
|
|
URL: https://www.open-lldp.org
|
2021-01-30 10:54:50 +08:00
|
|
|
Source0: https://github.com/intel/lldpad/archive/v%{version}.tar.gz
|
2019-11-06 19:41:31 +08:00
|
|
|
|
2022-09-14 14:17:31 +08:00
|
|
|
Patch1: backport-8021Qaz-check-for-rx-block-validity.patch
|
|
|
|
|
Patch2: backport-8021qaz-squelch-initialization-errors.patch
|
|
|
|
|
Patch3: backport-basman-use-return-address-when-pulling-address.patch
|
|
|
|
|
Patch4: backport-macvtap-fix-error-condition.patch
|
|
|
|
|
Patch5: backport-vdp22-convert-command-parsing-to-null-term.patch
|
2022-11-01 03:36:09 +00:00
|
|
|
Patch6: backport-lldptool-fix-null-pointer-deference.patch
|
2022-09-14 14:17:31 +08:00
|
|
|
|
2019-11-06 19:41:31 +08:00
|
|
|
BuildRequires: automake autoconf libtool flex kernel-headers libconfig-devel
|
2021-07-30 23:05:17 +08:00
|
|
|
BuildRequires: libnl3-devel readline-devel systemd
|
2019-11-06 19:41:31 +08:00
|
|
|
|
|
|
|
|
Requires: readline
|
|
|
|
|
%{?systemd_requires}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This package contains the Linux user space daemon and configuration tool for Intel LLDP Agent
|
|
|
|
|
with Enhanced Ethernet support for the Data Center.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Header files, libraries and developer documentatio for %{name}
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
Provides: dcbd-devel = %{version}-%{release}
|
|
|
|
|
Obsoletes: dcbd-devel < 0.9.26
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The package contains header files used for building applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-07-30 23:05:17 +08:00
|
|
|
%autosetup -n openlldp-%{version} -p1
|
2019-11-06 19:41:31 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
./bootstrap.sh
|
|
|
|
|
CFLAGS=${CFLAGS:-%optflags -Wno-error}; export CFLAGS;
|
|
|
|
|
%configure
|
|
|
|
|
sed -i -e 's! \\\$compiler_flags !&\\\$CFLAGS \\\$LDFLAGS !' libtool
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
install -dp %{buildroot}%{_sharedstatedir}/%{name}
|
|
|
|
|
%delete_la
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
%systemd_post %{name}.service %{name}.socket
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%systemd_preun %{name}.service %{name}.socket
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
%systemd_postun_with_restart %{name}.service %{name}.socket
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc README
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{_sbindir}/*
|
|
|
|
|
%{_libdir}/liblldp_clif.so.*
|
|
|
|
|
%dir %{_sharedstatedir}/%{name}
|
|
|
|
|
%{_unitdir}/%{name}.*
|
|
|
|
|
%{_sysconfdir}/bash_completion.d/*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_includedir}/*
|
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
%{_libdir}/liblldp_clif.so
|
|
|
|
|
%{_libdir}/liblldp_clif.a
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc ChangeLog
|
|
|
|
|
%{_mandir}/man*/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-11-01 03:36:09 +00:00
|
|
|
* Tue Nov 01 2022 gaihuiying <eaglegai@163.com> - 1.1-4
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix lldptool coredump
|
|
|
|
|
|
2022-09-14 14:17:31 +08:00
|
|
|
* Wed Sep 14 2022 yanglu <yanglu72@h-partners.com> - 1.1-3
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:backport upstream patches
|
|
|
|
|
|
2021-07-30 23:05:17 +08:00
|
|
|
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.1-2
|
|
|
|
|
- DESC: delete -S git from %autosetup, and delete BuildRequires git
|
|
|
|
|
|
2021-01-30 10:54:50 +08:00
|
|
|
* Sat Jan 30 2021 xihaochen <xihaochen@huawei.com> - 1.1-1
|
2022-09-14 14:17:31 +08:00
|
|
|
- Type:requirements
|
2021-01-30 10:54:50 +08:00
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:update lldpad to 1.1
|
|
|
|
|
|
2021-01-26 16:53:16 +08:00
|
|
|
* Tue Jan 26 2021 zengwefeng<zwfeng@huawei.com> - 1.0.1-15
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:check the return value of ecp_create
|
|
|
|
|
|
2020-09-10 11:43:19 +08:00
|
|
|
* Thu Sep 10 2020 lunankun <lunankun@huawei.com> - 1.0.1-14
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix source0 url
|
|
|
|
|
|
2019-11-06 19:41:31 +08:00
|
|
|
* Sat Oct 26 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0.1-13
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:modify the location of COPYING
|
|
|
|
|
|
|
|
|
|
* Fri Oct 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0.1-12
|
|
|
|
|
- Package init
|
|
|
|
|
|