Blob Blame History Raw
Name:           perl-Class-DBI-Loader-Relationship
Version:        1.3
Release:        10%{?dist}
Summary:        Easier relationship specification in CDBI::L
Group:          Development/Libraries
License:        GPL+ or Artistic
URL:            http://search.cpan.org/dist/Class-DBI-Loader-Relationship/
Source0:        http://search.cpan.org/CPAN/authors/id/C/CH/CHUNZI/Class-DBI-Loader-Relationship-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:	perl(Class::DBI::Loader), perl(Lingua::EN::Inflect::Number)
BuildRequires:	perl(Test::More)
Requires:  perl(Class::DBI::Loader), perl(Lingua::EN::Inflect::Number)
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
%{summary}.

%prep
%setup -q -n Class-DBI-Loader-Relationship-%{version}

# Filter false positive provides.
cat <<EOF > %{name}-prov
#!/bin/sh
%{__perl_provides} \
| grep -v 'perl(Class::DBI::Loader::Generic)'
EOF
%define __perl_provides %{_builddir}/Class-DBI-Loader-Relationship-%{version}/%{name}-prov
chmod +x %{__perl_provides}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%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 -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*

%check
make test

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc Changes
%{perl_vendorlib}/Class/DBI/Loader
%{_mandir}/man3/*.3*


%changelog
* Wed Aug 19 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.3-10
- fix source0 url

* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.3-7
- Rebuild for perl 5.10 (again)

* Mon Jan 28 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.3-6
- rebuild for new perl

* Fri Aug 24 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.3-5
- license fix

* Thu Jul  5 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.3-4.1
- missing BR for devel (Test::More)

* Thu Jul  5 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.3-4
- fix false provide (Class::DBI::Loader::Generic)

* Thu Sep 14 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.3-3
- bump for FC-6

* Mon Apr 24 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.3-2
- correct license, should be GPL+ or Artistic

* Mon Jan  9 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.3-1
- bump to 1.3

* Wed Sep 14 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.2-4
- set license to Distributable

* Wed Sep  7 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.2-3
- remove redundant BR: perl
- honor %%{_smp_mflags}
- include license text

* Fri Jul  8 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.2-2
- cleanups

* Wed Jul  6 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.2-1
- Initial package for Fedora Extras