SPECS: perl-Device-SCSI.spec (NEW) - initial, builds here

agaran agaran at pld-linux.org
Tue Aug 21 22:36:54 CEST 2007


Author: agaran                       Date: Tue Aug 21 20:36:54 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial, builds here

---- Files affected:
SPECS:
   perl-Device-SCSI.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-Device-SCSI.spec
diff -u /dev/null SPECS/perl-Device-SCSI.spec:1.1
--- /dev/null	Tue Aug 21 22:36:54 2007
+++ SPECS/perl-Device-SCSI.spec	Tue Aug 21 22:36:49 2007
@@ -0,0 +1,76 @@
+# $Revision$, $Date$
+#
+# 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):
+Name:		perl-Device-SCSI
+Version:	1.003
+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:	6d965728811b379b11f144a2caf85d8b
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+%endif
+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 # TODO
+
+%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/*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/08/21 20:36:49  agaran
+- initial, builds here
+
================================================================


More information about the pld-cvs-commit mailing list