1 |
Summary: Tools for the hotpluggable PCMCIA subsystem |
2 |
Name: pcmciautils |
3 |
Version: 015 |
4 |
Release: %mkrel 6 |
5 |
Source0: %{name}-%{version}.tar.bz2 |
6 |
Patch0: pcmciautils-015-parallel.patch |
7 |
Patch1: pcmciautils-015-libudevdir.patch |
8 |
License: GPL |
9 |
Group: System/Kernel and hardware |
10 |
Url: http://www.kernel.org/pub/linux/utils/kernel/pcmcia/ |
11 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
12 |
BuildRequires: byacc |
13 |
BuildRequires: libsysfs-devel |
14 |
BuildRequires: flex |
15 |
Provides: pcmcia-cs |
16 |
Obsoletes: pcmcia-cs |
17 |
Conflicts: drakxtools-backend < 10.4.33-1mdv2007.0 |
18 |
|
19 |
%description |
20 |
PCMCIAutils contains hotplug scripts and initialization tools |
21 |
necessary to allow the PCMCIA subsystem to behave (almost) as every |
22 |
other hotpluggable bus system (e.g. USB, IEEE1394). |
23 |
|
24 |
Please note that the kernel support for this new feature is only |
25 |
present since 2.6.13-rc1. |
26 |
|
27 |
%prep |
28 |
%setup -q |
29 |
%patch0 -p1 -b .parallel |
30 |
%patch1 -p1 -b .libudevdir |
31 |
|
32 |
%build |
33 |
%make |
34 |
|
35 |
%install |
36 |
rm -rf %{buildroot} |
37 |
%makeinstall_std |
38 |
|
39 |
%clean |
40 |
rm -rf %{buildroot} |
41 |
|
42 |
# write /etc/modprobe.preload.d/pcmcia file on migration from old pcmcia-cs |
43 |
%triggerpostun -p /usr/bin/perl -- pcmcia-cs, %{name} < 014-3mdv2007.0 |
44 |
use lib qw(/usr/lib/libDrakX); |
45 |
use harddrake::autoconf; |
46 |
use detect_devices; |
47 |
my $controller = detect_devices::pcmcia_controller_probe(); |
48 |
harddrake::autoconf::pcmcia($controller && $controller->{driver}); |
49 |
|
50 |
%files |
51 |
%defattr(-,root,root) |
52 |
%config(noreplace) %{_sysconfdir}/pcmcia/config.opts |
53 |
%{_sysconfdir}/udev/rules.d/60-pcmcia.rules |
54 |
/sbin/lspcmcia |
55 |
/sbin/pccardctl |
56 |
/lib/udev/pcmcia-check-broken-cis |
57 |
/lib/udev/pcmcia-socket-startup |
58 |
%{_mandir}/man*/* |
59 |
|
60 |
|