From 064ca85a1f4c0d0aeefdb50d7ecdab11d999070c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com> Date: Thu, 19 Jan 2017 16:36:37 +0100 Subject: Modernize spec file
--- .rpmlint | 2 ++ perl-XML-Hash-LX.spec | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 .rpmlint diff --git a/.rpmlint b/.rpmlint new file mode 100644 index 0000000..fa82e90 --- /dev/null +++ b/.rpmlint @@ -0,0 +1,2 @@ +from Config import * +addFilter("spelling-error .* LibXML"); diff --git a/perl-XML-Hash-LX.spec b/perl-XML-Hash-LX.spec index 2ec84d8..aa79e01 100644 --- a/perl-XML-Hash-LX.spec +++ b/perl-XML-Hash-LX.spec @@ -11,10 +11,15 @@ Source0: http://www.cpan.org/authors/id/M/MO/MONS/XML-Hash-LX-%{cpan_vers # Accomodate test to random hash order, bug #1106282, CPAN RT#81645 Patch0: XML-Hash-LX-0.0603-Fix-unpredictable-order-at-empty-attr-test.patch BuildArch: noarch +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make BuildRequires: perl BuildRequires: perl-generators +BuildRequires: perl(Config) BuildRequires: perl(inc::Module::Install) >= 0.79 BuildRequires: perl(Module::Install::AutoInstall) +BuildRequires: sed # Run-time: BuildRequires: perl(Carp) BuildRequires: perl(strict) @@ -42,6 +47,10 @@ easy data transformations. # Remove bundled modules rm -rf ./inc/* sed -i -e '/^inc\//d' MANIFEST +# Fix shell bangs +for F in ex/*; do + sed -i -e '1 s,^#!/usr/bin/env perl,%(perl -MConfig -e 'print $Config{startperl}'),' "$F" +done %build perl Makefile.PL INSTALLDIRS=vendor @@ -49,14 +58,15 @@ make %{?_smp_mflags} %install make pure_install DESTDIR=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -type f -name .packlist -delete %{_fixperms} $RPM_BUILD_ROOT/* %check make test %files -%doc Changes ex LICENSE README +%license LICENSE +%doc Changes ex README %{perl_vendorlib}/* %{_mandir}/man3/* -- cgit v1.1 https://src.fedoraproject.org/cgit/perl-XML-Hash-LX.git/commit/?h=epel7&id=064ca85a1f4c0d0aeefdb50d7ecdab11d999070c _______________________________________________ perl-devel mailing list -- perl-devel@lists.fedoraproject.org To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org