]> git.pld-linux.org Git - packages/dLAN.git/blame - dLAN.spec
- up to version 3
[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#
c8a6b7f0 14Summary: dLAN drivers
586a72f6
ER
15Summary(de.UTF-8): dLAN Treiber
16Summary(pl.UTF-8): Sterowniki dLAN
c8a6b7f0 17Name: dLAN
36282921
ER
18Version: 3
19Release: 0.1
7f517f73 20License: Devolo AG License, non-distributable
c8a6b7f0 21Group: Applications
36282921
ER
22Source0: http://download.devolo.net/webcms/0518732001164965747/%{name}-linux-package-v%{version}.tar.gz
23# NoSource0-md5: 5ac30a52511a22571805519641a28e66
7f517f73 24NoSource: 0
36282921 25URL: http://www.devolo.com/co_EN/produkte/dlan/dn-1-mldlanduo.html
8af44e29 26%if %{with kernel}
36282921
ER
27%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
28BuildRequires: rpmbuild(macros) >= 1.379
8af44e29
JB
29%endif
30%if %{with userspace}
c8a6b7f0 31BuildRequires: libpcap-devel
8af44e29 32%endif
c8a6b7f0 33BuildRequires: rpmbuild(macros) >= 1.268
c8a6b7f0 34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
37MicroLink dLAN drivers for Linux 2.4/2.6.
38
a0dd3679
JR
39%description -l de.UTF-8
40MicroLink dLAN Treiber für Linux 2.4/2.6.
c8a6b7f0 41
a0dd3679 42%description -l pl.UTF-8
8af44e29 43Sterowniki MicroLink dLAN dla Linuksa 2.4/2.6.
c8a6b7f0 44
45%package -n kernel-char-dLAN
46Summary: Linux kernel driver for MicroLink dLAN
586a72f6
ER
47Summary(de.UTF-8): Linux Kernel Treiber für MicroLink dLAN
48Summary(pl.UTF-8): Sterownik jądra Linuksa dla dLAN MicroLinka
c8a6b7f0 49Release: %{release}@%{_kernel_ver_str}
50Group: Base/Kernel
36282921
ER
51%if %{with dist_kernel}
52%requires_releq_kernel
53Requires(postun): %releq_kernel
54%endif
c8a6b7f0 55Requires(post,postun): /sbin/depmod
56
57%description -n kernel-char-dLAN
58Linux kernel drivers for MicroLink dLAN.
59
a0dd3679
JR
60%description -n kernel-char-dLAN -l de.UTF-8
61Linux Kernel Treiber für MicroLink dLAN.
c8a6b7f0 62
a0dd3679
JR
63%description -n kernel-char-dLAN -l pl.UTF-8
64Sterowniki jądra Linuksa dla dLAN MicroLinka.
c8a6b7f0 65
c8a6b7f0 66%prep
36282921 67%setup -q -n %{name}-linux-package-v%{version}
c8a6b7f0 68
69%build
36282921
ER
70%configure \
71 %{?without_kernel:--disable-usbdriver}
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}
86%{__make} install-cfgtool \
87 DESTDIR=$RPM_BUILD_ROOT
88%endif
89
90%if %{with kernel}
7f517f73 91install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/misc
92install driver/devolo_usb-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
8af44e29 93 $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/devolo_usb.ko
7f517f73 94%if %{with smp} && %{with dist_kernel}
95install driver/devolo_usb-smp.ko \
8af44e29 96 $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc/devolo_usb.ko
c8a6b7f0 97%endif
98%endif
99
100%clean
101rm -rf $RPM_BUILD_ROOT
102
103%post -n kernel-char-dLAN
104%depmod %{_kernel_ver}
105
106%postun -n kernel-char-dLAN
107%depmod %{_kernel_ver}
108
109%if %{with userspace}
110%files
111%defattr(644,root,root,755)
112%doc LEAME LEESMIJ LEGGIMI LIESMICH LISEZ-MOI README
113%attr(755,root,root) %{_sbindir}/dlanconfig
114%attr(755,root,root) %{_sbindir}/dlanconfig_son
115%{_mandir}/man8/dlanconfig.8*
116%endif
117
118%if %{with kernel}
fd545755 119%if %{with up} || %{without dist_kernel}
c8a6b7f0 120%files -n kernel-char-dLAN
121%defattr(644,root,root,755)
122/lib/modules/%{_kernel_ver}/misc/devolo_usb.*o*
fd545755 123%endif
c8a6b7f0 124
125%if %{with smp}
126%files -n kernel-smp-char-dLAN
127%defattr(644,root,root,755)
128/lib/modules/%{_kernel_ver}smp/misc/devolo_usb.*o*
129%endif
130%endif
This page took 0.165955 seconds and 4 git commands to generate.