Package not found: openSUSE:Factory/python

File pcmciautils.spec of Package pcmciautils

#
# spec file for package pcmciautils
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           pcmciautils
BuildRequires:  bison
BuildRequires:  flex
%if 0%{?suse_version} > 1130
BuildRequires:  sysfsutils-devel
%else
BuildRequires:  sysfsutils
%endif
Url:            http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html
Version:        017
Release:        0
Summary:        Utilities for PC-Cards
License:        GPL-2.0+
Group:          Hardware/Other
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Obsoletes:      pcmcia < 017
Provides:       pcmcia >= 017
PreReq:         permissions
Supplements:    modalias(pci:v*d*sv*sd*bc06sc07i00*)
Source:         pcmciautils-%{version}.tar.bz2
Patch1:         pcmciautils_config.opts.202500.diff
Patch2:         pcmciautils_fix1.diff
Patch3:         pcmciautils_pie.diff
Patch4:         fix_udev_directory.patch
Source1:        suse-files.tar.bz2
Source2:        cis-files.tar.bz2

%description
This package enables the usage of PC-Cards with Linux. It provides
hotplug scripts, and tools that set up sockets and cards. Since kernel
2.6.13 card injection and removal are handled completely via hotplug.
Therefore, a daemon like 'cardmgr' is no longer needed. Soft ejecting
and inserting cards can be done with pccardctl (it was cardctl before).
There are also some tools for debugging and CIS handling.



Authors:
--------
    Dominik Brodowski <linux@brodo.de>
    David Hinds <dhinds@pcmcia.sourceforge.edu>

%prep
%setup -n pcmciautils-%{version} 
%patch1
%setup -n pcmciautils-%{version} -T -D -a 1
%setup -n pcmciautils-%{version} -T -D -a 2
%patch2 -p1
%patch3 -p1
%patch4

%build
make all DEF_CFLAGS="-fPIE $RPM_OPT_FLAGS" DEF_LDFLAGS="-pie" STRIPCMD=true
# make debugtools

%install
make install DESTDIR=%{buildroot}
install -m 644 suse-files/NOTE %{buildroot}/etc/pcmcia
mkdir -p %{buildroot}/lib/firmware
# Only install E-CARD.cis, all other files are part of
# kernel-firmware package, so no need to duplicate them.
install -m 644 cis-files/E-CARD.cis %{buildroot}/lib/firmware
mkdir -p %{buildroot}/%{_docdir}/pcmciautils
install -m 644 suse-files/README.SUSE %{buildroot}/%{_docdir}/pcmciautils

%post
%set_permissions /sbin/pccardctl
rm -vf /etc/sysconfig/pcmcia

%verifyscript
%verify_permissions -e /sbin/pccardctl

%files
%defattr(-,root,root)
%dir /etc/pcmcia
%config /etc/pcmcia/config.opts
/etc/pcmcia/NOTE
/usr/lib/udev/rules.d/60-pcmcia.rules
%verify(not mode) %attr(4750,root,trusted) /sbin/pccardctl
%dir /usr/lib/udev
%dir /usr/lib/udev/rules.d
/usr/lib/udev/pcmcia-check-broken-cis
/usr/lib/udev/pcmcia-socket-startup
/sbin/lspcmcia
/lib/firmware/*
/%{_docdir}/pcmciautils
/%{_mandir}/man8/*

%changelog
openSUSE Build Service is sponsored by