[perl-Syntax-Highlight-Engine-Kate] Modernize spec file
Petr Pisar
ppisar at fedoraproject.org
Mon Aug 20 14:05:04 UTC 2012
commit 8f47c61f330337dbb89c45e55c0e8314863ea5a4
Author: Petr Písař <ppisar at redhat.com>
Date: Mon Aug 20 15:58:45 2012 +0200
Modernize spec file
perl-Syntax-Highlight-Engine-Kate.spec | 24 +++++++-----------------
1 files changed, 7 insertions(+), 17 deletions(-)
---
diff --git a/perl-Syntax-Highlight-Engine-Kate.spec b/perl-Syntax-Highlight-Engine-Kate.spec
index 92b703e..e97f44e 100644
--- a/perl-Syntax-Highlight-Engine-Kate.spec
+++ b/perl-Syntax-Highlight-Engine-Kate.spec
@@ -1,13 +1,11 @@
Name: perl-Syntax-Highlight-Engine-Kate
Version: 0.06
-Release: 7%{?dist}
+Release: 8%{?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(Carp)
BuildRequires: perl(Data::Dumper)
@@ -23,40 +21,32 @@ 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 -x {} +
+chmod 644 Changes REGISTERED
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
-
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT OPTIMIZE="$RPM_OPT_FLAGS"
-
+make pure_install DESTDIR=$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
%check
make test
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files
-%defattr(-,root,root,-)
%doc Changes README REGISTERED
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
+* Mon Aug 20 2012 Petr Pisar <ppisar at redhat.com> - 0.06-8
+- Modernize spec file
+
* 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
More information about the scm-commits
mailing list