Blame SPECS/lldpad.spec

df64a6
%global _default_patch_fuzz 2
df64a6
df64a6
# https://fedoraproject.org/wiki/Packaging:Guidelines#Compiler_flags
df64a6
%global _hardened_build 1
df64a6
df64a6
%global checkout 036e314
df64a6
df64a6
Name:               lldpad
df64a6
Version:            1.0.1
3dfa50
Release:            13.git%{checkout}%{?dist}
df64a6
Summary:            Intel LLDP Agent
df64a6
Group:              System Environment/Daemons
df64a6
License:            GPLv2
df64a6
URL:                http://open-lldp.org/
df64a6
Source0:            %{name}-%{version}.tar.gz
df64a6
Patch1:		open-lldp-v1.0.1-1-VDP-vdp22_cmds-retrieve-vsi-paramenter-data.patch
df64a6
Patch2:		open-lldp-v1.0.1-2-VDP-vdptool-first-version.patch
df64a6
Patch3:		open-lldp-v1.0.1-3-VDP-vdptool-test-cases-Some-test-cases-to-test-the-n.patch
df64a6
Patch4:		open-lldp-v1.0.1-4-VDP-Changes-to-make-the-interface-to-VDP22-in-lldpad.patch
df64a6
Patch5:		open-lldp-v1.0.1-5-VDP-Support-for-get-tlv-in-vdptool-and-VDP22.patch
df64a6
Patch6:		open-lldp-v1.0.1-6-VDP-Support-in-VDP22-for-correct-error-code-status-t.patch
df64a6
Patch7:		open-lldp-v1.0.1-7-VDP-Support-for-OUI-infrastructure-in-VDP22.patch
df64a6
Patch8:		open-lldp-v1.0.1-8-VDP-Support-for-OUI-infrastructure-in-vdptool.patch
df64a6
Patch9:		open-lldp-v1.0.1-9-VDP-Support-for-OUI-infrastructure-in-vdp22.patch
df64a6
Patch10:	open-lldp-v1.0.1-10-VDP-Support-for-OUI-infrastructure-in-vdp22.patch
df64a6
Patch11:	open-lldp-v1.0.1-11-VDP-Support-for-Cisco-specific-OUI-extensions-to-VDP.patch
df64a6
Patch12:	open-lldp-v1.0.1-12-VDP22-Fix-the-ack-timeout-handler-to-set-the-right-t.patch
df64a6
Patch13:	open-lldp-v1.0.1-13-VDP-Changes-in-OUI-infra-for-get-tlv.patch
df64a6
Patch14:	open-lldp-v1.0.1-14-VDP-Changes-in-Cisco-OUI-handlers-to-support-get-tlv.patch
df64a6
Patch15:	open-lldp-v1.0.1-15-VDP-Add-vdptool-man-page-to-Makefile.patch
df64a6
Patch16:	open-lldp-v1.0.1-16-VDP-Fixed-DBG-print-compile-errors-in-32-bit-systems.patch
df64a6
Patch17:	open-lldp-v1.0.1-17-lldp-automake-fixes-for-dist-distcheck.patch
df64a6
Patch18:	open-lldp-v1.0.1-18-enabled-test-tool-building-for-distcheck.patch
df64a6
Patch19:	open-lldp-v1.0.1-19-nltest-build-error.patch
df64a6
Patch20:	open-lldp-v1.0.1-20-lldp-automake-fix-drop-prefix-on-vdptool_LDADD.patch
df64a6
Patch21:	open-lldp-v1.0.1-21-lldpad-Fix-DCBX-event-generation-from-lldpad.patch
df64a6
Patch22:	open-lldp-v1.0.1-22-vdp-Fixed-the-memory-leak-for-modify-VSI-support-for.patch
df64a6
Patch23:	open-lldp-v1.0.1-23-lldp-make-TTL-TLV-configurable.patch
df64a6
Patch24:	open-lldp-v1.0.1-24-switch-from-sysv-to-posix-shared-memory-apis.patch
df64a6
Patch25:	open-lldp-v1.0.1-25-l2_linux_packet-correctly-process-return-value-of-ge.patch
df64a6
Patch26:	open-lldp-v1.0.1-26-lldpad-system-capability-incorrect-advertised-as-sta.patch
df64a6
Patch27:	open-lldp-v1.0.1-27-fix-build-warnings.patch
3dfa50
Patch28:	open-lldp-v1.0.1-28-fix-oid-display.patch
3dfa50
Patch29:	open-lldp-v1.0.1-29-memleak-on-received-TLVs.patch
3dfa50
Patch30:	open-lldp-v1.0.1-30-support-DSCP-selectors.patch
df64a6
df64a6
BuildRequires:      automake autoconf libtool
df64a6
BuildRequires:      flex >= 2.5.33
df64a6
BuildRequires:      kernel-headers >= 2.6.32
df64a6
BuildRequires:      libconfig-devel >= 1.3.2
df64a6
BuildRequires:      libnl3-devel
df64a6
BuildRequires:      readline-devel
df64a6
BuildRequires:      systemd
df64a6
Requires:           readline
df64a6
df64a6
Requires(post):     systemd
df64a6
Requires(preun):    systemd
df64a6
Requires(postun):   systemd
df64a6
df64a6
%description
df64a6
This package contains the Linux user space daemon and configuration tool for
df64a6
Intel LLDP Agent with Enhanced Ethernet support for the Data Center.
df64a6
df64a6
%package            devel
df64a6
Summary:            Development files for %{name}
df64a6
Group:              Development/Libraries
df64a6
Requires:           %{name}%{?_isa} = %{version}-%{release}
df64a6
Provides:           dcbd-devel = %{version}-%{release}
df64a6
Obsoletes:          dcbd-devel < 0.9.26
df64a6
df64a6
%description devel
df64a6
The %{name}-devel package contains header files for developing applications
df64a6
that use %{name}.
df64a6
df64a6
%prep
df64a6
%autosetup -p1
df64a6
df64a6
%build
df64a6
./bootstrap.sh
df64a6
CFLAGS=${CFLAGS:-%optflags -Wno-error}; export CFLAGS;
df64a6
%configure --disable-static
df64a6
# fix the hardened build flags
df64a6
sed -i -e 's! \\\$compiler_flags !&\\\$CFLAGS \\\$LDFLAGS !' libtool
df64a6
make %{?_smp_mflags}
df64a6
df64a6
%install
df64a6
make install DESTDIR=%{buildroot}
df64a6
mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
df64a6
rm -f %{buildroot}%{_libdir}/liblldp_clif.la
df64a6
df64a6
%post
df64a6
/sbin/ldconfig
df64a6
%systemd_post %{name}.service %{name}.socket
df64a6
df64a6
%preun
df64a6
%systemd_preun %{name}.service %{name}.socket
df64a6
df64a6
%postun
df64a6
/sbin/ldconfig
df64a6
%systemd_postun_with_restart %{name}.service %{name}.socket
df64a6
df64a6
%files
df64a6
%doc COPYING README ChangeLog
df64a6
%{_sbindir}/*
df64a6
%{_libdir}/liblldp_clif.so.*
df64a6
%dir %{_sharedstatedir}/%{name}
df64a6
%{_unitdir}/%{name}.service
df64a6
%{_unitdir}/%{name}.socket
df64a6
%{_sysconfdir}/bash_completion.d/*
df64a6
%{_mandir}/man3/*
df64a6
%{_mandir}/man8/*
df64a6
df64a6
%files devel
df64a6
%{_includedir}/*
df64a6
%{_libdir}/pkgconfig/*.pc
df64a6
%{_libdir}/liblldp_clif.so
df64a6
df64a6
%changelog
3dfa50
* Tue Aug 13 2019 Aaron Conole <aconole@redhat.com> - 1.0.1-13.git036e314
3dfa50
- After gating yml updates
3dfa50
3dfa50
* Fri Jul 05 2019 Aaron Conole <aconole@redhat.com> - 1.0.1-12.git036e314
3dfa50
- Add support for DSCP selectors in APP TLVs (#1704660)
3dfa50
3dfa50
* Fri Jul 05 2019 Aaron Conole <aconole@redhat.com> - 1.0.1-11.git036e314
3dfa50
- Fix memleak on TLV reception (#1727326)
3dfa50
3dfa50
* Fri Jul 05 2019 Aaron Conole <aconole@redhat.com> - 1.0.1-10.git036e314
3dfa50
- Fix the OID display (#1614933)
3dfa50
df64a6
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-9.git036e314
df64a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
df64a6
df64a6
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-8.git036e314
df64a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
df64a6
df64a6
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-7.git036e314
df64a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
df64a6
df64a6
* Sun Feb 12 2017 Chris Leech <cleech@redhat.com> - 1.0.1-6.git036e314
df64a6
- disable -Werror from upstream to rebuild with newer compiler warnings
df64a6
df64a6
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-5.git036e314
df64a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
df64a6
df64a6
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-4.git036e314
df64a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
df64a6
df64a6
* Mon Feb 01 2016 Chris Leech <cleech@redhat.com> - 1.0.1-3.git986eb2e
df64a6
- 1303439 package should not attempt to own /etc/bash_completion.d
df64a6
- fix more build warning in rawhide
df64a6
df64a6
* Tue Nov 03 2015 Chris Leech <cleech@redhat.com> - 1.0.1-2.git986eb2e
df64a6
- convert from sysv shm to posix, to allow selinux restorecon 
df64a6
df64a6
* Wed Jun 17 2015 Chris Leech <cleech@redhat.com> - 1.0.1-1.git986eb2e
df64a6
- rebased to upstream v1.0.1-23-g986eb2e
df64a6
df64a6
* Thu Oct 23 2014 Chris Leech <cleech@redhat.com> - 0.9.46-8.git48a5f38
df64a6
- sync to upstream v0.9.46-123-g48a5f38
df64a6
df64a6
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.46-7
df64a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
df64a6
df64a6
* Tue Jul 22 2014 Peter Robinson <pbrobinson@fedoraproject.org> 0.9.46-6
df64a6
- Add upstream patch to build against libnl3
df64a6
- Drop legacy dcbd packaging support, we've not shipped it since F-13
df64a6
df64a6
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.46-5
df64a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
df64a6
df64a6
* Tue Mar 11 2014 Petr Å abata <contyk@redhat.com> - 0.9.46-4
df64a6
- Drop the explicit kernel runtime dependency
df64a6
- Patch configure.ac to build in rawhide
df64a6
df64a6
* Wed Jul 31 2013 Petr Å abata <contyk@redhat.com> - 0.9.46-3
df64a6
- Require 'systemd' instead of 'systemd-units'
df64a6
df64a6
* Tue Jul 02 2013 Petr Å abata <contyk@redhat.com> - 0.9.46-2
df64a6
- Fix the hardened build flags
df64a6
df64a6
* Tue Jun 04 2013 Petr Å abata <contyk@redhat.com> - 0.9.46-1
df64a6
- 0.9.46 bump
df64a6
- 802.1Qaz fixes to enable support on not CEE DCBX-enabled hardware
df64a6
- 802.1Qbg EVB module support
df64a6
- lldpad now supports bonded interfaces
df64a6
df64a6
* Tue Mar 05 2013 Petr Å abata <contyk@redhat.com> - 0.9.45-5
df64a6
- Fix build by patching the sizeof() call in lldp_8021qaz_cmds.c
df64a6
df64a6
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.45-4
df64a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
df64a6
df64a6
* Tue Aug 28 2012 Petr Å abata <contyk@redhat.com> - 0.9.45-3
df64a6
- Migrate to systemd scriptlets (#850192)
df64a6
df64a6
* Thu Aug 23 2012 Petr Å abata <contyk@redhat.com> - 0.9.45-2
df64a6
- Fix displaying of the Management Address TLV (327ef662)
df64a6
df64a6
* Wed Aug 15 2012 Petr Å abata <contyk@redhat.com> - 0.9.45-1
df64a6
- 0.9.45 bump
df64a6
- Provide bash-completion and the new clif library
df64a6
df64a6
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.44-2
df64a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
df64a6
df64a6
* Fri Jan 27 2012 Petr Å abata <contyk@redhat.com> - 0.9.44-1
df64a6
- 0.9.44 bump, patches cleanup
df64a6
- Correct dependencies a bit
df64a6
- Require dlopen()'d readline
df64a6
df64a6
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.43-6
df64a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
df64a6
df64a6
* Thu Oct 06 2011 Petr Sabata <contyk@redhat.com> - 0.9.43-5
df64a6
- Do not enable lldpad by default (#701999)
df64a6
df64a6
* Fri Sep 23 2011 Petr Sabata <contyk@redhat.com> - 0.9.43-4
df64a6
- Enable hardened build
df64a6
df64a6
* Tue Sep 13 2011 Petr Sabata <contyk@redhat.com> - 0.9.43-3
df64a6
- Mute systemd output (#737897)
df64a6
df64a6
* Tue Aug 30 2011 Petr Sabata <contyk@redhat.com> - 0.9.43-2
df64a6
- Apply various upstream 0.9.43 bugfixes
df64a6
- Include not yet accepted Jens Osterkamp's patch to fix bug #720080
df64a6
- Whitespace cleanup, phew
df64a6
df64a6
* Thu Jul 07 2011 Petr Sabata <contyk@redhat.com> - 0.9.43-1
df64a6
- 0.9.43 bump
df64a6
- Drop the the clean exit patch and our unit file, both are now included upstream
df64a6
df64a6
* Tue Jun 21 2011 Petr Sabata <contyk@redhat.com> - 0.9.42-2
df64a6
- Introduce systemd unit file, drop SysV support
df64a6
- Call systemctl instead of service and chkconfig
df64a6
- Enable the service only on new installation (post)
df64a6
- Clean exit patch
df64a6
df64a6
* Mon Jun 13 2011 Petr Sabata <contyk@redhat.com> - 0.9.42-1
df64a6
- 0.9.42 bump (massive patches cleanup)
df64a6
- Remove obsolete defattr
df64a6
- Remove COPYING and README from devel subpackage
df64a6
df64a6
* Wed May  4 2011 Petr Sabata <psabata@redhat.com> - 0.9.41-3
df64a6
- Fix the frequent, power consuming lldpad wake-ups (rhbz#701943)
df64a6
df64a6
* Thu Apr 21 2011 Petr Sabata <psabata@redhat.com> - 0.9.41-2
df64a6
- Bring in upstream 802.1Qbg bugfixes
df64a6
df64a6
* Thu Feb 10 2011 Petr Sabata <psabata@redhat.com> - 0.9.41-1
df64a6
- 0.9.41 bump
df64a6
- New BR: autotools, flex
df64a6
- Buildroot garbage removed
df64a6
- Devel post and preun scriptlets sanitized
df64a6
df64a6
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.38-2
df64a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
df64a6
df64a6
* Mon Jun 28 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.38-1
df64a6
- rebased to 0.9.38 (various enhancements and bugfixes, see 
df64a6
  lldpad-0.9.38-relnotes.txt on http://e1000.sf.net for complete list)
df64a6
df64a6
* Mon May 10 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.32-2
df64a6
- rebuild to match new libconfig
df64a6
df64a6
* Mon Apr 12 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.32-1
df64a6
- rebased to 0.9.32 (various enhancements and bugfixes, see 
df64a6
  lldpad-0.9.32-relnotes.txt on http://e1000.sf.net for complete list)
df64a6
df64a6
* Thu Mar 25 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.29-2
df64a6
- added Provides and Obsoletes tags to devel subpackage
df64a6
df64a6
* Mon Mar 15 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.29-1
df64a6
- updated package to 0.9.29, improved compatibility with fcoe-utils
df64a6
df64a6
* Fri Feb 26 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.26-2
df64a6
- updated spec file and LSB init script patch for re-review
df64a6
  (#568641)
df64a6
df64a6
* Thu Feb 25 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.26-1
df64a6
- rebased to 0.9.26
df64a6
- package renamed to lldpad
df64a6
- enahanced functionality (LLDP supported as well as DCBX)
df64a6
df64a6
* Fri Nov 13 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.19-2
df64a6
- init script patch adding LSB compliance
df64a6
df64a6
* Thu Oct 08 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.19-1
df64a6
- update to new upstream version
df64a6
df64a6
* Mon Oct 05 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.15-5
df64a6
- replaced the last patch, which was not fully functional, with
df64a6
  the new one
df64a6
df64a6
* Wed Sep 09 2009 Karsten Hopp <karsten@redhat.com> 0.9.15-4
df64a6
- buildrequire libconfig-devel >= 1.3.2, it doesn't build with 1.3.1 due to
df64a6
  the different config_lookup_string api
df64a6
df64a6
* Thu Aug 20 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.15-3
df64a6
- update of config_lookup_string() function calls
df64a6
df64a6
* Thu Aug 20 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.15-2
df64a6
- rebuild in order to match new libconfig
df64a6
df64a6
* Mon Aug 17 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.15-1
df64a6
- rebase to 0.9.15
df64a6
df64a6
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-5
df64a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
df64a6
df64a6
* Fri Mar 20 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.7-4
df64a6
- updated scriptlets in spec file to follow the rules
df64a6
df64a6
* Wed Mar 11 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.7-3
df64a6
- added devel files again to support fcoe-utils package
df64a6
- added kernel >= 2.6.29 to Requires, deleted dcbnl.h, since it is
df64a6
  aviable in kernel 2.6.29-rc7
df64a6
- changed config dir from /etc/sysconfig/dcbd to /etc/dcbd
df64a6
- updated init script: added mandatory Short description tag,
df64a6
  deleted default runlevels, which should start the script
df64a6
df64a6
* Tue Mar 10 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.7-2
df64a6
- added patch to enable usage of libconfig shared in system
df64a6
- removed devel part of package
df64a6
df64a6
* Mon Mar 2 2009 Chris Leech <christopher.leech@intel.com> - 0.9.7-1
df64a6
- Updated to 0.9.7
df64a6
- Added a private copy of dcbnl.h until kernel-headers includes it.
df64a6
  Export patch is making it's way to the upstream kernel via net-2.6,
df64a6
  expected in 2.6.29-rc7
df64a6
df64a6
* Thu Feb 26 2009 Chris Leech <christopher.leech@intel.com> - 0.9.5-1
df64a6
- initial RPM packaging