SHA256
1
0
forked from pool/open-lldp
open-lldp/open-lldp.spec
Hannes Reinecke 408c834010 Accepting request 749533 from home:hreinecke:branches:network:fcoe
- Update to version v1.0.1+102.4c7fcc3:
  * l2_packet: Guard ETH_P_LLDP define
  * lldp_mand: retrieve permanent mac address in get_mac()
  * lldp_util: use netlink to fetch mac address
  * lldp_util: drop get_macstr()
  * linux/if_link.h: Update and add bonding netlink definitions

- Update to version v1.0.1+95.3168e11:
  * Test with newer GCC 8 and 9 versions
  * RPM build is broken, so skip
  * Place the tarball in the right place
  * A tarball needs to be built after bootstrap.sh for use with RPM
  * Added missing steps for building an RPM
  * Finish off with testing building the RPM
  * Test package installation as well
  * Test under multiple GCC releases
  * Drop requirement for Travis CI testing with Clang
  * Support checking build with Travis CI
  * vdp-netlink: account for sizes properly
  * qbg: avoid warning for extra parens
  * qbg: port name is always a valid pointer
  * dcbx-nl: drop run_cmd
  * ecp: allow for failure to create
  * lldp_util: allow for null ifa_addr element
  * lldpad: Do not enable port if already enabled
  * Silent -Werror=address-of-packed-member warnings.
  * Come up with STRNCPY_TERMINATED (#25).
  * vdptool: fixed compile error for getline()
  * Fix #23 by off by one strncpy value.
  * 8021qaz: Block lldptool set operations if read only mode is on

OBS-URL: https://build.opensuse.org/request/show/749533
OBS-URL: https://build.opensuse.org/package/show/network:fcoe/open-lldp?expand=0&rev=34
2019-11-19 13:39:46 +00:00

130 lines
3.4 KiB
RPMSpec

#
# spec file for package open-lldp
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define libname liblldp_clif1
Name: open-lldp
Summary: Link Layer Discovery Protocol (LLDP) Agent
License: GPL-2.0-only
Group: System/Daemons
Version: 1.0.1+102.4c7fcc3
Release: 0
BuildRequires: bison
BuildRequires: flex
BuildRequires: libconfig-devel
BuildRequires: libnl3-devel
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: readline-devel
Url: https://github.com/intel/openlldp
Source: %{name}-v%{version}.tar.xz
Patch0: disable-werror.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: dcbd = %{version}
Obsoletes: dcbd < %{version}
Provides: lldpad = %{version}
Obsoletes: lldpad < %{version}
BuildRequires: systemd
%systemd_requires
%description
This package contains the Link Layer Discovery Protocol (LLDP) Agent
with Data Center Bridging (DCB) for Intel(R) Network Connections
'lldpad' plus the configuration tools 'dcbtool' and 'lldptool'.
%package -n %{libname}
Summary: Link Layer Discovery Protocol (LLDP) libraries
Group: System/Libraries
%description -n %{libname}
This package contains the Link Layer Discovery Protocol (LLDP) libraries
%package devel
Summary: Link Layer Discovery Protocol (LLDP) Agent
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
Requires: %{name} = %{version}
Provides: dcbd-devel = %{version}
Obsoletes: dcbd-devel < %{version}
Provides: lldpad-devel = %{version}
Obsoletes: lldpad-devel < %{version}
%description devel
This package contains the Link Layer Discovery Protocol (LLDP) Agent
with Data Center Bridging (DCB) for Intel(R) Network Connections
'lldpad' plus the configuration tools 'dcbtool' and 'lldptool'.
%prep
%setup -n %{name}-v%{version}
%patch0 -p1
%build
autoreconf -vi
%configure \
--disable-static
make %{?_smp_mflags}
%check
make check %{?_smp_mflags}
%install
mkdir -p %{buildroot}/var/lib/lldpad
%makeinstall
# remove la archives
rm -rf %{buildroot}/%{_libdir}/*.la
ln -s service %{buildroot}%{_sbindir}/rclldpad
%post
%{fillup_only -n lldpad}
%service_add_post lldpad.service
%pre
%service_add_pre lldpad.service
%preun
%service_del_preun lldpad.service
%postun
%service_del_postun lldpad.service
%post -n %libname -p /sbin/ldconfig
%postun -n %libname -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%license COPYING
%doc README ChangeLog
%dir /var/lib/lldpad
%{_unitdir}/*
%{_sbindir}/*
%{_mandir}/man3/*
%{_mandir}/man8/*
%config /etc/bash_completion.d/*
%files -n %libname
%defattr(-,root,root)
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%changelog