SPECS: perl-Physics-Springs-Friction.spec (NEW) - initial

agaran agaran at pld-linux.org
Mon Mar 5 14:10:35 CET 2007


Author: agaran                       Date: Mon Mar  5 13:10:35 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial

---- Files affected:
SPECS:
   perl-Physics-Springs-Friction.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-Physics-Springs-Friction.spec
diff -u /dev/null SPECS/perl-Physics-Springs-Friction.spec:1.1
--- /dev/null	Mon Mar  5 14:10:35 2007
+++ SPECS/perl-Physics-Springs-Friction.spec	Mon Mar  5 14:10:30 2007
@@ -0,0 +1,87 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	Physics
+%define	pnam	Springs-Friction
+Summary:	Physics::Springs::Friction - Simulate Dynamics with Springs and Friction
+#Summary(pl):	
+Name:		perl-Physics-Springs-Friction
+Version:	1.01
+Release:	0.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:	9addede00f2318f7d8301495a207fcd3
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl(Physics::Particles) >= 1.00
+BuildRequires:	perl(Physics::Springs) >= 1.00
+BuildRequires:	perl(Sub::Assert)
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module is intended as an add-on to the Physics::Springs (from version
+1.00) and Physics::Particles (from version 1.00) modules and may be used
+to simulate particle dynamics including spring-like forces between any two
+particles you specify and friction-like forces that are applied to the
+movement of all particles.
+
+The module extends the API of Physics::Springs by one method which is
+documented below. Please see the documentation to Physics::Springs and
+Physics::Particles for more information about the API.
+
+There are several particle properties required by Physics::Springs::Friction
+in order to work: These are the x/y/z coordinates, the vx/vy/vz
+velocity vector components, and a non-zero mass 'm'.
+
+
+
+# %description -l pl
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Build.PL \
+	destdir=$RPM_BUILD_ROOT \
+	installdirs=vendor
+./Build
+
+%{?with_tests:./Build test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Physics/Springs/*.pm
+#%{perl_vendorlib}/Physics/Springs/Friction
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
+
+%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/05 13:10:30  agaran
+- initial
+
================================================================


More information about the pld-cvs-commit mailing list