]> git.pld-linux.org Git - packages/dLAN.git/blame - dLAN.spec
- don't use %{?without_...} - it may not work after inverting bcond
[packages/dLAN.git] / dLAN.spec
CommitLineData
36282921
ER
1# TODO
2# - about license: http://www.spinics.net/lists/linux-usb-devel/msg03600.html
8af44e29
JB
3#
4# Conditional build:
622b7e9f 5%bcond_without dist_kernel # without kernel from distribution
6%bcond_without kernel # don't build kernel modules
622b7e9f 7%bcond_without userspace # don't build userspace module
8%bcond_with verbose # verbose build (V=1)
8af44e29 9#
36282921
ER
10%if %{without kernel}
11%undefine with_dist_kernel
12%endif
13#
ac19859a
JB
14Summary: Linux drivers for devolo dLAN HomePlug adapters
15Summary(pl.UTF-8): Sterowniki dla Linuksa do adapterów devolo dLAN HomePlug
c8a6b7f0 16Name: dLAN
36282921
ER
17Version: 3
18Release: 0.1
7f517f73 19License: Devolo AG License, non-distributable
ac19859a 20Group: Applications/System
36282921
ER
21Source0: http://download.devolo.net/webcms/0518732001164965747/%{name}-linux-package-v%{version}.tar.gz
22# NoSource0-md5: 5ac30a52511a22571805519641a28e66
7f517f73 23NoSource: 0
36282921 24URL: http://www.devolo.com/co_EN/produkte/dlan/dn-1-mldlanduo.html
8af44e29 25%if %{with kernel}
36282921
ER
26%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
27BuildRequires: rpmbuild(macros) >= 1.379
8af44e29
JB
28%endif
29%if %{with userspace}
c8a6b7f0 30BuildRequires: libpcap-devel
8af44e29 31%endif
c8a6b7f0 32BuildRequires: rpmbuild(macros) >= 1.268
c8a6b7f0 33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%description
ac19859a
JB
36Linux 2.4/2.6 drivers for devolo dLAN HomePlug adapters for data
37communication over the household power grid.
c8a6b7f0 38
ac19859a 39This package contains userspace utilities.
c8a6b7f0 40
a0dd3679 41%description -l pl.UTF-8
ac19859a
JB
42Sterowniki dla Linuksa 2.4/2.6 do adapterów devolo dLAN HomePlug
43służących do przesyłania danych po domowej sieci energetycznej.
44
45Ten pakiet zawiera narzędzia przestrzeni użytkownika.
c8a6b7f0 46
47%package -n kernel-char-dLAN
ac19859a
JB
48Summary: Linux kernel driver for devolo dLAN HomePlug adapters
49Summary(pl.UTF-8): Sterownik jądra Linuksa dla adapterów devolo dLAN HomePlug
c8a6b7f0 50Release: %{release}@%{_kernel_ver_str}
51Group: Base/Kernel
36282921
ER
52%if %{with dist_kernel}
53%requires_releq_kernel
54Requires(postun): %releq_kernel
55%endif
c8a6b7f0 56Requires(post,postun): /sbin/depmod
57
58%description -n kernel-char-dLAN
ac19859a
JB
59Linux kernel drivers for devolo dLAN HomePlug adapters for data
60communication over the household power grid.
c8a6b7f0 61
a0dd3679 62%description -n kernel-char-dLAN -l pl.UTF-8
ac19859a
JB
63Sterowniki jądra Linuksa do adapterów devolo dLAN HomePlug służących
64do przesyłania danych po domowej sieci energetycznej.
c8a6b7f0 65
c8a6b7f0 66%prep
36282921 67%setup -q -n %{name}-linux-package-v%{version}
c8a6b7f0 68
69%build
36282921 70%configure \
bbabd232 71 %{!?with_kernel:--disable-usbdriver}
36282921 72
c8a6b7f0 73%if %{with userspace}
36282921 74%{__make} -C tool
c8a6b7f0 75%endif
76
77%if %{with kernel}
36282921 78%build_kernel_modules -C driver -m devolo_usb
c8a6b7f0 79%endif
80
81%install
82rm -rf $RPM_BUILD_ROOT
83install -d $RPM_BUILD_ROOT
84
85%if %{with userspace}
a426b97b 86%{__make} -C tool install \
c8a6b7f0 87 DESTDIR=$RPM_BUILD_ROOT
88%endif
89
90%if %{with kernel}
a426b97b 91%install_kernel_modules -m driver/devolo_usb -d misc
c8a6b7f0 92%endif
93
94%clean
95rm -rf $RPM_BUILD_ROOT
96
97%post -n kernel-char-dLAN
98%depmod %{_kernel_ver}
99
100%postun -n kernel-char-dLAN
101%depmod %{_kernel_ver}
102
103%if %{with userspace}
104%files
105%defattr(644,root,root,755)
a426b97b
ER
106%doc %lang(de) LIESMICH
107%doc %lang(es) LEAME
108%doc %lang(fr) LISEZ-MOI
109%doc %lang(it) LEGGIMI
110%doc %lang(nl) LEESMIJ
111%doc README
c8a6b7f0 112%attr(755,root,root) %{_sbindir}/dlanconfig
113%attr(755,root,root) %{_sbindir}/dlanconfig_son
114%{_mandir}/man8/dlanconfig.8*
115%endif
116
117%if %{with kernel}
118%files -n kernel-char-dLAN
119%defattr(644,root,root,755)
120/lib/modules/%{_kernel_ver}/misc/devolo_usb.*o*
fd545755 121%endif
This page took 0.089795 seconds and 4 git commands to generate.