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