Author: glen Date: Mon Feb 14 14:54:19 2011 GMT Module: packages Tag: HEAD ---- Log message: - created with pldcpan
---- Files affected: packages/perl-Device-USB-PCSensor-HidTEMPer: perl-Device-USB-PCSensor-HidTEMPer.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/perl-Device-USB-PCSensor-HidTEMPer/perl-Device-USB-PCSensor-HidTEMPer.spec diff -u /dev/null packages/perl-Device-USB-PCSensor-HidTEMPer/perl-Device-USB-PCSensor-HidTEMPer.spec:1.1 --- /dev/null Mon Feb 14 15:54:19 2011 +++ packages/perl-Device-USB-PCSensor-HidTEMPer/perl-Device-USB-PCSensor-HidTEMPer.spec Mon Feb 14 15:54:13 2011 @@ -0,0 +1,67 @@ +# $Revision$, $Date$ +# +# Conditional build: +%bcond_without tests # do not perform "make test" + +%define pdir Device +%define pnam USB-PCSensor-HidTEMPer +%include /usr/lib/rpm/macros.perl +Summary: Device::USB::PCSensor::HidTEMPer - Device overview +Name: perl-Device-USB-PCSensor-HidTEMPer +Version: 0.03 +Release: 1 +# same as perl +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-authors/id/M/MS/MSULLAND/Device-USB-PCSensor-HidTEMPer-%{version}.tar.gz +# Source0-md5: fbb21e800581be5aab4b8893bcde3393 +URL: http://search.cpan.org/dist/Device-USB-PCSensor-HidTEMPer/ +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +BuildRequires: perl-Device-USB >= 0.31 +BuildRequires: perl(Device::USB::Device) >= 0.29 +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This module is a simplified interface to the HidTEMPer thermometers +created by PCSensor. It hides any problems recognizing the correct +objects to initialize and the dependency on Device::USB. + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} + +%{?with_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT +%{__make} pure_install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README +%dir %{perl_vendorlib}/Device/USB +%dir %{perl_vendorlib}/Device/USB/PCSensor +%{perl_vendorlib}/Device/USB/PCSensor/*.pm +%{perl_vendorlib}/Device/USB/PCSensor/HidTEMPer +%{_mandir}/man3/* + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[email protected]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2011/02/14 14:54:13 glen +- created with pldcpan ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
