]> git.pld-linux.org Git - packages/lldpad.git/blame - lldpad.spec
- typo #2
[packages/lldpad.git] / lldpad.spec
CommitLineData
a4572bfa
JR
1Summary: Intel LLDP Agent
2Name: lldpad
3Version: 1.0.1
4Release: 1
5License: GPL v2
6Group: Daemons
7# git://www.open-lldp.org/open-lldp.git
8Source0: %{name}-%{version}.tar.xz
9# Source0-md5: 602088dcb826d0b7966eafe2c082fe46
10Patch0: systemd-in-roor.patch
11URL: http://open-lldp.org/
12BuildRequires: autoconf
13BuildRequires: automake
14BuildRequires: flex >= 2.5.33
15BuildRequires: kernel-headers >= 2.6.32
16BuildRequires: libconfig-devel >= 1.3.2
17BuildRequires: libnl-devel
18BuildRequires: libtool
19BuildRequires: readline-devel
20BuildRequires: rpmbuild(macros) >= 1.647
21BuildRequires: systemd
22Requires: readline
23Requires(post,preun,postun): systemd-units >= 38
24Requires: systemd-units >= 0.38
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28This package contains the Linux user space daemon and configuration
29tool for Intel LLDP Agent with Enhanced Ethernet support for the Data
30Center.
31
32%package devel
33Summary: Development files for %{name}
34Group: Development/Libraries
35Requires: %{name} = %{version}-%{release}
36
37%description devel
38The %{name}-devel package contains header files for developing
39applications that use %{name}.
40
41%prep
42%setup -q
43%patch0 -p1
44
45%build
46%{__libtoolize}
47%{__aclocal}
48%{__autoconf}
49%{__automake}
50export CFLAGS="%{rpmcflags} -Wno-error"
51%configure \
52 --disable-static
53
54%{__make}
55
56%install
57rm -rf $RPM_BUILD_ROOT
58install -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
66rm -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
This page took 0.117492 seconds and 4 git commands to generate.