SPECS: perl-Math-Vec.spec (NEW) - initial

tommat tommat at pld-linux.org
Tue Mar 6 10:27:29 CET 2007


Author: tommat                       Date: Tue Mar  6 09:27:29 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial

---- Files affected:
SPECS:
   perl-Math-Vec.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-Math-Vec.spec
diff -u /dev/null SPECS/perl-Math-Vec.spec:1.1
--- /dev/null	Tue Mar  6 10:27:29 2007
+++ SPECS/perl-Math-Vec.spec	Tue Mar  6 10:27:23 2007
@@ -0,0 +1,69 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define		pdir	Math
+%define		pnam	Vec
+Summary:	Math::Vec - Object-Oriented Vector Math Methods in Perl
+Name:		perl-Math-Vec
+Version:	0.04
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	96877cb54704426ce333b13a8380bfbf
+BuildRequires:	perl-Module-Build
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module was adapted from Math::Vector, written by Wayne M.
+Syvinski.
+
+It uses most of the same algorithms, and currently preserves the same
+names as the original functions, though some aliases have been added
+to make the interface more natural (at least to the way I think.)
+
+The "object" for the object oriented calling style is a blessed array
+reference which contains a vector of the form [x,y,z]. Methods will
+typically return a list.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor \
+	destdir=$RPM_BUILD_ROOT
+./Build
+
+%{?with_tests:./Build test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%{perl_vendorlib}/Math/Vec.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  2007/03/06 09:27:23  tommat
+- initial
+
================================================================


More information about the pld-cvs-commit mailing list