[packages/perl-Math-PlanePath] - initial
arekm
arekm at pld-linux.org
Tue Jun 9 20:27:53 CEST 2015
commit 5e0e7beb0571b81090d1af647ce6d4c4a72d3c1f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Jun 9 20:27:39 2015 +0200
- initial
perl-Math-PlanePath.spec | 59 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
---
diff --git a/perl-Math-PlanePath.spec b/perl-Math-PlanePath.spec
new file mode 100644
index 0000000..acbd6eb
--- /dev/null
+++ b/perl-Math-PlanePath.spec
@@ -0,0 +1,59 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir Math
+%define pnam PlanePath
+%include /usr/lib/rpm/macros.perl
+Summary: Points on a path through the 2-D plane
+Name: perl-Math-PlanePath
+Version: 119
+Release: 1
+License: GPL
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 9f801c33fe099b943f46ceccbc5fab40
+URL: http://search.cpan.org/dist/Math-PlanePath/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl(Math::Libm)
+BuildRequires: perl(constant::defer) >= 5
+%endif
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Points on a path through the 2-D plane.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make} \
+ CC="%{__cc}" \
+ OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+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
+%{perl_vendorlib}/Math/NumSeq
+%{perl_vendorlib}/Math/PlanePath
+%{perl_vendorlib}/Math/PlanePath.pm
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Math-PlanePath.git/commitdiff/5e0e7beb0571b81090d1af647ce6d4c4a72d3c1f
More information about the pld-cvs-commit
mailing list