]> git.pld-linux.org Git - packages/perl-PPIx-Regexp.git/commitdiff
- new
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 25 Feb 2011 18:14:52 +0000 (18:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-PPIx-Regexp.spec -> 1.1

perl-PPIx-Regexp.spec [new file with mode: 0644]

diff --git a/perl-PPIx-Regexp.spec b/perl-PPIx-Regexp.spec
new file mode 100644 (file)
index 0000000..9538173
--- /dev/null
@@ -0,0 +1,70 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%define                pdir    PPIx
+%define                pnam    Regexp
+%include       /usr/lib/rpm/macros.perl
+Summary:       PPIx::Regexp - represent a regular expression of some sort
+Summary(pl.UTF-8):     PPIx::Regexp - reprezentacja pewnego rodzaju wyrażenia regularnego
+Name:          perl-PPIx-Regexp
+Version:       0.018
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-authors/id/W/WY/WYANT/PPIx-Regexp-%{version}.tar.gz
+# Source0-md5: 87cdd26b813067ae6e6fe565b9b01f53
+URL:           http://search.cpan.org/dist/PPIx-Regexp/
+BuildRequires: perl-Module-Build
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-List-MoreUtils
+BuildRequires: perl-PPI >= 1.117
+BuildRequires: perl-Task-Weaken
+BuildRequires: perl-Test-Simple >= 0.40
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package parses regular expressions as they appear in Perl
+scripts, generating a structure similar to the structure generated by
+PPI when it parses a Perl script, and navigable in much the same way.
+
+%description -l pl.UTF-8
+Ten pakiet analizuje wyrażenia regularne w takiej postaci, w jakiej
+występują w skryptach perlowych, tworząc strukturę podobną do
+struktury generowanej przez PPI przy analizie skryptu perlowego i
+dającą się przeglądać w bardzo podobny sposób.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Build.PL \
+       destdir=$RPM_BUILD_ROOT \
+       installdirs=vendor
+./Build
+
+%{?with_tests:./Build test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install
+
+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/Regexp.pm
+%{perl_vendorlib}/PPIx/Regexp
+%{_mandir}/man3/PPIx::Regexp*.3pm*
+%{_examplesdir}/%{name}-%{version}
This page took 0.133832 seconds and 4 git commands to generate.