]> git.pld-linux.org Git - packages/perl-Device-SerialPort.git/blame - perl-Device-SerialPort.spec
- release 9 (by relup.sh)
[packages/perl-Device-SerialPort.git] / perl-Device-SerialPort.spec
CommitLineData
e9d4915a 1#
2# Conditional build:
944b1b5b 3%bcond_with tests # perform "make test" (uses serial port)
cad316af 4
9d8d65e3 5%define pdir Device
6%define pnam SerialPort
cad316af 7%include /usr/lib/rpm/macros.perl
32cd4b82 8Summary: Device::SerialPort - Linux/POSIX emulation of Win32::SerialPort functions
d7186d24 9Summary(pl.UTF-8): Device::SerialPort - zgodna z POSIX emulacja funcji Win32::SerialPort w Linuksie
e9d4915a 10Name: perl-Device-SerialPort
b0918601 11Version: 1.04
2380fc2a 12Release: 9
453fa268 13# same as perl
14License: GPL v1+ or Artistic
e9d4915a 15Group: Development/Languages/Perl
52420bd1 16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
b0918601 17# Source0-md5: 82c698151f934eb28c65d1838cee7d9e
cad316af 18URL: http://search.cpan.org/dist/Device-SerialPort/
5f15a341 19BuildRequires: perl-devel >= 1:5.8.0
fa9295a8 20BuildRequires: rpm-perlprov >= 4.1-13
e9d4915a 21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
32cd4b82 24Device::SerialPort module provides an object-based user interface
25essentially identical to the one provided by the Win32::SerialPort
26module.
e9d4915a 27
f95f3b93
JR
28%description -l pl.UTF-8
29Moduł Device::SerialPort udostępnia zorientowany obiektowo interfejs,
30zasadniczo identyczny z interfejsem udostępnianym przez moduł
32cd4b82 31Win32::SerialPort.
e9d4915a 32
33%prep
34%setup -q -n %{pdir}-%{pnam}-%{version}
35
944b1b5b
JB
36# hack device test
37%{__perl} -pi -e 's/^ print "\\tchecking.*$/\$file="\$test"; last;/' Makefile.PL
38
e9d4915a 39%build
fa163bf5 40%{__perl} Makefile.PL \
944b1b5b
JB
41 INSTALLDIRS=vendor \
42 TESTPORT="/dev/ttyS1"
e9d4915a 43%{__make}
44
fa163bf5 45%{?with_tests:%{__make} test}
e9d4915a 46
47%install
48rm -rf $RPM_BUILD_ROOT
49
a4acba8c 50%{__make} install \
51 DESTDIR=$RPM_BUILD_ROOT
e9d4915a 52
53install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
54cp -a eg/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
59%files
60%defattr(644,root,root,755)
61%doc Change* README TODO
954e2d66 62%attr(755,root,root) %{_bindir}/modemtest
944b1b5b
JB
63%{perl_vendorarch}/Device/*.pm
64%dir %{perl_vendorarch}/auto/Device/SerialPort
944b1b5b 65%attr(755,root,root) %{perl_vendorarch}/auto/Device/SerialPort/SerialPort.so
32cd4b82 66%attr(755,root,root) %{_examplesdir}/%{name}-%{version}
944b1b5b 67%{_mandir}/man[13]/*
This page took 0.096545 seconds and 4 git commands to generate.