[perl-Syntax-Highlight-Engine-Kate/f18] 0.08 bump; Specify all dependencies; Modernize spec file

Jitka Plesnikova jplesnik at fedoraproject.org
Mon Sep 9 12:45:08 UTC 2013


commit 2d4d4ee557effaec9097c48885081cfde88ee33f
Author: Jitka Plesnikova <jplesnik at redhat.com>
Date:   Mon Sep 9 14:44:45 2013 +0200

    0.08 bump; Specify all dependencies; Modernize spec file

 .gitignore                             |    1 +
 perl-Syntax-Highlight-Engine-Kate.spec |   66 +++++++++++++++++++-------------
 sources                                |    2 +-
 3 files changed, 41 insertions(+), 28 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 95f351d..9de79ed 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 Syntax-Highlight-Engine-Kate-0.04-notdefined.patch
 Syntax-Highlight-Engine-Kate-0.04.tar.gz
 /Syntax-Highlight-Engine-Kate-0.06.tar.gz
+/Syntax-Highlight-Engine-Kate-0.08.tar.gz
diff --git a/perl-Syntax-Highlight-Engine-Kate.spec b/perl-Syntax-Highlight-Engine-Kate.spec
index 92b703e..83132ed 100644
--- a/perl-Syntax-Highlight-Engine-Kate.spec
+++ b/perl-Syntax-Highlight-Engine-Kate.spec
@@ -1,21 +1,42 @@
 Name:           perl-Syntax-Highlight-Engine-Kate
-Version:        0.06
-Release:        7%{?dist}
+Version:        0.08
+Release:        1%{?dist}
 Summary:        Port to Perl of the syntax highlight engine of the Kate text editor
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Syntax-Highlight-Engine-Kate/
 Source0:        http://www.cpan.org/authors/id/S/SZ/SZABGAB/Syntax-Highlight-Engine-Kate-%{version}.tar.gz
-# http://rt.cpan.org/Public/Bug/Display.html?id=45512
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
+BuildRequires:  perl
+BuildRequires:  perl(Config)
+BuildRequires:  perl(Cwd)
+BuildRequires:  perl(ExtUtils::MM_Unix)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Fcntl)
+BuildRequires:  perl(File::Find)
+BuildRequires:  perl(File::Path)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(vars)
+# Run-time:
+BuildRequires:  perl(base)
 BuildRequires:  perl(Carp)
 BuildRequires:  perl(Data::Dumper)
-BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.42
 BuildRequires:  perl(File::Basename)
+BuildRequires:  perl(XML::Dumper)
+BuildRequires:  perl(XML::TokeParser)
+BuildRequires:  perl(warnings)
 # Tests only:
-BuildRequires:  perl(Test::More)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRequires:  perl(constant)
+BuildRequires:  perl(diagnostics)
+BuildRequires:  perl(lib)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(File::Spec::Functions)
+BuildRequires:  perl(List::Util)
+BuildRequires:  perl(Term::ANSIColor)
+BuildRequires:  perl(Test::Differences) >= 0.61
+BuildRequires:  perl(Test::More) >= 0.88
+BuildRequires:  perl(Time::HiRes)
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
 
 %description
 Syntax::Highlight::Engine::Kate is a port to perl of the syntax highlight
@@ -23,40 +44,31 @@ engine of the Kate text editor.
 
 %prep
 %setup -q -n Syntax-Highlight-Engine-Kate-%{version}
-
-rm -rf lib/Syntax/Highlight/Engine/Kate/Alerts
-find -type f -exec chmod -x {} \;
+find -type f -exec chmod -c -x {} +
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT OPTIMIZE="$RPM_OPT_FLAGS"
-
-find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
-chmod 644 Changes
-chmod 644 REGISTERED
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} +
+%{_fixperms} %{buildroot}/*
 
 %check
 make test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
 %doc Changes README REGISTERED
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Mon Sep 09 2013 Jitka Plesnikova <jplesnik at redhat.com> - 0.08-1
+- 0.08 bump
+- Modernize spec file
+- Specify all dependencies
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.06-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 
@@ -96,7 +108,7 @@ rm -rf $RPM_BUILD_ROOT
 * Mon May  4 2009 Marcela Mašláňová <mmaslano at redhat.com> 0.04-3
 - noarch, remove doubled Alerts
 
-* Wed Apr 23 2009 Marcela Mašláňová <mmaslano at redhat.com> 0.04-2
+* Wed Apr 22 2009 Marcela Mašláňová <mmaslano at redhat.com> 0.04-2
 - generate again new spec
 
 * Wed Apr 22 2009 Marcela Mašláňová <mmaslano at redhat.com> 0.04-1
diff --git a/sources b/sources
index 783fac8..e75e113 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-c8a46e68f01ac13b508693c88b13c2aa  Syntax-Highlight-Engine-Kate-0.06.tar.gz
+717f969580fb5894c818fbbc627cc37e  Syntax-Highlight-Engine-Kate-0.08.tar.gz


More information about the scm-commits mailing list