summaryrefslogtreecommitdiff
path: root/perl-Device-SCSI.spec
blob: e13024977ce987038705d7670503aac62928d07a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#
# Conditional build:
%bcond_without	tests		# do not perform "make test"
#
%include	/usr/lib/rpm/macros.perl
%define	pdir	Device
%define	pnam	SCSI
Summary:	Device::SCSI - Perl module to control SCSI devices
Summary(pl.UTF-8):	Device::SCSI - moduł Perla do sterowania urządzeniami SCSI
Name:		perl-Device-SCSI
Version:	1.004
Release:	0.1
# same as perl
License:	GPL v1+ or Artistic
Group:		Development/Languages/Perl
Source0:	http://www.cpan.org/modules/by-authors/id/M/MO/MOOLI/Device-SCSI-%{version}.tar.gz
# Source0-md5:	2c62ed5016d5f377d7870395e1932e5a
URL:		http://search.cpan.org/dist/Device-SCSI/
BuildRequires:	perl-devel >= 1:5.8.0
BuildRequires:	rpm-perlprov >= 4.1-13
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
This Perl library uses Perl5 objects to make it easy to perform
low-level SCSI I/O from Perl, avoiding all the black magic and
fighting with C. The object-oriented interface allows for the
application to use more than one SCSI device simultaneously (although
this is more likely to be used by the application to cache the devices
it needs in a hash.)

As well as the general purpose execute() method, there are also a
number of other helper methods that can aid in querying the device and
debugging. Note that the goats and black candles usually required to
solve SCSI problems will need to be provided by yourself.

%description -l pl.UTF-8
Ta biblioteka perlowa wykorzystuje obiekty Perla 5 w celu ułatwienia
wykonywania niskopoziomowy operacji wejścia/wyjścia SCSI z poziomu
Perla, unikając całej czarnej magii i walki z C. Zorientowany
obiektowo interfejs pozwala aplikacji używać więcej niż jednego
urządzenia SCSI jednocześnie (choć bardziej prawdopodobne jest
wykorzystanie tego przez aplikację do zapamiętania potrzebnych
urządzeń w haszu).

Oprócz ogólnej metody execute() jest także wiele innych pomocniczych
metod, mogących pomóc w odpytywaniu urządzenia i diagnostyce. Należy
zauważyć, że kozły i czarne świece zwykle wymagane do rozwiązywania
problemów ze SCSI trzeba sobie zapewnić samemu.

%prep
%setup -q -n %{pdir}-%{pnam}-%{version}

%build
%{__perl} Makefile.PL \
	INSTALLDIRS=vendor
%{__make}

%{?with_tests:%{__make} test}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc Changes README
%{perl_vendorlib}/Device/*.pm
%{perl_vendorlib}/Device/SCSI
%{_mandir}/man3/*