summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.