From 3a5a03a6127754c3ba77797b63fb671747222aa7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <[email protected]>
Date: Wed, 17 Feb 2016 19:58:14 +0100
Subject: Package cleanup
---
perl-latest.spec | 34 ++++++++++++++++++----------------
1 file changed, 18 insertions(+), 16 deletions(-)
diff --git a/perl-latest.spec b/perl-latest.spec
index 6c6c260..90389bc 100644
--- a/perl-latest.spec
+++ b/perl-latest.spec
@@ -1,17 +1,24 @@
Name: perl-latest
Version: 0.03
-Release: 17%{?dist}
+Release: 18%{?dist}
Summary: Use the latest Perl features
License: GPL+ or Artistic
-Group: Development/Libraries
URL: http://search.cpan.org/dist/latest/
Source0:
http://www.cpan.org/authors/id/A/AN/ANDYA/latest-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
+# Build
+BuildRequires: perl
+BuildRequires: perl(base)
+BuildRequires: perl(lib)
BuildRequires: perl(Module::Build)
-BuildRequires: perl(Test::More)
+BuildRequires: perl(strict)
+BuildRequires: perl(warnings)
+# Runtime
+BuildRequires: perl(Carp)
BuildRequires: perl(version)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
$version))
+# Tests only
+BuildRequires: perl(Test::More)
+Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo
$version))
%description
Shake out any obscure problems that might result from your code being used by a
@@ -21,30 +28,25 @@ program that requires the latest Perl version.
%setup -q -n latest-%{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/*
+./Build install destdir=%{buildroot} create_packlist=0
+%{_fixperms} %{buildroot}/*
%check
./Build test
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files
-%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
+* Wed Feb 17 2016 Petr Ĺ abata <[email protected]> - 0.03-18
+- Package cleanup
+
* Thu Feb 04 2016 Fedora Release Engineering <[email protected]> -
0.03-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
--
cgit v0.12
http://pkgs.fedoraproject.org/cgit/perl-latest.git/commit/?h=master&id=3a5a03a6127754c3ba77797b63fb671747222aa7
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
[email protected]
http://lists.fedoraproject.org/admin/lists/[email protected]