]> git.pld-linux.org Git - packages/perl-Math-PlanePath.git/commitdiff
- initial auto/th/perl-Math-PlanePath-119-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 9 Jun 2015 18:27:39 +0000 (20:27 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 9 Jun 2015 18:27:39 +0000 (20:27 +0200)
perl-Math-PlanePath.spec [new file with mode: 0644]

diff --git a/perl-Math-PlanePath.spec b/perl-Math-PlanePath.spec
new file mode 100644 (file)
index 0000000..acbd6eb
--- /dev/null
@@ -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}
This page took 0.099933 seconds and 4 git commands to generate.