[packages/perl-PPIx-QuoteLike] - new
adamg
adamg at pld-linux.org
Sun Nov 18 22:10:45 CET 2018
commit 4d22c287c11d22aa188b224db9f3a670bbed833a
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date: Sun Nov 18 22:10:18 2018 +0100
- new
perl-PPIx-QuoteLike.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
---
diff --git a/perl-PPIx-QuoteLike.spec b/perl-PPIx-QuoteLike.spec
new file mode 100644
index 0000000..a6af525
--- /dev/null
+++ b/perl-PPIx-QuoteLike.spec
@@ -0,0 +1,60 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir PPIx
+%define pnam QuoteLike
+%include /usr/lib/rpm/macros.perl
+Summary: PPIx::QuoteLike - Parse Perl string literals and string-literal-like things
+Name: perl-PPIx-QuoteLike
+Version: 0.006
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: https://cpan.metacpan.org/authors/id/W/WY/WYANT/PPIx-QuoteLike-%{version}.tar.gz
+# Source0-md5: 9ecce45ae1a38cf6fb2df4d3ae7be450
+URL: https://metacpan.org/release/PPIx-QuoteLike/
+BuildRequires: perl-Module-Build
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-PPI >= 1.117
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This Perl class parses Perl string literals and things that are
+reasonably like string literals. Its real reason for being is to find
+interpolated variables for Perl::Critic policies and similar code.
+
+%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} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/PPIx/*.pm
+%{perl_vendorlib}/PPIx/QuoteLike
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-PPIx-QuoteLike.git/commitdiff/4d22c287c11d22aa188b224db9f3a670bbed833a
More information about the pld-cvs-commit
mailing list