d5593b
%global _default_patch_fuzz 2
d5593b
d5593b
# https://fedoraproject.org/wiki/Packaging:Guidelines#Compiler_flags
d5593b
%global _hardened_build 1
d5593b
d5593b
%global checkout 85e5583
d5593b
d5593b
Name:               lldpad
d5593b
Version:            1.1.0
d5593b
Release:            4.git%{checkout}%{?dist}
d5593b
Summary:            Intel LLDP Agent
d5593b
License:            GPLv2
d5593b
URL:                http://open-lldp.org/
d5593b
Source0:            %{name}-%{version}.tar.gz
d5593b
d5593b
BuildRequires:      automake autoconf libtool
d5593b
BuildRequires:      flex >= 2.5.33
d5593b
BuildRequires:      kernel-headers >= 2.6.32
d5593b
BuildRequires:      libconfig-devel >= 1.3.2
d5593b
BuildRequires:      libnl3-devel
d5593b
BuildRequires:      readline-devel
d5593b
BuildRequires:      systemd
d5593b
BuildRequires: make
d5593b
Requires:           readline
d5593b
d5593b
Requires(post):     systemd
d5593b
Requires(preun):    systemd
d5593b
Requires(postun):   systemd
d5593b
d5593b
%description
d5593b
This package contains the Linux user space daemon and configuration tool for
d5593b
Intel LLDP Agent with Enhanced Ethernet support for the Data Center.
d5593b
d5593b
%package            devel
d5593b
Summary:            Development files for %{name}
d5593b
Requires:           %{name}%{?_isa} = %{version}-%{release}
d5593b
Provides:           dcbd-devel = %{version}-%{release}
d5593b
Obsoletes:          dcbd-devel < 0.9.26
d5593b
d5593b
%description devel
d5593b
The %{name}-devel package contains header files for developing applications
d5593b
that use %{name}.
d5593b
d5593b
%prep
d5593b
%autosetup -p1
d5593b
d5593b
%build
d5593b
./bootstrap.sh
d5593b
CFLAGS=${CFLAGS:-%optflags -Wno-error -fcommon}; export CFLAGS;
d5593b
%configure --disable-static
d5593b
# fix the hardened build flags
d5593b
sed -i -e 's! \\\$compiler_flags !&\\\$CFLAGS \\\$LDFLAGS !' libtool
d5593b
make %{?_smp_mflags}
d5593b
d5593b
%install
d5593b
make install DESTDIR=%{buildroot}
d5593b
mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
d5593b
rm -f %{buildroot}%{_libdir}/liblldp_clif.la
d5593b
d5593b
%post
d5593b
%systemd_post %{name}.service %{name}.socket
d5593b
d5593b
%preun
d5593b
%systemd_preun %{name}.service %{name}.socket
d5593b
d5593b
%postun
d5593b
%systemd_postun_with_restart %{name}.service %{name}.socket
d5593b
d5593b
%files
d5593b
%doc COPYING README ChangeLog
d5593b
%{_sbindir}/*
d5593b
%{_libdir}/liblldp_clif.so.*
d5593b
%dir %{_sharedstatedir}/%{name}
d5593b
%{_unitdir}/%{name}.service
d5593b
%{_unitdir}/%{name}.socket
d5593b
%{_sysconfdir}/bash_completion.d/*
d5593b
%{_mandir}/man3/*
d5593b
%{_mandir}/man8/*
d5593b
d5593b
%files devel
d5593b
%{_includedir}/*
d5593b
%{_libdir}/pkgconfig/*.pc
d5593b
%{_libdir}/liblldp_clif.so
d5593b
d5593b
%changelog
d5593b
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.0-4.git85e5583
d5593b
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
d5593b
  Related: rhbz#1991688
d5593b
d5593b
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.0-3.git85e5583
d5593b
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
d5593b
d5593b
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2.git85e5583
d5593b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d5593b
d5593b
* Wed Dec 02 2020 Aaron Conole <aconole@redhat.com> - 1.1.0-1.git85e5583
d5593b
- Update to 1.1.0
d5593b
d5593b
* Fri Aug 07 2020 Jeff Law <law@redhat.com> - 1.0.1-20.git036e314
d5593b
- Enable _legacy_common_support
d5593b
d5593b
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-19.git036e314
d5593b
- Second attempt - Rebuilt for
d5593b
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d5593b
d5593b
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-18.git036e314
d5593b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d5593b
d5593b
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-17.git036e314
d5593b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d5593b
d5593b
* Sat Sep 14 2019 Ido Schimmel <idosch@mellanox.com> - 1.0.1-16.git036e314
d5593b
- Add open-lldp-v1.0.1-30-lldpad-Do-not-enable-port-if-already-enabled.patch
d5593b
  (BZ 1752207)
d5593b
d5593b
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-15.git036e314
d5593b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d5593b
d5593b
* Tue Feb 12 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.1-14.git036e314
d5593b
- Remove obsolete scriptlets
d5593b
d5593b
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-13.git036e314
d5593b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d5593b
d5593b
* Tue Oct 23 2018 Petr Machata <pmachata@gmail.com> - 1.0.1-12.git036e314
d5593b
- Add open-lldp-v1.0.1-29-basman_clif-print-the-OID-properly.patch (BZ 1614932,
d5593b
  1614896 (CVE-2018-10932)
d5593b
- Add open-lldp-v1.0.1-28-support-DSCP-selectors.patch (BZ 1618377)
d5593b
d5593b
* Tue Jul 24 2018 Adam Williamson <awilliam@redhat.com> - 1.0.1-11.git036e314
d5593b
- Rebuild for new libconfig
d5593b
d5593b
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-10.git036e314
d5593b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d5593b
d5593b
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-9.git036e314
d5593b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d5593b
d5593b
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-8.git036e314
d5593b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
d5593b
d5593b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-7.git036e314
d5593b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d5593b
d5593b
* Sun Feb 12 2017 Chris Leech <cleech@redhat.com> - 1.0.1-6.git036e314
d5593b
- disable -Werror from upstream to rebuild with newer compiler warnings
d5593b
d5593b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-5.git036e314
d5593b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d5593b
d5593b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-4.git036e314
d5593b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d5593b
d5593b
* Mon Feb 01 2016 Chris Leech <cleech@redhat.com> - 1.0.1-3.git986eb2e
d5593b
- 1303439 package should not attempt to own /etc/bash_completion.d
d5593b
- fix more build warning in rawhide
d5593b
d5593b
* Tue Nov 03 2015 Chris Leech <cleech@redhat.com> - 1.0.1-2.git986eb2e
d5593b
- convert from sysv shm to posix, to allow selinux restorecon 
d5593b
d5593b
* Wed Jun 17 2015 Chris Leech <cleech@redhat.com> - 1.0.1-1.git986eb2e
d5593b
- rebased to upstream v1.0.1-23-g986eb2e
d5593b
d5593b
* Thu Oct 23 2014 Chris Leech <cleech@redhat.com> - 0.9.46-8.git48a5f38
d5593b
- sync to upstream v0.9.46-123-g48a5f38
d5593b
d5593b
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.46-7
d5593b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
d5593b
d5593b
* Tue Jul 22 2014 Peter Robinson <pbrobinson@fedoraproject.org> 0.9.46-6
d5593b
- Add upstream patch to build against libnl3
d5593b
- Drop legacy dcbd packaging support, we've not shipped it since F-13
d5593b
d5593b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.46-5
d5593b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d5593b
d5593b
* Tue Mar 11 2014 Petr Å abata <contyk@redhat.com> - 0.9.46-4
d5593b
- Drop the explicit kernel runtime dependency
d5593b
- Patch configure.ac to build in rawhide
d5593b
d5593b
* Wed Jul 31 2013 Petr Å abata <contyk@redhat.com> - 0.9.46-3
d5593b
- Require 'systemd' instead of 'systemd-units'
d5593b
d5593b
* Tue Jul 02 2013 Petr Å abata <contyk@redhat.com> - 0.9.46-2
d5593b
- Fix the hardened build flags
d5593b
d5593b
* Tue Jun 04 2013 Petr Å abata <contyk@redhat.com> - 0.9.46-1
d5593b
- 0.9.46 bump
d5593b
- 802.1Qaz fixes to enable support on not CEE DCBX-enabled hardware
d5593b
- 802.1Qbg EVB module support
d5593b
- lldpad now supports bonded interfaces
d5593b
d5593b
* Tue Mar 05 2013 Petr Å abata <contyk@redhat.com> - 0.9.45-5
d5593b
- Fix build by patching the sizeof() call in lldp_8021qaz_cmds.c
d5593b
d5593b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.45-4
d5593b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d5593b
d5593b
* Tue Aug 28 2012 Petr Å abata <contyk@redhat.com> - 0.9.45-3
d5593b
- Migrate to systemd scriptlets (#850192)
d5593b
d5593b
* Thu Aug 23 2012 Petr Å abata <contyk@redhat.com> - 0.9.45-2
d5593b
- Fix displaying of the Management Address TLV (327ef662)
d5593b
d5593b
* Wed Aug 15 2012 Petr Å abata <contyk@redhat.com> - 0.9.45-1
d5593b
- 0.9.45 bump
d5593b
- Provide bash-completion and the new clif library
d5593b
d5593b
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.44-2
d5593b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d5593b
d5593b
* Fri Jan 27 2012 Petr Å abata <contyk@redhat.com> - 0.9.44-1
d5593b
- 0.9.44 bump, patches cleanup
d5593b
- Correct dependencies a bit
d5593b
- Require dlopen()'d readline
d5593b
d5593b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.43-6
d5593b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d5593b
d5593b
* Thu Oct 06 2011 Petr Sabata <contyk@redhat.com> - 0.9.43-5
d5593b
- Do not enable lldpad by default (#701999)
d5593b
d5593b
* Fri Sep 23 2011 Petr Sabata <contyk@redhat.com> - 0.9.43-4
d5593b
- Enable hardened build
d5593b
d5593b
* Tue Sep 13 2011 Petr Sabata <contyk@redhat.com> - 0.9.43-3
d5593b
- Mute systemd output (#737897)
d5593b
d5593b
* Tue Aug 30 2011 Petr Sabata <contyk@redhat.com> - 0.9.43-2
d5593b
- Apply various upstream 0.9.43 bugfixes
d5593b
- Include not yet accepted Jens Osterkamp's patch to fix bug #720080
d5593b
- Whitespace cleanup, phew
d5593b
d5593b
* Thu Jul 07 2011 Petr Sabata <contyk@redhat.com> - 0.9.43-1
d5593b
- 0.9.43 bump
d5593b
- Drop the the clean exit patch and our unit file, both are now included upstream
d5593b
d5593b
* Tue Jun 21 2011 Petr Sabata <contyk@redhat.com> - 0.9.42-2
d5593b
- Introduce systemd unit file, drop SysV support
d5593b
- Call systemctl instead of service and chkconfig
d5593b
- Enable the service only on new installation (post)
d5593b
- Clean exit patch
d5593b
d5593b
* Mon Jun 13 2011 Petr Sabata <contyk@redhat.com> - 0.9.42-1
d5593b
- 0.9.42 bump (massive patches cleanup)
d5593b
- Remove obsolete defattr
d5593b
- Remove COPYING and README from devel subpackage
d5593b
d5593b
* Wed May  4 2011 Petr Sabata <psabata@redhat.com> - 0.9.41-3
d5593b
- Fix the frequent, power consuming lldpad wake-ups (rhbz#701943)
d5593b
d5593b
* Thu Apr 21 2011 Petr Sabata <psabata@redhat.com> - 0.9.41-2
d5593b
- Bring in upstream 802.1Qbg bugfixes
d5593b
d5593b
* Thu Feb 10 2011 Petr Sabata <psabata@redhat.com> - 0.9.41-1
d5593b
- 0.9.41 bump
d5593b
- New BR: autotools, flex
d5593b
- Buildroot garbage removed
d5593b
- Devel post and preun scriptlets sanitized
d5593b
d5593b
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.38-2
d5593b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d5593b
d5593b
* Mon Jun 28 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.38-1
d5593b
- rebased to 0.9.38 (various enhancements and bugfixes, see 
d5593b
  lldpad-0.9.38-relnotes.txt on http://e1000.sf.net for complete list)
d5593b
d5593b
* Mon May 10 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.32-2
d5593b
- rebuild to match new libconfig
d5593b
d5593b
* Mon Apr 12 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.32-1
d5593b
- rebased to 0.9.32 (various enhancements and bugfixes, see 
d5593b
  lldpad-0.9.32-relnotes.txt on http://e1000.sf.net for complete list)
d5593b
d5593b
* Thu Mar 25 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.29-2
d5593b
- added Provides and Obsoletes tags to devel subpackage
d5593b
d5593b
* Mon Mar 15 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.29-1
d5593b
- updated package to 0.9.29, improved compatibility with fcoe-utils
d5593b
d5593b
* Fri Feb 26 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.26-2
d5593b
- updated spec file and LSB init script patch for re-review
d5593b
  (#568641)
d5593b
d5593b
* Thu Feb 25 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.26-1
d5593b
- rebased to 0.9.26
d5593b
- package renamed to lldpad
d5593b
- enahanced functionality (LLDP supported as well as DCBX)
d5593b
d5593b
* Fri Nov 13 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.19-2
d5593b
- init script patch adding LSB compliance
d5593b
d5593b
* Thu Oct 08 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.19-1
d5593b
- update to new upstream version
d5593b
d5593b
* Mon Oct 05 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.15-5
d5593b
- replaced the last patch, which was not fully functional, with
d5593b
  the new one
d5593b
d5593b
* Wed Sep 09 2009 Karsten Hopp <karsten@redhat.com> 0.9.15-4
d5593b
- buildrequire libconfig-devel >= 1.3.2, it doesn't build with 1.3.1 due to
d5593b
  the different config_lookup_string api
d5593b
d5593b
* Thu Aug 20 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.15-3
d5593b
- update of config_lookup_string() function calls
d5593b
d5593b
* Thu Aug 20 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.15-2
d5593b
- rebuild in order to match new libconfig
d5593b
d5593b
* Mon Aug 17 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.15-1
d5593b
- rebase to 0.9.15
d5593b
d5593b
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-5
d5593b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d5593b
d5593b
* Fri Mar 20 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.7-4
d5593b
- updated scriptlets in spec file to follow the rules
d5593b
d5593b
* Wed Mar 11 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.7-3
d5593b
- added devel files again to support fcoe-utils package
d5593b
- added kernel >= 2.6.29 to Requires, deleted dcbnl.h, since it is
d5593b
  aviable in kernel 2.6.29-rc7
d5593b
- changed config dir from /etc/sysconfig/dcbd to /etc/dcbd
d5593b
- updated init script: added mandatory Short description tag,
d5593b
  deleted default runlevels, which should start the script
d5593b
d5593b
* Tue Mar 10 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.7-2
d5593b
- added patch to enable usage of libconfig shared in system
d5593b
- removed devel part of package
d5593b
d5593b
* Mon Mar 2 2009 Chris Leech <christopher.leech@intel.com> - 0.9.7-1
d5593b
- Updated to 0.9.7
d5593b
- Added a private copy of dcbnl.h until kernel-headers includes it.
d5593b
  Export patch is making it's way to the upstream kernel via net-2.6,
d5593b
  expected in 2.6.29-rc7
d5593b
d5593b
* Thu Feb 26 2009 Chris Leech <christopher.leech@intel.com> - 0.9.5-1
d5593b
- initial RPM packaging