ppisar pushed to perl-HTTP-Recorder (master). "Specify all dependencies"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Jun 16 06:44:29 UTC 2015


From 188c317b944433702ac451e4ed57b888573ca393 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
Date: Tue, 16 Jun 2015 08:42:32 +0200
Subject: Specify all dependencies


diff --git a/HTTP-Recorder-0.07-Do-not-use-usr-bin-env.patch b/HTTP-Recorder-0.07-Do-not-use-usr-bin-env.patch
new file mode 100644
index 0000000..417d8d5
--- /dev/null
+++ b/HTTP-Recorder-0.07-Do-not-use-usr-bin-env.patch
@@ -0,0 +1,26 @@
+From 4183f20f7cee943b25cd2e51e71b127386a21431 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
+Date: Tue, 16 Jun 2015 08:37:58 +0200
+Subject: [PATCH] Do not use /usr/bin/env
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Petr Písař <ppisar at redhat.com>
+---
+ bin/httprecorder | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/bin/httprecorder b/bin/httprecorder
+index e8d2560..37d5fdb 100644
+--- a/bin/httprecorder
++++ b/bin/httprecorder
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env perl
++#!perl
+ 
+ use strict;
+ use warnings;
+-- 
+2.1.0
+
diff --git a/perl-HTTP-Recorder.spec b/perl-HTTP-Recorder.spec
index 510c455..3ba07f3 100644
--- a/perl-HTTP-Recorder.spec
+++ b/perl-HTTP-Recorder.spec
@@ -6,17 +6,35 @@ Summary:        Record interaction with web sites
 Group:          Development/Libraries
 License:        GPL+
 URL:            http://search.cpan.org/dist/HTTP-Recorder/
-Source0:	http://search.cpan.org/CPAN/authors/id/S/SE/SEMUELF/HTTP-Recorder-%{version}.tar.gz
+Source0:        http://search.cpan.org/CPAN/authors/id/S/SE/SEMUELF/HTTP-Recorder-%{version}.tar.gz
+# Use real interpreter instead of indirect call via /usr/bin/env
+Patch0:         HTTP-Recorder-0.07-Do-not-use-usr-bin-env.patch
 
 BuildArch:      noarch
+BuildRequires:  findutils
+BuildRequires:  make
+BuildRequires:  perl
 BuildRequires:  perl(ExtUtils::MakeMaker)
+# Run-time:
+# Getopt::Long not used at tests
+BuildRequires:  perl(HTML::Entities)
 BuildRequires:  perl(HTML::TokeParser)
+# HTTP::Proxy not used at tests
 BuildRequires:  perl(HTTP::Request::Params)
+BuildRequires:  perl(LWP::MemberMixin)
 BuildRequires:  perl(LWP::UserAgent)
+# Pod::Usage not used at tests
+BuildRequires:  perl(strict)
 BuildRequires:  perl(URI::Escape)
-BuildRequires:  perl(Test::Pod)
-BuildRequires:	perl(HTTP::Proxy)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRequires:  perl(URI::QueryParam)
+BuildRequires:  perl(warnings)
+# Tests:
+BuildRequires:  perl(File::Find)
+BuildRequires:  perl(File::Spec)
+# Optional tests:
+BuildRequires:  perl(Test::Pod) >= 0.95
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+
 
 %description
 Browser-independent recorder for recording interactions with web sites.
@@ -24,17 +42,17 @@ Browser-independent recorder for recording interactions with web sites.
 
 %prep
 %setup -q -n HTTP-Recorder-%{version}
+%patch0 -p1
 
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 
 %install
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+make pure_install DESTDIR=$RPM_BUILD_ROOT
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
 chmod -R u+w $RPM_BUILD_ROOT/*
 
 
@@ -43,7 +61,6 @@ make test
 
 
 %files
-%defattr(-,root,root,-)
 %doc CHANGES README
 %{_bindir}/httprecorder
 %{perl_vendorlib}/HTTP/
@@ -54,6 +71,7 @@ make test
 %changelog
 * Tue Jun 16 2015 Petr Pisar <ppisar at redhat.com> - 0.07-2
 - Perl 5.22 rebuild
+- Specify all dependencies
 
 * Fri Mar 20 2015 Tom Callaway <spot at fedoraproject.org> - 0.07-1
 - update to 0.07
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/perl-HTTP-Recorder.git/commit/?h=master&id=188c317b944433702ac451e4ed57b888573ca393


More information about the perl-devel mailing list