]>
Commit | Line | Data |
---|---|---|
19c6526c | 1 | Summary: DHCPv6 - DHCP server and client for IPv6 |
da19069e | 2 | Summary(pl.UTF-8): DHCPv6 - serwer i klient DHCP dla IPv6 |
19c6526c | 3 | Name: dhcpv6 |
0cc123ce | 4 | Version: 1.0.15 |
9c4c5303 | 5 | Release: 2 |
8a684ebd | 6 | Epoch: 1 |
f49b068f | 7 | License: GPL v2+ |
19c6526c | 8 | Group: Networking/Daemons |
54524cf8 | 9 | Source0: https://fedorahosted.org/releases/d/h/dhcpv6/%{name}-%{version}.tar.gz |
0cc123ce | 10 | # Source0-md5: 2b0b5374cb2a0c460b62af3705cb29f7 |
fb7020da | 11 | Source1: dhcp6s.init |
4c97a308 | 12 | Source2: dhcp6c.init |
bd2e4492 | 13 | Patch0: %{name}-configure.patch |
0cc123ce | 14 | URL: https://fedorahosted.org/dhcpv6/ |
f49b068f JB |
15 | BuildRequires: autoconf >= 2.61 |
16 | BuildRequires: automake | |
5cbfb15f JB |
17 | BuildRequires: bison |
18 | BuildRequires: flex | |
f49b068f | 19 | BuildRequires: libtool |
b19f7c09 | 20 | BuildRequires: rpmbuild(macros) >= 1.268 |
5cbfb15f | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19c6526c AM |
22 | |
23 | %description | |
24 | Implements the Dynamic Host Configuration Protocol (DHCP) for Internet | |
c96a4f12 | 25 | Protocol version 6 (IPv6) networks in accordance with RFC 3315: |
5f2e8ab6 | 26 | Dynamic Host Configuration Protocol for IPv6 (DHCPv6). |
5cbfb15f | 27 | |
7fcf5cd8 JR |
28 | %description -l pl.UTF-8 |
29 | Ten pakiet jest implementacją protokołu Dynamic Host Configuration | |
5cbfb15f | 30 | Protocol (DHCP) dla sieci IPv6 zgodnie z RFC 3315: Dynamic Host |
5f2e8ab6 | 31 | Configuration Protocol for IPv6 (DHCPv6). |
19c6526c | 32 | |
5f2e8ab6 | 33 | %package client |
a91e6378 | 34 | Summary: DHCPv6 client |
da19069e | 35 | Summary(pl.UTF-8): Klient DHCPv6 |
a91e6378 | 36 | Group: Applications/Networking |
b19f7c09 | 37 | Requires(post,preun): /sbin/chkconfig |
bd2e4492 | 38 | Requires: rc-scripts |
2e4b2cdd | 39 | |
5f2e8ab6 | 40 | %description client |
2e4b2cdd | 41 | Provides the client for the DHCPv6 protocol (RFC 3315) to support |
c96a4f12 | 42 | dynamic configuration of IPv6 addresses and parameters. |
2e4b2cdd | 43 | |
5f2e8ab6 | 44 | %description client -l pl.UTF-8 |
7fcf5cd8 | 45 | Ten pakiet dostarcza klienta protokołu DHCPv6 (RFC 3315) do obsługi |
c96a4f12 | 46 | dynamicznej konfiguracji adresów i parametrów sieci iPv6. |
2e4b2cdd | 47 | |
5f2e8ab6 ER |
48 | %package relay |
49 | Summary: DHCPv6 relay agent | |
b4d033f1 | 50 | Summary(pl.UTF-8): Agent przekazujący DHCPv6 |
5f2e8ab6 ER |
51 | Group: Applications/Networking |
52 | Requires(post,preun): /sbin/chkconfig | |
53 | Requires: rc-scripts | |
54 | ||
55 | %description relay | |
56 | dhcp6r acts as DHCPv6 relay agent forwarding DHCPv6 messages from | |
57 | clients to servers and vice versa. | |
58 | ||
b4d033f1 JB |
59 | %description relay -l pl.UTF-8 |
60 | dhcp6r służy jako agent przekazujący komunikaty DHCPv6 od klientów do | |
61 | serwerów i z powrotem. | |
62 | ||
5f2e8ab6 ER |
63 | %package server |
64 | Summary: DHCPv6 server daemon | |
b4d033f1 | 65 | Summary(pl.UTF-8): Demon serwera DHCPv6 |
5f2e8ab6 ER |
66 | Group: Applications/Networking |
67 | Requires(post,preun): /sbin/chkconfig | |
68 | Requires: rc-scripts | |
69 | ||
70 | %description server | |
71 | dhcp6s is an implementation of the DHCPv6 server. | |
72 | ||
b4d033f1 JB |
73 | %description server -l pl.UTF-8 |
74 | dhcp6s to implementacja serwera DHCPv6. | |
75 | ||
47bbc57d AM |
76 | %package -n libdhcp6client |
77 | Summary: The DHCPv6 client in a library for invocation by other programs | |
d41581a0 | 78 | Summary(pl.UTF-8): Klient DHCPv6 w postaci biblioteki do wykorzystania w innych programach |
f49b068f | 79 | Group: Libraries |
47bbc57d AM |
80 | |
81 | %description -n libdhcp6client | |
82 | Provides the client for the DHCPv6 protocol (RFC 3315) to support | |
83 | dynamic configuration of IPv6 addresses and parameters, in a library | |
84 | for invocation by other programs. | |
85 | ||
d41581a0 JB |
86 | %description -n libdhcp6client -l pl.UTF-8 |
87 | Ten pakiet zawiera klienta protokołu DHCPv6 (RFC 3315) do obsługi | |
88 | dynamicznej konfiguracji adresów i parametrów IPv6 w postaci | |
89 | biblioteki do wykorzystania w innych programach. | |
90 | ||
47bbc57d AM |
91 | %package -n libdhcp6client-devel |
92 | Summary: Header files for development with the DHCPv6 client library | |
d41581a0 | 93 | Summary(pl.UTF-8): Pliki nagłówkowe do programowania z użyciem biblioteki klienckiej DHCPv6 |
47bbc57d | 94 | Group: Development/Libraries |
d41581a0 | 95 | Requires: libdhcp6client = %{epoch}:%{version}-%{release} |
47bbc57d AM |
96 | |
97 | %description -n libdhcp6client-devel | |
98 | Header files for development with the DHCPv6 client library. | |
99 | ||
d41581a0 JB |
100 | %description -n libdhcp6client-devel -l pl.UTF-8 |
101 | Pliki nagłówkowe do programowania z użyciem biblioteki klienckiej | |
102 | DHCPv6. | |
103 | ||
47bbc57d AM |
104 | %package -n libdhcp6client-static |
105 | Summary: Static DHCPv6 client library | |
d41581a0 | 106 | Summary(pl.UTF-8): Statyczna biblioteka kliencka DHCPv6 |
47bbc57d | 107 | Group: Development/Libraries |
d41581a0 | 108 | Requires: libdhcp6client-devel = %{epoch}:%{version}-%{release} |
47bbc57d AM |
109 | |
110 | %description -n libdhcp6client-static | |
111 | Static DHCPv6 client library. | |
112 | ||
d41581a0 JB |
113 | %description -n libdhcp6client-static -l pl.UTF-8 |
114 | Statyczna biblioteka kliencka DHCPv6. | |
115 | ||
19c6526c | 116 | %prep |
bd2e4492 | 117 | %setup -q |
5cbfb15f | 118 | %patch0 -p1 |
19c6526c AM |
119 | |
120 | %build | |
bd2e4492 PZ |
121 | %{__libtoolize} |
122 | %{__aclocal} -I m4 | |
47bbc57d | 123 | %{__autoconf} |
bd2e4492 | 124 | %{__automake} |
d41581a0 | 125 | %configure |
47bbc57d | 126 | |
19c6526c | 127 | %{__make} |
19c6526c AM |
128 | |
129 | %install | |
130 | rm -rf $RPM_BUILD_ROOT | |
47bbc57d | 131 | install -d $RPM_BUILD_ROOT{%{_localstatedir}/lib/dhcpv6,/etc/{rc.d/init.d,sysconfig}} |
5cbfb15f JB |
132 | |
133 | %{__make} install \ | |
47bbc57d AM |
134 | INSTALL_USER=$(id -u) \ |
135 | INSTALL_GROUP=$(id -g) \ | |
5cbfb15f | 136 | DESTDIR=$RPM_BUILD_ROOT |
19c6526c | 137 | |
fb7020da | 138 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dhcp6s |
4c97a308 | 139 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/dhcp6c |
4cc522ce | 140 | |
2e4b2cdd | 141 | %clean |
142 | rm -rf $RPM_BUILD_ROOT | |
19c6526c | 143 | |
5f2e8ab6 ER |
144 | %post client |
145 | /sbin/chkconfig --add dhcp6c | |
146 | %service dhcp6c restart | |
147 | ||
148 | %post relay | |
b19f7c09 ER |
149 | /sbin/chkconfig --add dhcp6r |
150 | %service dhcp6r restart | |
19c6526c | 151 | |
5f2e8ab6 ER |
152 | %post server |
153 | /sbin/chkconfig --add dhcp6s | |
154 | %service dhcp6s restart | |
155 | ||
156 | %preun client | |
157 | if [ "$1" = "0" ]; then | |
158 | %service dhcp6c stop | |
159 | /sbin/chkconfig --del dhcp6c | |
160 | fi | |
161 | ||
162 | %preun relay | |
5cbfb15f | 163 | if [ "$1" = "0" ]; then |
b19f7c09 ER |
164 | %service dhcp6r stop |
165 | /sbin/chkconfig --del dhcp6r | |
4f148875 | 166 | fi |
19c6526c | 167 | |
5f2e8ab6 | 168 | %preun server |
b19f7c09 | 169 | if [ "$1" = "0" ]; then |
5f2e8ab6 ER |
170 | %service dhcp6s stop |
171 | /sbin/chkconfig --del dhcp6s | |
19c6526c AM |
172 | fi |
173 | ||
f49b068f JB |
174 | %post -n libdhcp6client -p /sbin/ldconfig |
175 | %postun -n libdhcp6client -p /sbin/ldconfig | |
176 | ||
5f2e8ab6 ER |
177 | %files client |
178 | %defattr(644,root,root,755) | |
179 | %attr(755,root,root) %{_sbindir}/dhcp6c | |
180 | %attr(754,root,root) /etc/rc.d/init.d/dhcp6c | |
181 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dhcp6c.conf | |
182 | %{_mandir}/man8/dhcp6c.8* | |
183 | %{_mandir}/man5/dhcp6c.conf.5* | |
184 | ||
185 | %files relay | |
19c6526c | 186 | %defattr(644,root,root,755) |
bd2e4492 | 187 | %attr(755,root,root) %{_sbindir}/dhcp6r |
bd2e4492 | 188 | %attr(754,root,root) /etc/rc.d/init.d/dhcp6r |
bd2e4492 | 189 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dhcp6r |
5f2e8ab6 ER |
190 | %{_mandir}/man8/dhcp6r.8* |
191 | ||
192 | %files server | |
193 | %defattr(644,root,root,755) | |
194 | %doc AUTHORS README TODO | |
195 | %attr(755,root,root) %{_sbindir}/dhcp6s | |
196 | %attr(754,root,root) /etc/rc.d/init.d/dhcp6s | |
2e4b2cdd | 197 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dhcp6s |
b526a588 | 198 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dhcp6s.conf |
5cbfb15f JB |
199 | %{_mandir}/man8/dhcp6s.8* |
200 | %{_mandir}/man5/dhcp6s.conf.5* | |
5f2e8ab6 | 201 | %attr(750,root,root) %dir %{_localstatedir}/lib/dhcpv6 |
47bbc57d AM |
202 | |
203 | %files -n libdhcp6client | |
204 | %defattr(644,root,root,755) | |
f49b068f JB |
205 | %attr(755,root,root) %{_libdir}/libdhcp6client-*.so.*.*.* |
206 | %attr(755,root,root) %ghost %{_libdir}/libdhcp6client-*.so.2 | |
47bbc57d AM |
207 | |
208 | %files -n libdhcp6client-devel | |
209 | %defattr(644,root,root,755) | |
d41581a0 | 210 | %attr(755,root,root) %{_libdir}/libdhcp6client.so |
bd2e4492 | 211 | %{_libdir}/libdhcp6client.la |
f49b068f | 212 | %{_includedir}/dhcp6client |
47bbc57d | 213 | %{_pkgconfigdir}/libdhcp6client.pc |
47bbc57d AM |
214 | |
215 | %files -n libdhcp6client-static | |
216 | %defattr(644,root,root,755) | |
217 | %{_libdir}/libdhcp6client.a |