]> git.pld-linux.org Git - packages/perl-Device-SerialPort.git/blame - perl-Device-SerialPort.spec
- removed zero-sized .bs file
[packages/perl-Device-SerialPort.git] / perl-Device-SerialPort.spec
CommitLineData
e9d4915a 1#
2# Conditional build:
944b1b5b
JB
3%bcond_with tests # perform "make test" (uses serial port)
4#
e9d4915a 5%include /usr/lib/rpm/macros.perl
9d8d65e3 6%define pdir Device
7%define pnam SerialPort
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
e1cc4cf2 12Release: 6
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
5f15a341 18BuildRequires: perl-devel >= 1:5.8.0
fa9295a8 19BuildRequires: rpm-perlprov >= 4.1-13
e9d4915a 20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
32cd4b82 23Device::SerialPort module provides an object-based user interface
24essentially identical to the one provided by the Win32::SerialPort
25module.
e9d4915a 26
f95f3b93
JR
27%description -l pl.UTF-8
28Moduł Device::SerialPort udostępnia zorientowany obiektowo interfejs,
29zasadniczo identyczny z interfejsem udostępnianym przez moduł
32cd4b82 30Win32::SerialPort.
e9d4915a 31
32%prep
33%setup -q -n %{pdir}-%{pnam}-%{version}
34
944b1b5b
JB
35# hack device test
36%{__perl} -pi -e 's/^ print "\\tchecking.*$/\$file="\$test"; last;/' Makefile.PL
37
e9d4915a 38%build
fa163bf5 39%{__perl} Makefile.PL \
944b1b5b
JB
40 INSTALLDIRS=vendor \
41 TESTPORT="/dev/ttyS1"
e9d4915a 42%{__make}
43
fa163bf5 44%{?with_tests:%{__make} test}
e9d4915a 45
46%install
47rm -rf $RPM_BUILD_ROOT
48
a4acba8c 49%{__make} install \
50 DESTDIR=$RPM_BUILD_ROOT
e9d4915a 51
52install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53cp -a eg/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%files
59%defattr(644,root,root,755)
60%doc Change* README TODO
954e2d66 61%attr(755,root,root) %{_bindir}/modemtest
944b1b5b
JB
62%{perl_vendorarch}/Device/*.pm
63%dir %{perl_vendorarch}/auto/Device/SerialPort
944b1b5b 64%attr(755,root,root) %{perl_vendorarch}/auto/Device/SerialPort/SerialPort.so
32cd4b82 65%attr(755,root,root) %{_examplesdir}/%{name}-%{version}
944b1b5b 66%{_mandir}/man[13]/*
This page took 0.07482 seconds and 4 git commands to generate.