summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Orling <TicoTimo@gmail.com>2015-08-05 06:36:53 -0700
committerTim Orling <TicoTimo@gmail.com>2015-08-05 06:36:53 -0700
commit76ee8c1f592bd6112c3a66cb038171a0af45d925 (patch)
treea5b70391df0ef9c27a6dc0d1e4bd7ad6f584d02c
parentc8f18a2b11c43e45bd0fc5e1daec8d81ca8a8a76 (diff)
downloadperl-MooX-Roles-Pluggable-76ee8c1f592bd6112c3a66cb038171a0af45d925.zip
perl-MooX-Roles-Pluggable-76ee8c1f592bd6112c3a66cb038171a0af45d925.tar.gz
perl-MooX-Roles-Pluggable-76ee8c1f592bd6112c3a66cb038171a0af45d925.tar.xz
Clean up spec file for review (#1242727)
-rw-r--r--.rpmlint2
-rw-r--r--perl-MooX-Roles-Pluggable.spec32
2 files changed, 21 insertions, 13 deletions
diff --git a/.rpmlint b/.rpmlint
new file mode 100644
index 0000000..4aab163
--- /dev/null
+++ b/.rpmlint
@@ -0,0 +1,2 @@
+from Config import *
+addFilter("spelling-error .* eXtension");
diff --git a/perl-MooX-Roles-Pluggable.spec b/perl-MooX-Roles-Pluggable.spec
index 8d3b3b7..05cd4b4 100644
--- a/perl-MooX-Roles-Pluggable.spec
+++ b/perl-MooX-Roles-Pluggable.spec
@@ -1,18 +1,27 @@
Name: perl-MooX-Roles-Pluggable
Version: 0.003
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Moo eXtension for pluggable roles
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/MooX-Roles-Pluggable/
Source0: http://www.cpan.org/authors/id/R/RE/REHSACK/MooX-Roles-Pluggable-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
+# Build:
+BuildRequires: coreutils
+BuildRequires: findutils
+BuildRequires: make
+BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
-BuildRequires: perl(File::Spec)
+BuildRequires: perl(strict)
+BuildRequires: perl(warnings)
+# Run-time:
BuildRequires: perl(Module::Pluggable) >= 4.8
-BuildRequires: perl(Moo)
BuildRequires: perl(Moo::Role) >= 1.003000
+# Tests:
+BuildRequires: perl(File::Basename)
+BuildRequires: perl(File::Spec)
+BuildRequires: perl(Moo)
BuildRequires: perl(Test::More) >= 0.9
Requires: perl(Module::Pluggable) >= 4.8
Requires: perl(Moo::Role) >= 1.003000
@@ -30,31 +39,28 @@ Module::Pluggable::Object.
make %{?_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
-
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+make pure_install DESTDIR=$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 \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files
-%defattr(-,root,root,-)
-%doc Changes META.json README.md
+%doc Changes README.md
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
+* Wed Aug 05 2015 Tim Orling <ticotimo@gmail.com> - 0.003-2
+- Clean up spec file for review (#1242727)
+
* Sun Jul 12 2015 Tim Orling 0.003-1
- Update to 0.003 version
- Build is now with ExtUtils::MakeMaker
- Merge specfile autogenerated by cpanspec 1.78 for 0.003
+
* Thu Apr 02 2015 Tim Orling 0.002-1
- Specfile autogenerated by cpanspec 1.78.