]> git.pld-linux.org Git - packages/perl-List-SomeUtils.git/commitdiff
- new auto/th/perl-List-SomeUtils-0.53-1
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 28 Nov 2016 21:15:54 +0000 (22:15 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 28 Nov 2016 21:15:54 +0000 (22:15 +0100)
perl-List-SomeUtils.spec [new file with mode: 0644]

diff --git a/perl-List-SomeUtils.spec b/perl-List-SomeUtils.spec
new file mode 100644 (file)
index 0000000..94dd03d
--- /dev/null
@@ -0,0 +1,62 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%define                pdir    List
+%define                pnam    SomeUtils
+%include       /usr/lib/rpm/macros.perl
+Summary:       List::SomeUtils - Provide the stuff missing in List::Util
+Summary(pl.UTF-8):     List::SomeUtils - funkcje brakujące w List::Util
+Name:          perl-List-SomeUtils
+Version:       0.53
+Release:       1
+# same as perl 5
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/List/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: bde33a340a9644368ac2d47d2cac8bb5
+URL:           http://search.cpan.org/dist/List-SomeUtils/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-Module-Implementation
+BuildRequires: perl-Test-LeakTrace
+BuildRequires: perl-Test-Simple >= 0.96
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+List::SomeUtils provides some trivial but commonly needed
+functionality on lists which is not going to go into List::Util.
+
+%description -l pl.UTF-8
+Moduł List::SomeUtils dostarcza kilka trywialnych, ale często
+potrzebnych funkcji operujących na listach, a nie dodawanych do
+List::Util.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%{perl_vendorlib}/List/SomeUtils.pm
+%{perl_vendorlib}/List/SomeUtils
+%{_mandir}/man3/List::SomeUtils*.3pm*
This page took 0.09055 seconds and 4 git commands to generate.