]>
Commit | Line | Data |
---|---|---|
a4572bfa JR |
1 | Summary: Intel LLDP Agent |
2 | Name: lldpad | |
3 | Version: 1.0.1 | |
4 | Release: 1 | |
5 | License: GPL v2 | |
6 | Group: Daemons | |
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 | |
22 | Requires: readline | |
23 | Requires(post,preun,postun): systemd-units >= 38 | |
24 | Requires: systemd-units >= 0.38 | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | This package contains the Linux user space daemon and configuration | |
29 | tool for Intel LLDP Agent with Enhanced Ethernet support for the Data | |
30 | Center. | |
31 | ||
32 | %package devel | |
33 | Summary: Development files for %{name} | |
34 | Group: Development/Libraries | |
35 | Requires: %{name} = %{version}-%{release} | |
36 | ||
37 | %description devel | |
38 | The %{name}-devel package contains header files for developing | |
39 | applications that use %{name}. | |
40 | ||
41 | %prep | |
42 | %setup -q | |
43 | %patch0 -p1 | |
44 | ||
45 | %build | |
46 | %{__libtoolize} | |
47 | %{__aclocal} | |
48 | %{__autoconf} | |
49 | %{__automake} | |
50 | export CFLAGS="%{rpmcflags} -Wno-error" | |
51 | %configure \ | |
52 | --disable-static | |
53 | ||
54 | %{__make} | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | install -d $RPM_BUILD_ROOT%{_sharedstatedir}/%{name} | |
59 | ||
60 | %{__make} install \ | |
61 | DESTDIR=$RPM_BUILD_ROOT | |
62 | ||
63 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
64 | ||
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %post | |
69 | /sbin/ldconfig | |
70 | %systemd_post %{name}.service %{name}.socket | |
71 | ||
72 | %preun | |
73 | %systemd_preun %{name}.service %{name}.socket | |
74 | ||
75 | %postun | |
76 | /sbin/ldconfig | |
77 | %systemd_reload | |
78 | ||
79 | %files | |
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* | |
5c95115a | 101 | %{_mandir}/man8/lldptool-vdp.8* |
a4572bfa JR |
102 | |
103 | %files devel | |
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}/liblldp.pc |