3 %bcond_without tests # do perform "make test"
6 %define pnam ParallelPort
7 %include /usr/lib/rpm/macros.perl
8 Summary: Device::ParallelPort - parallel port driver for Perl
9 Summary(pl.UTF-8): Device::ParallelPort - sterownik portu równoległego dla Perla
10 Name: perl-Device-ParallelPort
14 # LICENSE says it is LGPL or Artistic
15 License: GPL v1+ or Artistic
16 Group: Development/Languages/Perl
17 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5: 6d2345b31f9c3871230ba384c62c2d00
19 URL: http://search.cpan.org/dist/Device-ParallelPort/
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 A parallel port driver module. This module provides an API to all
27 parallel ports, by providing the ability to write any number of
28 drivers. Modules are available for Linux (both directly and via
29 parport), Win32 and a simple script version.
31 %description -l pl.UTF-8
32 Moduł sterownika portu równoległego. Ten moduł dostarcza API do
33 wszystkich portów równoległych, dając możliwość pisania dowolnej
34 liczby sterowników. Dostępne są moduły dla Linuksa (zarówno działający
35 bezpośrednio jak i przez parport), Win32 oraz prosta wersja skryptowa.
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %{perl_vendorlib}/Device/ParallelPort.pm
61 %dir %{perl_vendorlib}/Device/ParallelPort
62 %dir %{perl_vendorlib}/Device/ParallelPort/drv
63 %{perl_vendorlib}/Device/ParallelPort/*.pm
64 %{perl_vendorlib}/Device/ParallelPort/drv/*.pm