|
|
|
Name: perl-Declare-Constraints-Simple
|
|
|
|
Version: 0.03
|
|
|
|
Release: 13%{?dist}
|
|
|
|
Summary: Declarative Validation of Data Structures
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://search.cpan.org/dist/Declare-Constraints-Simple/
|
|
|
|
Source0: http://www.cpan.org/authors/id/P/PH/PHAYLON/Declare-Constraints-Simple-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
|
|
# core
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
# cpan
|
|
|
|
BuildRequires: perl(aliased)
|
|
|
|
BuildRequires: perl(Carp::Clan)
|
|
|
|
BuildRequires: perl(Class::Inspector)
|
|
|
|
# test -- optional
|
|
|
|
BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage)
|
|
|
|
|
|
|
|
# Filter unwanted Requires: (rpm 4.9 onwards)
|
|
|
|
%global __requires_exclude ^perl\\(Declare::Constraints::Simple-Library\\)
|
|
|
|
|
|
|
|
%description
|
|
|
|
The main purpose of this module is to provide an easy way to build a
|
|
|
|
profile to validate a data structure. It does this by giving you a set of
|
|
|
|
declarative keywords in the importing namespace.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Declare-Constraints-Simple-%{version}
|
|
|
|
|
|
|
|
# Filter unwanted Requires: (pre rpm 4.9)
|
|
|
|
cat << \EOF > %{name}-req
|
|
|
|
#!/bin/sh
|
|
|
|
%{__perl_requires} $* |\
|
|
|
|
sed -e '/perl(Declare::Constraints::Simple-Library)/d'
|
|
|
|
EOF
|
|
|
|
|
|
|
|
%define __perl_requires %{_builddir}/Declare-Constraints-Simple-%{version}/%{name}-req
|
|
|
|
chmod +x %{__perl_requires}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
|
|
|
|
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc Changes README t/
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Wed Jun 29 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.03-13
|
|
|
|
- Perl mass rebuild
|
|
|
|
|
|
|
|
* Sun Feb 13 2011 Paul Howarth <paul@city-fan.org> - 0.03-12
|
|
|
|
- Fix dependency filter for rpm 4.9 onwards
|
|
|
|
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.03-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.03-10
|
|
|
|
- 661697 rebuild for fixing problems with vendorach/lib
|
|
|
|
|
|
|
|
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.03-9
|
|
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
|
|
|
|
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.03-8
|
|
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
|
|
|
|
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.03-7
|
|
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
|
|
|
|
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.03-6
|
|
|
|
- rebuild against perl 5.10.1
|
|
|
|
|
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.03-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.03-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Mar 05 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.03-3
|
|
|
|
- rebuild for new perl
|
|
|
|
|
|
|
|
* Fri May 04 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.03-2
|
|
|
|
- bump
|
|
|
|
|
|
|
|
* Tue May 01 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.03-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.71.
|