Correct dependencies

Remove executable bits from the documentation. Documentation is not
allowed to bring new dependencies.
epel9
Petr Písař 5 years ago
parent 9d3d699fef
commit 27d95232a9

@ -0,0 +1,37 @@
From 51418f0513f39b471ab6d49221a6e89868aef5d1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Thu, 7 Nov 2019 14:07:32 +0100
Subject: [PATCH] Normalize shebangs in examples
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
examples/clusters2.pl | 2 +-
examples/primes_aux.pl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/clusters2.pl b/examples/clusters2.pl
index 4a8af15..ea5ed4a 100644
--- a/examples/clusters2.pl
+++ b/examples/clusters2.pl
@@ -1,4 +1,4 @@
-#!perl -w
+#!/usr/bin/perl -w
use strict;
use lib '.';
diff --git a/examples/primes_aux.pl b/examples/primes_aux.pl
index 2540bef..e7222de 100755
--- a/examples/primes_aux.pl
+++ b/examples/primes_aux.pl
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl -w
+#!/usr/bin/perl -w
# badly written program in the hopes it would sound nice
# - Greg McCarroll
#
--
2.21.0

@ -5,36 +5,34 @@ Summary: Interface to the GraphViz graphing tool
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/GraphViz URL: https://metacpan.org/release/GraphViz
Source0: https://cpan.metacpan.org/authors/id/R/RS/RSAVAGE/GraphViz-%{version}.tgz Source0: https://cpan.metacpan.org/authors/id/R/RS/RSAVAGE/GraphViz-%{version}.tgz
# Normalize shebangs
Patch0: GraphViz-2.24-Normalize-shebangs-in-examples.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: graphviz-devel
BuildRequires: coreutils BuildRequires: coreutils
BuildRequires: findutils BuildRequires: findutils
# graphviz for the "dot" tool
BuildRequires: graphviz
BuildRequires: graphviz-devel
BuildRequires: make BuildRequires: make
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter BuildRequires: perl-interpreter
BuildRequires: perl(Carp) >= 1.01 BuildRequires: perl(:VERSION) >= 5.6
BuildRequires: perl(Config) BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(File::Which) >= 1.09 BuildRequires: perl(strict)
BuildRequires: perl(Getopt::Long) >= 2.34 BuildRequires: perl(warnings)
BuildRequires: perl(IO::Dir) >= 1.04 # Run-time:
BuildRequires: perl(IO::File) >= 1.1 BuildRequires: perl(Carp) >= 1.01
BuildRequires: perl(IPC::Run) >= 0.6 BuildRequires: perl(IPC::Run) >= 0.6
BuildRequires: perl(lib) BuildRequires: perl(lib)
BuildRequires: perl(LWP::Simple) >= 6
BuildRequires: perl(Parse::RecDescent) >= 1.965001 BuildRequires: perl(Parse::RecDescent) >= 1.965001
BuildRequires: perl(Pod::Usage) >= 1.16
BuildRequires: perl(strict)
BuildRequires: perl(Test::More) >= 1.001002
BuildRequires: perl(Time::HiRes) >= 1.51 BuildRequires: perl(Time::HiRes) >= 1.51
BuildRequires: perl(vars) BuildRequires: perl(vars)
BuildRequires: perl(warnings)
BuildRequires: perl(XML::Twig) >= 3.52 BuildRequires: perl(XML::Twig) >= 3.52
BuildRequires: perl(XML::XPath) >= 1.13 # Tests:
BuildRequires: sed BuildRequires: perl(File::Which) >= 1.09
# optional test BuildRequires: perl(Test::More) >= 1.001002
BuildRequires: perl(Test::Pod) >= 1.48 # "dot" command is executed from GraphViz module
# not autodetected
Requires: graphviz Requires: graphviz
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
@ -48,8 +46,8 @@ the GraphViz project (<http://www.graphviz.org/>).
%prep %prep
%setup -q -n GraphViz-%{version} %setup -q -n GraphViz-%{version}
find lib t -type f -exec chmod -c -x {} \; %patch0 -p1
sed -i -e 's|#!.*perl|#!/usr/bin/perl|' examples/primes_aux.pl examples/clusters2.pl find -type f -exec chmod -x {} +
%build %build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
@ -71,6 +69,7 @@ make test
%changelog %changelog
* Thu Nov 07 2019 Petr Pisar <ppisar@redhat.com> - 2.24-11 * Thu Nov 07 2019 Petr Pisar <ppisar@redhat.com> - 2.24-11
- Modernize a spec file - Modernize a spec file
- Correct dependencies
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.24-10 * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.24-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

Loading…
Cancel
Save