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