3 %bcond_without tests # do perform "make test"
6 %define pnam ParallelPort-drv-parport
7 Summary: Device::ParallelPort - driver that uses direct I/O access
8 Summary(pl.UTF-8): Device::ParallelPort - sterownik używający bezpośredniego wejścia/wyjścia
9 Name: perl-Device-ParallelPort-drv-parport
13 # README says it is Artistic only, LICENSE says it is LGPL or Artistic
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 901987e4a37bfe2d7241530bda05f36e
18 URL: http://search.cpan.org/dist/Device-ParallelPort-drv-parport/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-Device-ParallelPort
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This is a Device::ParallelPort driver that uses direct I/O access on
28 Linux. It uses the Linux parport driver and is definitely the prefered
29 access method on Linux. It also means that you do not require root
32 %description -l pl.UTF-8
33 To jest sterownik Device::ParallelPort używający bezpośredniego
34 dostępu do wejścia/wyjścia pod Linuksem. Korzysta z linuksowego
35 sterownika portu równoległego i jest preferowaną metodą dostępu na
36 Linuksie. Oznacza to także, że nie trzeba mieć praw roota.
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 OPTMIZE="%{rpmcflags}"
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
62 %dir %{perl_vendorarch}/Device/ParallelPort
63 %dir %{perl_vendorarch}/Device/ParallelPort/drv
64 %{perl_vendorarch}/Device/ParallelPort/drv/parport.pm
65 %dir %{perl_vendorarch}/auto/Device/ParallelPort
66 %dir %{perl_vendorarch}/auto/Device/ParallelPort/drv
67 %dir %{perl_vendorarch}/auto/Device/ParallelPort/drv/parport
68 %attr(755,root,root) %{perl_vendorarch}/auto/Device/ParallelPort/drv/parport/parport.so