Notification time stamped 2019-11-19 10:04:21 UTC

From a361c95e084349b8162f6d2390b066a20d24300b Mon Sep 17 00:00:00 2001
From: Paul Howarth <p...@city-fan.org>
Date: Nov 13 2019 11:53:55 +0000
Subject: Tweak for EPEL-8 build


- Use author-independent source URL
- Classify buildreqs by usage
- Fix permissions verbosely
- Make %files list more explicit

---

diff --git a/perl-HTTP-Entity-Parser.rpmlintrc 
b/perl-HTTP-Entity-Parser.rpmlintrc
new file mode 100644
index 0000000..42d8877
--- /dev/null
+++ b/perl-HTTP-Entity-Parser.rpmlintrc
@@ -0,0 +1,2 @@
+from Config import *
+addFilter("spelling-error %description -l en_US 
(env|psgi|www|urlencoded|multipart|json) -> ")
diff --git a/perl-HTTP-Entity-Parser.spec b/perl-HTTP-Entity-Parser.spec
index 763361e..56e0fb1 100644
--- a/perl-HTTP-Entity-Parser.spec
+++ b/perl-HTTP-Entity-Parser.spec
@@ -1,44 +1,43 @@
 Name:           perl-HTTP-Entity-Parser
 Version:        0.21
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        PSGI compliant HTTP Entity Parser
 License:        GPL+ or Artistic
 URL:            https://metacpan.org/release/HTTP-Entity-Parser
-Source0:        
https://cpan.metacpan.org/authors/id/K/KA/KAZEBURO/HTTP-Entity-Parser-%{version}.tar.gz
-
+Source0:        
https://cpan.metacpan.org/modules/by-module/HTTP/HTTP-Entity-Parser-%{version}.tar.gz
 BuildArch:      noarch
-
-BuildRequires:  %{__perl}
-
-BuildRequires:  perl-interpreter >= 0:5.008001
+# Build
+BuildRequires:  coreutils
 BuildRequires:  perl-generators
-
+BuildRequires:  perl-interpreter
+BuildRequires:  perl(Module::Build::Tiny) >= 0.035
+# Module
 BuildRequires:  perl(Carp)
-BuildRequires:  perl(Cwd)
 BuildRequires:  perl(Encode)
-BuildRequires:  perl(Exporter)
 BuildRequires:  perl(Fcntl)
-BuildRequires:  perl(File::Basename)
-BuildRequires:  perl(File::Spec::Functions)
 BuildRequires:  perl(File::Temp)
-BuildRequires:  perl(Hash::MultiValue)
-BuildRequires:  perl(HTTP::Headers)
 BuildRequires:  perl(HTTP::Message) >= 6
 BuildRequires:  perl(HTTP::MultiPartParser)
-BuildRequires:  perl(IO::File)
 BuildRequires:  perl(JSON::MaybeXS) >= 1.003007
-BuildRequires:  perl(Module::Build::Tiny) >= 0.035
 BuildRequires:  perl(Module::Load)
 BuildRequires:  perl(Stream::Buffered)
-BuildRequires:  perl(Test::More) >= 0.98
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
 BuildRequires:  perl(WWW::Form::UrlEncoded) >= 0.23
-
+# Test Suite
 BuildRequires:  perl(base)
-BuildRequires:  perl(strict)
+BuildRequires:  perl(Cwd)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(File::Basename)
+BuildRequires:  perl(File::Spec::Functions)
+BuildRequires:  perl(Hash::MultiValue)
+BuildRequires:  perl(HTTP::Headers)
+BuildRequires:  perl(IO::File)
+BuildRequires:  perl(Test::More) >= 0.98
 BuildRequires:  perl(utf8)
-BuildRequires:  perl(warnings)
-
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+# Dependencies
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires:       perl(HTTP::Message) >= 6
 
 %description
 HTTP::Entity::Parser is a PSGI-compliant HTTP Entity parser. This module
@@ -51,24 +50,34 @@ data and application/json.
 %setup -q -n HTTP-Entity-Parser-%{version}
 
 %build
-%{__perl} Build.PL --installdirs=vendor
+perl Build.PL --installdirs=vendor
 ./Build
 
 %install
-./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+./Build install --destdir=%{buildroot} --create_packlist=0
+%{_fixperms} -c %{buildroot}
 
 %check
 ./Build test
 
 %files
-%doc Changes README.md eg/
 %license LICENSE
-%{perl_vendorlib}/*
-%{_mandir}/man3/*
+%doc Changes README.md eg/
+%{perl_vendorlib}/HTTP/
+%{_mandir}/man3/HTTP::Entity::Parser.3*
+%{_mandir}/man3/HTTP::Entity::Parser::JSON.3*
+%{_mandir}/man3/HTTP::Entity::Parser::MultiPart.3*
+%{_mandir}/man3/HTTP::Entity::Parser::OctetStream.3*
+%{_mandir}/man3/HTTP::Entity::Parser::UrlEncoded.3*
 
 %changelog
+* Wed Nov 13 2019 Paul Howarth <p...@city-fan.org> - 0.21-2
+- Tweak for EPEL-8 build
+  - Use author-independent source URL
+  - Classify buildreqs by usage
+  - Fix permissions verbosely
+  - Make %%files list more explicit
+
 * Sun Mar 04 2018 Ralf Corsépius <corse...@fedoraproject.org> - 0.21-1
 - Update to 0.21.
 


        
https://src.fedoraproject.org/rpms/perl-HTTP-Entity-Parser/c/a361c95e084349b8162f6d2390b066a20d24300b?branch=epel8
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/perl-devel@lists.fedoraproject.org

Reply via email to