]>
Commit | Line | Data |
---|---|---|
3798a763 JB |
1 | # TODO: system ell |
2 | Summary: iwd - wireless daemon for Linux | |
3 | Summary(pl.UTF-8): iwd - demon sieci bezprzewodowej dla Linuksa | |
4 | Name: iwd | |
e7396d76 | 5 | Version: 0.6 |
3798a763 JB |
6 | Release: 1 |
7 | License: LGPL v2.1+ | |
8 | Group: Networking/Daemons | |
9 | Source0: https://www.kernel.org/pub/linux/network/wireless/%{name}-%{version}.tar.xz | |
e7396d76 | 10 | # Source0-md5: 3ea486d242749b84b1f6aa05d1e3d81f |
3798a763 JB |
11 | URL: https://git.kernel.org/pub/scm/network/wireless/iwd.git |
12 | BuildRequires: asciidoc | |
13 | BuildRequires: dbus-devel | |
14 | BuildRequires: pkgconfig | |
15 | BuildRequires: readline-devel | |
16 | BuildRequires: tar >= 1:1.22 | |
17 | BuildRequires: xz | |
e7396d76 AM |
18 | Requires(post,preun,postun): systemd-units >= 38 |
19 | Requires: systemd-units >= 38 | |
3798a763 JB |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | Wireless daemon for Linux. | |
24 | ||
25 | %description -l pl.UTF-8 | |
26 | Demon sieci bezprzewodowej dla Linuksa. | |
27 | ||
28 | %prep | |
29 | %setup -q | |
30 | ||
31 | %build | |
32 | %configure \ | |
33 | --enable-docs \ | |
34 | --disable-silent-rules \ | |
35 | --with-systemd-unitdir=%{systemdunitdir} | |
36 | ||
37 | %{__make} -j1 | |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
e7396d76 AM |
41 | |
42 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/iwd | |
43 | cp -p doc/main.conf $RPM_BUILD_ROOT%{_sysconfdir}/iwd/main.conf | |
3798a763 JB |
44 | |
45 | %{__make} install \ | |
46 | DESTDIR=$RPM_BUILD_ROOT | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
e7396d76 AM |
51 | %post |
52 | %systemd_post iwd.service | |
53 | ||
54 | %preun | |
55 | %systemd_preun iwd.service | |
56 | ||
57 | %postun | |
58 | %systemd_reload | |
59 | ||
3798a763 JB |
60 | %files |
61 | %defattr(644,root,root,755) | |
62 | %doc AUTHORS ChangeLog README TODO | |
e7396d76 AM |
63 | %dir %{_sysconfdir}/iwd |
64 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/iwd/main.conf | |
3798a763 JB |
65 | %attr(755,root,root) %{_bindir}/iwctl |
66 | %attr(755,root,root) %{_bindir}/iwmon | |
67 | %attr(755,root,root) %{_libexecdir}/iwd | |
68 | %{systemdunitdir}/iwd.service | |
69 | %{_datadir}/dbus-1/system.d/iwd-dbus.conf | |
e7396d76 | 70 | %{_datadir}/dbus-1/system-services/net.connman.iwd.service |
3798a763 | 71 | %{_mandir}/man1/iwmon.1* |