ppisar pushed to perl-Getopt-Euclid (master). "Modernize spec file"
notifications at fedoraproject.org
notifications at fedoraproject.org
Tue Jul 14 11:20:23 UTC 2015
From 678cf702c1b2445c8ff8032fdfa7c69f2459c1de Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
Date: Tue, 14 Jul 2015 13:19:16 +0200
Subject: Modernize spec file
diff --git a/perl-Getopt-Euclid.spec b/perl-Getopt-Euclid.spec
index c80e89a..1771d6f 100644
--- a/perl-Getopt-Euclid.spec
+++ b/perl-Getopt-Euclid.spec
@@ -6,7 +6,6 @@ License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Getopt-Euclid/
Source0: http://search.cpan.org/CPAN/authors/id/F/FA/FANGLY/Getopt-Euclid-%{version}.tar.gz
-BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: noarch
BuildRequires: coreutils
BuildRequires: findutils
@@ -35,7 +34,7 @@ BuildRequires: perl(Test::More)
# Optional tests:
BuildRequires: perl(Test::Pod) >= 1.14
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
Getopt::Euclid uses your program's own documentation to create a command-
@@ -46,25 +45,17 @@ and its actual interface always agree.
%setup -q -n Getopt-Euclid-%{version}
%build
-%{__perl} Build.PL installdirs=vendor
+perl Build.PL installdirs=vendor
./Build
%install
-rm -rf $RPM_BUILD_ROOT
-
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
%{_fixperms} $RPM_BUILD_ROOT/*
%check
./Build test
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files
-%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
@@ -72,6 +63,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Tue Jul 14 2015 Petr Pisar <ppisar at redhat.com> - 0.4.5-3
- Specify all dependencies (bug #1242780)
+- Modernize spec file
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/perl-Getopt-Euclid.git/commit/?h=master&id=678cf702c1b2445c8ff8032fdfa7c69f2459c1de
More information about the perl-devel
mailing list