573b83
Name:           perl-DBIx-Class-EncodedColumn
573b83
Version:        0.00002
3476d7
Release:        3%{?dist}
573b83
Summary:        Automatically encode columns
573b83
License:        GPL+ or Artistic
573b83
Group:          Development/Libraries
573b83
URL:            http://search.cpan.org/dist/DBIx-Class-EncodedColumn/
573b83
Source0:        http://www.cpan.org/authors/id/G/GR/GRODITI/DBIx-Class-EncodedColumn-%{version}.tar.gz
573b83
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
573b83
BuildArch:      noarch
573b83
BuildRequires:  perl(DBD::SQLite)
573b83
BuildRequires:  perl(DBIx::Class) >= 0.06002
573b83
BuildRequires:  perl(Digest::SHA)
573b83
BuildRequires:  perl(ExtUtils::MakeMaker)
573b83
BuildRequires:  perl(SQL::Translator) >= 0.08000
573b83
BuildRequires:  perl(Sub::Name) >= 0.04
573b83
BuildRequires:  perl(Test::More)
573b83
# Missing BRs in perl-SQL-Translator (BZ #499768)
573b83
BuildRequires:  perl(Class::Accessor::Fast)
573b83
BuildRequires:  perl(Class::Data::Inheritable)
573b83
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
573b83
# undetected
573b83
Requires:       perl(DBIx::Class)
573b83
573b83
%description
573b83
This DBIx::Class component can be used to automatically encode a column's
573b83
contents whenever the value of that column is set.
573b83
573b83
%prep
573b83
%setup -q -n DBIx-Class-EncodedColumn-%{version}
573b83
573b83
# no Crypt::OpenPGP in Fedora
573b83
rm lib/DBIx/Class/EncodedColumn/Crypt/OpenPGP.pm
573b83
573b83
%build
573b83
%{__perl} Makefile.PL INSTALLDIRS=vendor
573b83
make %{?_smp_mflags}
573b83
573b83
%install
573b83
rm -rf $RPM_BUILD_ROOT
573b83
573b83
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
573b83
573b83
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
573b83
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
573b83
573b83
%{_fixperms} $RPM_BUILD_ROOT/*
573b83
573b83
%check
573b83
make test
573b83
573b83
%clean
573b83
rm -rf $RPM_BUILD_ROOT
573b83
573b83
%files
573b83
%defattr(-,root,root,-)
573b83
%doc Changes README
0c08e9
%{perl_vendorlib}/DBIx/Class/*
573b83
%{_mandir}/man3/*
573b83
573b83
%changelog
3476d7
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.00002-3
3476d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3476d7
0c08e9
* Fri Jun 26 2009 Tom "spot" Callaway <tcallawa@redhat.com> 0.00002-2
0c08e9
- fix duplicate directory ownership (perl-DBIx-Class owns %{perl_vendorlib}/DBIx/Class/)
0c08e9
573b83
* Mon May 04 2009 Iain Arnell <iarnell@gmail.com> 0.00002-1
573b83
- Specfile autogenerated by cpanspec 1.77.
573b83
- Disable support for OpenPGP since it's not available in Fedora
573b83
- Additional BRs due to BZ #499768