[perl-Class-Throwable] Cleanup.
Christopher Meng
cicku at fedoraproject.org
Fri Aug 9 02:32:18 UTC 2013
commit 4dc33945648776cf5b183b53b8e9c566388dc707
Author: Koji <koji at fedoraproject.org>
Date: Fri Aug 9 10:31:58 2013 +0800
Cleanup.
perl-Class-Throwable.spec | 36 +++++++++++++++---------------------
1 files changed, 15 insertions(+), 21 deletions(-)
---
diff --git a/perl-Class-Throwable.spec b/perl-Class-Throwable.spec
index 5c44e8b..e6dd3cb 100644
--- a/perl-Class-Throwable.spec
+++ b/perl-Class-Throwable.spec
@@ -1,21 +1,19 @@
+%global pkgname Class-Throwable
+%global __provides_exclude ^perl\\((DB|TestException)\\)
+%global __requires_exclude ^perl\\(base\\)
+
Name: perl-Class-Throwable
Version: 0.11
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: A minimal lightweight exception class
-Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Class-Throwable/
-Source0: http://search.cpan.org/CPAN/authors/id/K/KM/KMX/Class-Throwable-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source0: http://search.cpan.org/CPAN/authors/id/K/KM/KMX/%{pkgname}-%{version}.tar.gz
BuildArch: noarch
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl-devel
-
-%global __provides_exclude ^perl\\((DB|TestException)\\)
-%global __requires_exclude ^perl\\(base\\)
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
This module implements a minimal lightweight exception object. It is
@@ -25,33 +23,29 @@ complex solutions like Exception::Class which can be used to define
complex inline exceptions and has a number of module dependencies.
%prep
-%setup -q -n Class-Throwable-%{version}
+%setup -qn %{pkgname}-%{version}
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
make
%install
-rm -rf $RPM_BUILD_ROOT
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} ';' 2>/dev/null
-chmod -R u+w $RPM_BUILD_ROOT/*
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+chmod -R u+w %{buildroot}/*
%check
make test
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files
-%defattr(-,root,root,-)
%doc Changes README t/
%{perl_vendorlib}/Class/
%{_mandir}/man3/Class::Throwable.3pm*
-
%changelog
+* Fri Aug 09 2013 Christopher Meng <rpm at cicku.me> - 0.11-4
+- SPEC cleanup.
+
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.11-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
More information about the scm-commits
mailing list