jplesnik pushed to perl-ParseLex (master). "2.21 bump; Modernize spec"
notifications at fedoraproject.org
notifications at fedoraproject.org
Mon Jul 27 06:23:20 UTC 2015
From efe62572b7d610c0f2fbaf3d0fad724c8b3c887d Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <jplesnik at redhat.com>
Date: Mon, 27 Jul 2015 08:23:02 +0200
Subject: 2.21 bump; Modernize spec
diff --git a/.gitignore b/.gitignore
index b2f4ad7..0e8eba7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
ParseLex-2.19.tar.gz
+/ParseLex-2.21.tar.gz
diff --git a/perl-ParseLex.spec b/perl-ParseLex.spec
index dc9f9b6..ddf918f 100644
--- a/perl-ParseLex.spec
+++ b/perl-ParseLex.spec
@@ -1,17 +1,28 @@
-Name: perl-ParseLex
-Summary: Generator of lexical analyzers
-Version: 2.19
-Release: 14%{?dist}
-License: GPL+ or Artistic
-Group: Development/Libraries
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root%(%{__id_u} -n)
-BuildArch: noarch
-URL: http://search.cpan.org/dist/ParseLex
-Source: http://www.cpan.org/authors/id/P/PS/PSCUST/ParseLex-%{version}.tar.gz
-BuildRequires: perl(ExtUtils::MakeMaker)
+Name: perl-ParseLex
+Summary: Generator of lexical analyzers
+Version: 2.21
+Release: 1%{?dist}
+License: GPL+ or Artistic
+Group: Development/Libraries
+BuildArch: noarch
+URL: http://search.cpan.org/dist/ParseLex
+Source: http://www.cpan.org/authors/id/P/PS/PSCUST/ParseLex-%{version}.tar.gz
+BuildRequires: coreutils
+BuildRequires: findutils
+BuildRequires: make
+BuildRequires: perl
+BuildRequires: sed
+BuildRequires: perl(Carp)
+BuildRequires: perl(constant)
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(integer)
BuildRequires: perl(Parse::Template) >= 3.01
+BuildRequires: perl(strict)
+BuildRequires: perl(Symbol)
BuildRequires: perl(Test::More)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRequires: perl(vars)
+BuildRequires: perl(warnings)
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
The classes "Parse::Lex" and "Parse::CLex" create lexical analyzers.
@@ -21,33 +32,32 @@ The classes "Parse::Lex" and "Parse::CLex" create lexical analyzers.
# remove all execute bits from the doc stuff and fix interpreter
# so that dependency generator doesn't try to fulfill deps
-find examples -type f -exec %{__chmod} -x {} 2>/dev/null ';'
-find examples -type f -exec %{__sed} -i 's#/usr/local/bin/perl#/usr/bin/perl#' {} 2>/dev/null ';'
+find examples -type f -exec chmod -x {} 2>/dev/null ';'
+find examples -type f -exec sed -i 's#/usr/local/bin/perl#/usr/bin/perl#' {} 2>/dev/null ';'
%build
-%{__perl} Makefile.PL INSTALLDIRS="vendor"
-%{__make} %{?_smp_mflags}
+perl Makefile.PL INSTALLDIRS="vendor"
+make %{?_smp_mflags}
%check
-%{__make} test
+make test
%install
-%{__rm} -rf $RPM_BUILD_ROOT
-%{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT create_packlist=0
+make pure_install DESTDIR=$RPM_BUILD_ROOT create_packlist=0
### Clean up buildroot
-find $RPM_BUILD_ROOT -name .packlist -exec %{__rm} {} \;
-
-%clean
-%{__rm} -rf $RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -name .packlist -exec rm {} \;
%files
-%defattr(-, root, root, -)
%doc Changes README examples
%{perl_vendorlib}/Parse/
%{_mandir}/man3/*.3pm*
%changelog
+* Fri Jul 24 2015 Jitka Plesnikova <jplesnik at redhat.com> - 2.21-1
+- 2.21 bump
+- Modernize spec
+
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.19-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
diff --git a/sources b/sources
index dda9751..812419a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-b90378ddd3bd112f3afb5d4bbced2af6 ParseLex-2.19.tar.gz
+419757869b7d04748ffde4550d84b2e8 ParseLex-2.21.tar.gz
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/perl-ParseLex.git/commit/?h=master&id=efe62572b7d610c0f2fbaf3d0fad724c8b3c887d
More information about the perl-devel
mailing list