lldpad/lldpad.spec

260 lines
8.8 KiB
RPMSpec
Raw Normal View History

2011-09-23 12:21:13 +00:00
# https://fedoraproject.org/wiki/Packaging:Guidelines#Compiler_flags
%define _hardened_build 1
2011-06-13 09:20:47 +00:00
Name: lldpad
Version: 0.9.46
2013-07-02 13:19:18 +00:00
Release: 2%{?dist}
2011-06-13 09:20:47 +00:00
Summary: Intel LLDP Agent
Group: System Environment/Daemons
License: GPLv2
URL: http://open-lldp.org/
Source0: %{name}-%{version}.tar.gz
Requires: kernel >= 2.6.32
BuildRequires: automake autoconf libtool
BuildRequires: flex >= 2.5.33
BuildRequires: kernel-headers >= 2.6.32
BuildRequires: libconfig-devel >= 1.3.2
2012-01-27 10:34:25 +00:00
BuildRequires: libnl-devel
BuildRequires: readline-devel
BuildRequires: systemd-units
2012-01-27 10:34:25 +00:00
Requires: readline
2011-06-21 14:22:29 +00:00
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
2011-06-13 09:20:47 +00:00
Provides: dcbd = %{version}-%{release}
Obsoletes: dcbd < 0.9.26
2010-03-01 12:46:48 +00:00
%description
This package contains the Linux user space daemon and configuration tool for
Intel LLDP Agent with Enhanced Ethernet support for the Data Center.
2011-06-13 09:20:47 +00:00
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
2012-01-27 10:34:25 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
2011-06-13 09:20:47 +00:00
Provides: dcbd-devel = %{version}-%{release}
Obsoletes: dcbd-devel < 0.9.26
2010-03-01 12:46:48 +00:00
2011-09-08 06:34:30 +00:00
%description devel
2010-03-01 12:46:48 +00:00
The %{name}-devel package contains header files for developing applications
that use %{name}.
%prep
2012-01-27 10:34:25 +00:00
%setup -q
2010-03-01 12:46:48 +00:00
%build
./bootstrap.sh
2012-08-15 12:03:03 +00:00
%configure --disable-static
2013-07-02 13:19:18 +00:00
# fix the hardened build flags
sed -i -e 's! \\\$compiler_flags !&\\\$CFLAGS \\\$LDFLAGS !' libtool
2010-03-01 12:46:48 +00:00
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
rm -f %{buildroot}%{_mandir}/man8/dcbd.8
2011-06-21 14:22:29 +00:00
mkdir -p %{buildroot}%{_unitdir}
2011-07-07 12:55:36 +00:00
install -m644 %{name}.service %{buildroot}%{_unitdir}
2011-06-21 14:22:29 +00:00
rm -rf %{buildroot}/etc/init.d
mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
2012-08-15 12:03:03 +00:00
rm -f %{buildroot}%{_libdir}/liblldp_clif.la
2010-03-01 12:46:48 +00:00
%post
2012-08-15 12:03:03 +00:00
/sbin/ldconfig
2012-08-28 11:28:28 +00:00
%systemd_post %{name}.service
2010-03-01 12:46:48 +00:00
%preun
2012-08-28 11:28:28 +00:00
%systemd_preun %{name}.service
2010-03-01 12:46:48 +00:00
%postun
2012-08-15 12:03:03 +00:00
/sbin/ldconfig
2012-08-28 11:28:28 +00:00
%systemd_postun_with_restart %{name}.service
2010-03-01 12:46:48 +00:00
%post devel
## provide legacy support for apps that use the old dcbd interface.
if [ ! -e %{_includedir}/dcbd ]; then
ln -T -s %{_includedir}/lldpad %{_includedir}/dcbd
fi
if [ ! -e %{_includedir}/dcbd/clif_cmds.h ]; then
ln -T -s %{_includedir}/lldpad/lldp_dcbx_cmds.h %{_includedir}/dcbd/clif_cmds.h
fi
%preun devel
if [ -e %{_includedir}/dcbd/clif_cmds.h ]; then
rm -f %{_includedir}/dcbd/clif_cmds.h
fi
if [ -e %{_includedir}/dcbd ]; then
rm -f %{_includedir}/dcbd
fi
2010-03-01 12:46:48 +00:00
%files
%doc COPYING README ChangeLog
%{_sbindir}/*
2012-08-15 12:03:03 +00:00
%{_libdir}/liblldp_clif.so.*
2010-03-01 12:46:48 +00:00
%dir %{_sharedstatedir}/%{name}
2011-06-21 14:22:29 +00:00
%{_unitdir}/%{name}.service
2012-08-15 12:03:03 +00:00
%dir %{_sysconfdir}/bash_completion.d/
%{_sysconfdir}/bash_completion.d/*
2010-03-01 12:46:48 +00:00
%{_mandir}/man8/*
%files devel
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
2012-08-15 12:03:03 +00:00
%{_libdir}/liblldp_clif.so
2010-03-01 12:46:48 +00:00
%changelog
2013-07-02 13:19:18 +00:00
* Tue Jul 02 2013 Petr Šabata <contyk@redhat.com> - 0.9.46-2
- Fix the hardened build flags
* Tue Jun 04 2013 Petr Šabata <contyk@redhat.com> - 0.9.46-1
- 0.9.46 bump
- 802.1Qaz fixes to enable support on not CEE DCBX-enabled hardware
- 802.1Qbg EVB module support
- lldpad now supports bonded interfaces
* Tue Mar 05 2013 Petr Šabata <contyk@redhat.com> - 0.9.45-5
- Fix build by patching the sizeof() call in lldp_8021qaz_cmds.c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.45-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2012-08-28 11:28:28 +00:00
* Tue Aug 28 2012 Petr Šabata <contyk@redhat.com> - 0.9.45-3
- Migrate to systemd scriptlets (#850192)
* Thu Aug 23 2012 Petr Šabata <contyk@redhat.com> - 0.9.45-2
- Fix displaying of the Management Address TLV (327ef662)
2012-08-15 12:03:03 +00:00
* Wed Aug 15 2012 Petr Šabata <contyk@redhat.com> - 0.9.45-1
- 0.9.45 bump
- Provide bash-completion and the new clif library
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.44-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-01-27 10:34:25 +00:00
* Fri Jan 27 2012 Petr Šabata <contyk@redhat.com> - 0.9.44-1
- 0.9.44 bump, patches cleanup
- Correct dependencies a bit
- Require dlopen()'d readline
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.43-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Thu Oct 06 2011 Petr Sabata <contyk@redhat.com> - 0.9.43-5
- Do not enable lldpad by default (#701999)
2011-09-23 12:21:13 +00:00
* Fri Sep 23 2011 Petr Sabata <contyk@redhat.com> - 0.9.43-4
- Enable hardened build
2011-09-13 11:39:06 +00:00
* Tue Sep 13 2011 Petr Sabata <contyk@redhat.com> - 0.9.43-3
- Mute systemd output (#737897)
2011-09-08 06:34:30 +00:00
* Tue Aug 30 2011 Petr Sabata <contyk@redhat.com> - 0.9.43-2
- Apply various upstream 0.9.43 bugfixes
- Include not yet accepted Jens Osterkamp's patch to fix bug #720080
- Whitespace cleanup, phew
2011-07-07 12:55:36 +00:00
* Thu Jul 07 2011 Petr Sabata <contyk@redhat.com> - 0.9.43-1
- 0.9.43 bump
- Drop the the clean exit patch and our unit file, both are now included upstream
2011-06-21 14:22:29 +00:00
* Tue Jun 21 2011 Petr Sabata <contyk@redhat.com> - 0.9.42-2
- Introduce systemd unit file, drop SysV support
- Call systemctl instead of service and chkconfig
- Enable the service only on new installation (post)
2011-06-21 14:22:29 +00:00
- Clean exit patch
2011-06-13 09:20:47 +00:00
* Mon Jun 13 2011 Petr Sabata <contyk@redhat.com> - 0.9.42-1
- 0.9.42 bump (massive patches cleanup)
- Remove obsolete defattr
- Remove COPYING and README from devel subpackage
* Wed May 4 2011 Petr Sabata <psabata@redhat.com> - 0.9.41-3
- Fix the frequent, power consuming lldpad wake-ups (rhbz#701943)
2011-04-21 07:09:33 +00:00
* Thu Apr 21 2011 Petr Sabata <psabata@redhat.com> - 0.9.41-2
- Bring in upstream 802.1Qbg bugfixes
* Thu Feb 10 2011 Petr Sabata <psabata@redhat.com> - 0.9.41-1
- 0.9.41 bump
- New BR: autotools, flex
- Buildroot garbage removed
- Devel post and preun scriptlets sanitized
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.38-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2010-06-28 13:07:47 +00:00
* Mon Jun 28 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.38-1
- rebased to 0.9.38 (various enhancements and bugfixes, see
lldpad-0.9.38-relnotes.txt on http://e1000.sf.net for complete list)
2010-05-10 06:23:52 +00:00
* Mon May 10 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.32-2
- rebuild to match new libconfig
* Mon Apr 12 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.32-1
- rebased to 0.9.32 (various enhancements and bugfixes, see
lldpad-0.9.32-relnotes.txt on http://e1000.sf.net for complete list)
* Thu Mar 25 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.29-2
- added Provides and Obsoletes tags to devel subpackage
* Mon Mar 15 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.29-1
- updated package to 0.9.29, improved compatibility with fcoe-utils
2010-03-01 12:46:48 +00:00
* Fri Feb 26 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.26-2
- updated spec file and LSB init script patch for re-review
(#568641)
2010-03-01 12:46:48 +00:00
* Thu Feb 25 2010 Jan Zeleny <jzeleny@redhat.com> - 0.9.26-1
- rebased to 0.9.26
- package renamed to lldpad
- enahanced functionality (LLDP supported as well as DCBX)
* Fri Nov 13 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.19-2
- init script patch adding LSB compliance
* Thu Oct 08 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.19-1
- update to new upstream version
* Mon Oct 05 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.15-5
- replaced the last patch, which was not fully functional, with
the new one
* Wed Sep 09 2009 Karsten Hopp <karsten@redhat.com> 0.9.15-4
- buildrequire libconfig-devel >= 1.3.2, it doesn't build with 1.3.1 due to
the different config_lookup_string api
* Thu Aug 20 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.15-3
- update of config_lookup_string() function calls
* Thu Aug 20 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.15-2
- rebuild in order to match new libconfig
* Mon Aug 17 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.15-1
- rebase to 0.9.15
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Fri Mar 20 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.7-4
- updated scriptlets in spec file to follow the rules
* Wed Mar 11 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.7-3
- added devel files again to support fcoe-utils package
- added kernel >= 2.6.29 to Requires, deleted dcbnl.h, since it is
aviable in kernel 2.6.29-rc7
- changed config dir from /etc/sysconfig/dcbd to /etc/dcbd
- updated init script: added mandatory Short description tag,
deleted default runlevels, which should start the script
* Tue Mar 10 2009 Jan Zeleny <jzeleny@redhat.com> - 0.9.7-2
- added patch to enable usage of libconfig shared in system
- removed devel part of package
* Mon Mar 2 2009 Chris Leech <christopher.leech@intel.com> - 0.9.7-1
- Updated to 0.9.7
- Added a private copy of dcbnl.h until kernel-headers includes it.
Export patch is making it's way to the upstream kernel via net-2.6,
expected in 2.6.29-rc7
* Thu Feb 26 2009 Chris Leech <christopher.leech@intel.com> - 0.9.5-1
- initial RPM packaging