]> git.pld-linux.org Git - packages/fcpci.git/blame - fcpci.spec
- spec renamed to fcpci.spec
[packages/fcpci.git] / fcpci.spec
CommitLineData
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 15Summary: CAPI 2.0 driver of the AVM FRITZ! controller (ISDN TA)
7be14381 16Summary(pl.UTF-8): Sterownik CAPI 2.0 do kontrolera AVM FRITZ! (ISDN TA)
9daa8fe2 17Name: fcpci
75a3b28f 18Version: 3.11
75a3b28f 19Release: %{_rel}
20Epoch: 0
7d733ba8 21License: Proprietary (non-distributable) with LGPL v2.1+ part
49070114 22Group: Base/Kernel
9daa8fe2 23Source0: 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 28NoSource: 0
9daa8fe2 29Patch0: %{name}-Makefile.patch
49070114 30URL: 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 33BuildRequires: rpmbuild(macros) >= 1.217
34%endif
7d733ba8 35ExclusiveArch: %{ix86}
75a3b28f 36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38%description
39This is the package "CAPI4Linux" for AVM FRITZ! controlers. In package
40you 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
44This package could attend two controlers simultaneously.
75a3b28f 45
a0d49dea
JR
46%description -l pl.UTF-8
47Ten pakiet zawiera CAPI4Linux dla kontrolerów AVM FRITRZ!. W pakiecie
48znajdują się:
75a3b28f 49- Sterownik CAPI 2.0
7d733ba8
JB
50- Wtyczka CAPI 2.0 dla pppd (brakująca)
51
52Ten pakiet może obsługiwać dwa kontrolery jednocześnie.
75a3b28f 53
9daa8fe2 54%package -n kernel%{_alt_kernel}-isdn-fcpci
75a3b28f 55Summary: Linux driver for fcpci
7be14381 56Summary(pl.UTF-8): Sterownik dla Linuksa do fcpci
75a3b28f 57Release: %{_rel}@%{_kernel_ver_str}
58Group: Base/Kernel
75a3b28f 59Requires(post,postun): /sbin/depmod
60%if %{with dist_kernel}
9daa8fe2
MWP
61%requires_releq_kernel
62Requires(postun): %releq_kernel
75a3b28f 63%endif
64
9daa8fe2 65%description -n kernel%{_alt_kernel}-isdn-fcpci
75a3b28f 66This is driver for fcpci for Linux.
67
7d733ba8 68This package contains Linux kernel module.
75a3b28f 69
9daa8fe2 70%description -n kernel%{_alt_kernel}-isdn-fcpci -l pl.UTF-8
75a3b28f 71Sterownik dla Linuksa do fcpci.
72
a0d49dea 73Ten 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
85rm -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
92rm -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
This page took 0.077815 seconds and 4 git commands to generate.