1 Summary: Intel LLDP Agent
7 # git://www.open-lldp.org/open-lldp.git
8 Source0: %{name}-%{version}.tar.xz
9 # Source0-md5: 602088dcb826d0b7966eafe2c082fe46
10 Patch0: systemd-in-roor.patch
11 URL: http://open-lldp.org/
12 BuildRequires: autoconf
13 BuildRequires: automake
14 BuildRequires: flex >= 2.5.33
15 BuildRequires: kernel-headers >= 2.6.32
16 BuildRequires: libconfig-devel >= 1.3.2
17 BuildRequires: libnl-devel
18 BuildRequires: libtool
19 BuildRequires: readline-devel
20 BuildRequires: rpmbuild(macros) >= 1.647
21 BuildRequires: systemd
23 Requires(post,preun,postun): systemd-units >= 38
24 Requires: systemd-units >= 0.38
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This package contains the Linux user space daemon and configuration
29 tool for Intel LLDP Agent with Enhanced Ethernet support for the Data
33 Summary: Development files for %{name}
34 Group: Development/Libraries
35 Requires: %{name} = %{version}-%{release}
38 The %{name}-devel package contains header files for developing
39 applications that use %{name}.
50 export CFLAGS="%{rpmcflags} -Wno-error"
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT%{_sharedstatedir}/%{name}
61 DESTDIR=$RPM_BUILD_ROOT
63 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
66 rm -rf $RPM_BUILD_ROOT
70 %systemd_post %{name}.service %{name}.socket
73 %systemd_preun %{name}.service %{name}.socket
80 %defattr(644,root,root,755)
81 %doc COPYING README ChangeLog
82 %{_sysconfdir}/bash_completion.d/*
83 %attr(755,root,root) %{_sbindir}/dcbtool
84 %attr(755,root,root) %{_sbindir}/lldpad
85 %attr(755,root,root) %{_sbindir}/lldptool
86 %attr(755,root,root) %{_libdir}/liblldp_clif.so.*.*.*
87 %attr(755,root,root) %ghost %{_libdir}/liblldp_clif.so.1
88 %{systemdunitdir}/%{name}.service
89 %{systemdunitdir}/%{name}.socket
90 %dir %{_sharedstatedir}/%{name}
91 %{_mandir}/man8/dcbtool.8*
92 %{_mandir}/man8/lldpad.8*
93 %{_mandir}/man8/lldptool.8*
94 %{_mandir}/man8/lldptool-app.8*
95 %{_mandir}/man8/lldptool-dcbx.8*
96 %{_mandir}/man8/lldptool-ets.8*
97 %{_mandir}/man8/lldptool-evb22.8*
98 %{_mandir}/man8/lldptool-evb.8*
99 %{_mandir}/man8/lldptool-med.8*
100 %{_mandir}/man8/lldptool-pfc.8*
101 %{_mandir}/man8/lldptool-vdp.8*
104 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_libdir}/liblldp_clif.so
106 %{_includedir}/lldpad
107 %{_pkgconfigdir}/liblldp_clif.pc
108 %{_pkgconfigdir}/lldpad.pc