-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrpld.spec
executable file
·99 lines (79 loc) · 2.27 KB
/
rpld.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
## -*- mode: rpm-spec; -*-
##
## $Id: $
##
## rpld.spec.
##
%define debug_package %{nil}
%define _without_docs 1
%{?_without_docs: %define _with_docs 0}
Summary: Router Protocol for Low-Power and Lossy Network (RPL) Daemon.
Name: rpld
Version: 1.00
Release: 001
URL: http://www.rosand-tech.com/downloads/rpld
Source0: %{name}-%{version}.tar.gz
License: GPL
Group: Applications/Communications
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Router Protocol for Low-Power and Lossy Network (RPL) Daemon.
Low-Power and Lossy Networks (LLNs) are class of network in which both
routers and their interconnect are constrained. RPL provides a
mechanism whereby multipoint-to-point traffic from devices inside
the LLN towards a central control point as well as point-to-multipoint
traffic from the central point to the devices inside the LLNs
are supported.
On Linux this program is called rpld, which stands for RPL Daemon.
This daemon acts as the central control point of the protocol.
%if %{_with_docs}
## The rpld-docs subpackage
%package docs
Summary: Documentation for rpld.
Group: Documentation
%description docs
Documentation for rpld in info, html, postscript and pdf formats.
%endif
%prep
%setup -q
%build
make all
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man8
make prefix=$RPM_BUILD_ROOT%{_prefix} \
sysconfdir=$RPM_BUILD_ROOT/etc \
mandir=$RPM_BUILD_ROOT%{_mandir} \
infodir=$RPM_BUILD_ROOT%{_infodir} \
install
%clean
rm -rf $RPM_BUILD_ROOT
%if %{_with_docs}
%post docs
[ -f %{_infodir}/rpld.info ] && \
/sbin/install-info %{_infodir}/rpld.info %{_infodir}/dir || :
[ -f %{_infodir}/rpld.info.gz ] && \
/sbin/install-info %{_infodir}/rpld.info.gz %{_infodir}/dir || :
%preun docs
if [ $1 = 0 ]; then
[ -f %{_infodir}/rpld.info ] && \
/sbin/install-info --delete %{_infodir}/rpld.info %{_infodir}/dir || :
[ -f %{_infodir}/rpld.info.gz ] && \
/sbin/install-info --delete %{_infodir}/rpld.info.gz %{_infodir}/dir || :
fi
%endif
%files
%defattr(-,root,root)
%{_prefix}/bin/rpld
%{_mandir}/man8/rpld.8.gz
%if %{_with_docs}
%files docs
%doc %{_infodir}/*info*
%doc doc/rpld-html/*.html
%doc doc/rpld.ps
%doc doc/rpld.pdf
%endif
%changelog
* Mon Jul 09 2012 Zafi Ramarosandratana <[email protected]>
- Initial build.