]> git.pld-linux.org Git - packages/perl-Algorithm-Combinatorics.git/commitdiff
- initial, version 0.27
authorAdam Osuchowski <adwol@pld-linux.org>
Sun, 11 Dec 2016 15:50:00 +0000 (16:50 +0100)
committerAdam Osuchowski <adwol@pld-linux.org>
Sun, 11 Dec 2016 15:50:00 +0000 (16:50 +0100)
perl-Algorithm-Combinatorics.spec [new file with mode: 0644]

diff --git a/perl-Algorithm-Combinatorics.spec b/perl-Algorithm-Combinatorics.spec
new file mode 100644 (file)
index 0000000..ad3544f
--- /dev/null
@@ -0,0 +1,61 @@
+#
+# Conditional build:
+%bcond_without tests   # don't perform "make test"
+#
+%include       /usr/lib/rpm/macros.perl
+%define                pdir    Algorithm
+%define                pnam    Combinatorics
+Summary:       Efficient generation of combinatorial sequences 
+Name:          perl-Algorithm-Combinatorics
+Version:       0.27
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/Algorithm/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: bada976399f9edfe364d6fcf9e0bcde2
+URL:           http://search.cpan.org/dist/Algorithm-Combinatorics/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: perl(Scalar::Util)
+%if %{with tests}
+BuildRequires: perl(Test::More)
+%endif
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: sed >= 4.0
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Algorithm::Combinatorics is an efficient generator of combinatorial
+sequences. Algorithms are selected from the literature (work in
+progress, see "REFERENCES"). Iterators do not use recursion, nor
+stacks, and are written in C.
+
+%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} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorarch}/Algorithm/Combinatorics.pm
+%dir %{perl_vendorarch}/auto/Algorithm/Combinatorics
+%attr(755,root,root) %{perl_vendorarch}/auto/Algorithm/Combinatorics/Combinatorics.so
+%{_mandir}/man3/*.3pm.gz
This page took 0.128988 seconds and 4 git commands to generate.