packages: perl-Algorithm-Verhoeff/perl-Algorithm-Verhoeff.spec (NEW) - initial

amateja amateja at pld-linux.org
Fri Sep 11 13:37:11 CEST 2009


Author: amateja                      Date: Fri Sep 11 11:37:11 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial

---- Files affected:
packages/perl-Algorithm-Verhoeff:
   perl-Algorithm-Verhoeff.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/perl-Algorithm-Verhoeff/perl-Algorithm-Verhoeff.spec
diff -u /dev/null packages/perl-Algorithm-Verhoeff/perl-Algorithm-Verhoeff.spec:1.1
--- /dev/null	Fri Sep 11 13:37:11 2009
+++ packages/perl-Algorithm-Verhoeff/perl-Algorithm-Verhoeff.spec	Fri Sep 11 13:37:06 2009
@@ -0,0 +1,69 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	Algorithm
+%define	pnam	Verhoeff
+Summary:	Algorithm::Verhoeff - Perl extension for checking and computing Verhoeff check digits
+Summary(pl.UTF-8):	Algorithm::Verhoeff - rozszerzenie Perla do przeprowadzania i obliczania testów Verhoeffa
+Name:		perl-Algorithm-Verhoeff
+Version:	0.3
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://search.cpan.org/CPAN/authors/id/J/JP/JPETERSON/Algorithm-Verhoeff-0.3.tar.gz
+# Source0-md5:	556d356ba789b562d72ce792cd7bf94d
+URL:		http://search.cpan.org/dist/Algorithm-Verhoeff/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This implements the Verhoeff check digit algorithm. It's a single digit checksum
+designed specifically for catching data entry mistakes in number sequences. It
+catches the vast majority of common mistakes such as transposed digits, ommitted
+digits, double entered digits and so on.
+
+%description -l pl.UTF-8
+Moduł ten dostarcza testów Verhoeffa.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}
+
+%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
+%{perl_vendorlib}/Algorithm/*.pm
+%{_mandir}/man3/*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/09/11 11:37:06  amateja
+- initial
+
================================================================


More information about the pld-cvs-commit mailing list