############################################################################### # IPFire.org - An Open Source Firewall Solution # # Copyright (C) - IPFire Development Team # ############################################################################### name = perl-DBI version = 1.643 release = 2 thisapp = DBI-%{version} groups = Development/Libraries url = http://dbi.perl.org license = GPL+ or Artistic summary = A database access API for perl. description DBI is a database access Application Programming Interface (API) for the Perl Language. end source_dl = http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/ build requires perl(B) perl(blib) perl(Carp) perl(Cwd) perl(Data::Dumper) perl(DynaLoader) perl(Errno) perl(Exporter) perl(ExtUtils::MakeMaker) perl(ExtUtils::ParseXS) perl(File::Basename) perl(File::Find) perl(File::Spec) perl(Getopt::Long) perl(IO::Dir) perl(IO::File) perl(IO::Select) perl(IPC::Open3) perl(Math::BigInt) perl(Scalar::Util) perl(Storable) perl(Symbol) perl(Tie::Hash) perl(Test::Simple) perl(base) perl(blib) perl(strict) perl-devel # Only required to successfully perform # the testsuite. perl-core end build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{CFLAGS}" make %{PARALLELISMFLAGS} end test make test end make_install_targets = \ pure_install DESTDIR=%{BUILDROOT} install_cmds # Set correct library permissions. find %{BUILDROOT}%{libdir} -type f -iname "*.so" \ -exec chmod 755 {} \; # Set correct binary permissions. find %{BUILDROOT}%{bindir} -type f -executable \ -exec chmod 755 {} \; end end packages package %{name} filter_requires = (RPC|Win32) requires perl(:MODULE_COMPAT_%{perl_version}) perl(Math::BigInt) end end package %{name}-debuginfo template DEBUGINFO end end