]> git.pld-linux.org Git - packages/perl-Sub-Quote.git/commitdiff
- new, separated from perl-Moo auto/th/perl-Sub-Quote-2.005001-1
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 2 Oct 2018 16:39:46 +0000 (18:39 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 2 Oct 2018 16:39:46 +0000 (18:39 +0200)
perl-Sub-Quote.spec [new file with mode: 0644]

diff --git a/perl-Sub-Quote.spec b/perl-Sub-Quote.spec
new file mode 100644 (file)
index 0000000..c83f3af
--- /dev/null
@@ -0,0 +1,62 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%define                pdir    Sub
+%define                pnam    Quote
+%include       /usr/lib/rpm/macros.perl
+Summary:       Sub::Quote - Efficient generation of subroutines via string eval
+Summary(pl.UTF-8):     Sub::Quote - wydajne generowanie podprocedur poprzez ewaluację łańcuchów znaków
+Name:          perl-Sub-Quote
+Version:       2.005001
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/Sub/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 1b0f288ca8c60243f9bc29cfee4c4986
+URL:           https://metacpan.org/release/Sub-Quote/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-Test-Fatal >= 0.003
+BuildRequires: perl-Test-Simple >= 0.94
+%endif
+Conflicts:     perl-Moo < 2.003000
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package provides performant ways to generate subroutines from
+strings.
+
+%description -l pl.UTF-8
+Ten pakiet udostępnia wydajne sposoby generowania podprocedur z
+łańcuchów znaków.
+
+%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 README
+%{perl_vendorlib}/Sub/Defer.pm
+%{perl_vendorlib}/Sub/Quote.pm
+%{_mandir}/man3/Sub::Defer.3pm*
+%{_mandir}/man3/Sub::Quote.3pm*
This page took 0.078602 seconds and 4 git commands to generate.