Modernize a spec file

epel9
Petr Písař 5 years ago
parent c906df6153
commit 9d3d699fef

@ -0,0 +1,2 @@
from Config import *
addFilter("spelling-error .* (circo|fdp|neato|twopi|undirected|www)");

@ -1,22 +1,20 @@
Name: perl-GraphViz Name: perl-GraphViz
Version: 2.24 Version: 2.24
Release: 10%{?dist} Release: 11%{?dist}
Summary: Interface to the GraphViz graphing tool 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
BuildArch: noarch BuildArch: noarch
BuildRequires: graphviz-devel BuildRequires: graphviz-devel
BuildRequires: coreutils BuildRequires: coreutils
BuildRequires: findutils BuildRequires: findutils
BuildRequires: make BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(Carp) >= 1.01 BuildRequires: perl(Carp) >= 1.01
BuildRequires: perl(Config) BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(File::Which) >= 1.09 BuildRequires: perl(File::Which) >= 1.09
BuildRequires: perl(Getopt::Long) >= 2.34 BuildRequires: perl(Getopt::Long) >= 2.34
BuildRequires: perl(IO::Dir) >= 1.04 BuildRequires: perl(IO::Dir) >= 1.04
@ -36,7 +34,6 @@ BuildRequires: perl(XML::XPath) >= 1.13
BuildRequires: sed BuildRequires: sed
# optional test # optional test
BuildRequires: perl(Test::Pod) >= 1.48 BuildRequires: perl(Test::Pod) >= 1.48
# not autodetected # 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))
@ -44,26 +41,22 @@ Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%{?perl_default_filter} %{?perl_default_filter}
%description %description
This module provides an interface to layout and image generation of This Perl module provides an interface to layout and image generation of
directed and undirected graphs in a variety of formats (PostScript, PNG, directed and undirected graphs in a variety of formats (PostScript, PNG,
etc.) using the "dot", "neato", "twopi", "circo" and "fdp" programs from etc.) using the "dot", "neato", "twopi", "circo" and "fdp" programs from
the GraphViz project (http://www.graphviz.org/ or the GraphViz project (<http://www.graphviz.org/>).
http://www.research.att.com/sw/tools/graphviz/).
%prep %prep
%setup -q -n GraphViz-%{version} %setup -q -n GraphViz-%{version}
find lib t -type f -exec chmod -c -x {} \; find lib t -type f -exec chmod -c -x {} \;
sed -i -e 's|#!.*perl|#!/usr/bin/perl|' examples/primes_aux.pl examples/clusters2.pl sed -i -e 's|#!.*perl|#!/usr/bin/perl|' examples/primes_aux.pl examples/clusters2.pl
%build %build
perl Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
make %{?_smp_mflags} %{make_build}
%install %install
make pure_install DESTDIR=%{buildroot} %{make_install}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} %{buildroot}/* %{_fixperms} %{buildroot}/*
%check %check
@ -76,6 +69,9 @@ make test
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Thu Nov 07 2019 Petr Pisar <ppisar@redhat.com> - 2.24-11
- Modernize a spec file
* 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