]>
Commit | Line | Data |
---|---|---|
75a3b28f | 1 | # |
eade64c9 MWP |
2 | # SMP will proably *never* work. |
3 | # | |
75a3b28f | 4 | # Conditional build: |
5 | %bcond_without dist_kernel # allow non-distribution kernel | |
6 | %bcond_without kernel # don't build kernel modules | |
75a3b28f | 7 | %bcond_without userspace # don't build userspace programs |
8 | %bcond_with verbose # verbose build (V=1) | |
49070114 | 9 | # |
f17db440 | 10 | %if !%{with kernel} |
75a3b28f | 11 | %undefine with_dist_kernel |
12 | %endif | |
4ea82600 | 13 | %define sub_ver 07 |
9daa8fe2 | 14 | %define _rel 0.2 |
75a3b28f | 15 | Summary: CAPI 2.0 driver of the AVM FRITZ! controller (ISDN TA) |
7be14381 | 16 | Summary(pl.UTF-8): Sterownik CAPI 2.0 do kontrolera AVM FRITZ! (ISDN TA) |
9daa8fe2 | 17 | Name: fcpci |
75a3b28f | 18 | Version: 3.11 |
75a3b28f | 19 | Release: %{_rel} |
20 | Epoch: 0 | |
7d733ba8 | 21 | License: Proprietary (non-distributable) with LGPL v2.1+ part |
49070114 | 22 | Group: Base/Kernel |
9daa8fe2 | 23 | Source0: ftp://ftp.avm.de/cardware/fritzcrd.pci/linux/suse.93/%{name}-suse93-%{version}-%{sub_ver}.tar.gz |
7d733ba8 | 24 | # NoSource0-md5: 3ee301b5d0e8df9e4b915af58b725556 |
75a3b28f | 25 | # to be done: |
26 | #Source1: http://www.quiss.org/caiviar/Two-Fritzcards-HOWTO | |
27 | # Source1-md5: - | |
7d733ba8 | 28 | NoSource: 0 |
9daa8fe2 | 29 | Patch0: %{name}-Makefile.patch |
49070114 | 30 | URL: http://www.avm.de/de/Produkte/FRITZCard/ |
75a3b28f | 31 | %if %{with kernel} |
e555b9d5 | 32 | %{?with_dist_kernel:BuildRequires: kernel-module-build >= 3:2.6.7} |
75a3b28f | 33 | BuildRequires: rpmbuild(macros) >= 1.217 |
34 | %endif | |
7d733ba8 | 35 | ExclusiveArch: %{ix86} |
75a3b28f | 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
39 | This is the package "CAPI4Linux" for AVM FRITZ! controlers. In package | |
40 | you will find following components: | |
41 | - CAPI 2.0 driver of the controller | |
7d733ba8 JB |
42 | - CAPI 2.0 plug-in for the Generic PPP-Stack "pppd" (missing) |
43 | ||
44 | This package could attend two controlers simultaneously. | |
75a3b28f | 45 | |
a0d49dea JR |
46 | %description -l pl.UTF-8 |
47 | Ten pakiet zawiera CAPI4Linux dla kontrolerów AVM FRITRZ!. W pakiecie | |
48 | znajdują się: | |
75a3b28f | 49 | - Sterownik CAPI 2.0 |
7d733ba8 JB |
50 | - Wtyczka CAPI 2.0 dla pppd (brakująca) |
51 | ||
52 | Ten pakiet może obsługiwać dwa kontrolery jednocześnie. | |
75a3b28f | 53 | |
9daa8fe2 | 54 | %package -n kernel%{_alt_kernel}-isdn-fcpci |
75a3b28f | 55 | Summary: Linux driver for fcpci |
7be14381 | 56 | Summary(pl.UTF-8): Sterownik dla Linuksa do fcpci |
75a3b28f | 57 | Release: %{_rel}@%{_kernel_ver_str} |
58 | Group: Base/Kernel | |
75a3b28f | 59 | Requires(post,postun): /sbin/depmod |
60 | %if %{with dist_kernel} | |
9daa8fe2 MWP |
61 | %requires_releq_kernel |
62 | Requires(postun): %releq_kernel | |
75a3b28f | 63 | %endif |
64 | ||
9daa8fe2 | 65 | %description -n kernel%{_alt_kernel}-isdn-fcpci |
75a3b28f | 66 | This is driver for fcpci for Linux. |
67 | ||
7d733ba8 | 68 | This package contains Linux kernel module. |
75a3b28f | 69 | |
9daa8fe2 | 70 | %description -n kernel%{_alt_kernel}-isdn-fcpci -l pl.UTF-8 |
75a3b28f | 71 | Sterownik dla Linuksa do fcpci. |
72 | ||
a0d49dea | 73 | Ten pakiet zawiera moduł jądra Linuksa. |
75a3b28f | 74 | |
75a3b28f | 75 | %prep |
75a3b28f | 76 | %setup -q -n fritz |
9daa8fe2 | 77 | %patch0 -p1 |
75a3b28f | 78 | |
79 | %build | |
75a3b28f | 80 | %if %{with kernel} |
9daa8fe2 | 81 | %build_kernel_modules -m fcpci{1,2} |
75a3b28f | 82 | %endif |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
75a3b28f | 87 | %if %{with kernel} |
9daa8fe2 | 88 | %install_kernel_modules -m fcpci{1,2} -d isdn/hardware |
75a3b28f | 89 | %endif |
90 | ||
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
9daa8fe2 | 94 | %post -n kernel%{_alt_kernel}-isdn-fcpci |
75a3b28f | 95 | %depmod %{_kernel_ver} |
96 | ||
9daa8fe2 | 97 | %postun -n kernel%{_alt_kernel}-isdn-fcpci |
75a3b28f | 98 | %depmod %{_kernel_ver} |
99 | ||
75a3b28f | 100 | %if %{with kernel} |
9daa8fe2 | 101 | %files -n kernel%{_alt_kernel}-isdn-fcpci |
75a3b28f | 102 | %defattr(644,root,root,755) |
24d49b23 | 103 | %doc CAPI20_Errormessages.txt license.txt *.html |
9daa8fe2 | 104 | /lib/modules/%{_kernel_ver}/isdn/hardware/*.ko* |
75a3b28f | 105 | %endif |