From 1770d89620d669eaac86504da98f6a6fd6052016 Mon Sep 17 00:00:00 2001 From: Orion Poplawski orion@fedoraproject.org Date: Thu, 21 Sep 2006 16:16:53 +0000 Subject: auto-import perl-Device-SerialPort-1.002-2.fc5 on branch devel from perl-Device-SerialPort-1.002-2.fc5.src.rpm
--- .cvsignore | 1 + perl-Device-SerialPort.spec | 57 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 59 insertions(+) create mode 100644 perl-Device-SerialPort.spec
diff --git a/.cvsignore b/.cvsignore index e69de29..97044bb 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Device-SerialPort-1.002.tar.gz diff --git a/perl-Device-SerialPort.spec b/perl-Device-SerialPort.spec new file mode 100644 index 0000000..595fbf6 --- /dev/null +++ b/perl-Device-SerialPort.spec @@ -0,0 +1,57 @@ +Name: perl-Device-SerialPort +Version: 1.002 +Release: 2%{?dist} +Summary: Linux/POSIX emulation of Win32::SerialPort functions +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Device-SerialPort/ +Source0: http://www.cpan.org/authors/id/C/CO/COOK/Device-SerialPort-%%7Bversion%7D.ta... +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This module provides an object-based user interface essentially identical +to the one provided by the Win32::SerialPort module. + +%prep +%setup -q -n Device-SerialPort-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" \ + TESTPORT=/dev/null +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ; +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} ; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ; + +chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/* + +%check +# Can't do serial port tests in mock/build system +#make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes README TODO +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Device* +%{_bindir}/modemtest +%{_mandir}/man1/* +%{_mandir}/man3/* + +%changelog +* Wed Sep 20 2006 Orion Poplawski 1.002-2 +- Add TESTPORT=/dev/null for mock builds +- License back to GPL or Artistic + +* Mon Sep 18 2006 Orion Poplawski 1.002-1 +- Initial Fedora Extras version diff --git a/sources b/sources index e69de29..7075f06 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +aeef199bfdd2aece043649a0673146d5 Device-SerialPort-1.002.tar.gz
perl-devel@lists.fedoraproject.org