81 lines
2.5 KiB
RPMSpec
81 lines
2.5 KiB
RPMSpec
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
||
|
|
||
|
Name: perl-DBD-SQLite
|
||
|
Version: 1.38_03
|
||
|
Release: 1mamba
|
||
|
Summary: DBD::SQLite - Self-contained RDBMS in a DBI Driver
|
||
|
Group: System/Libraries/Perl
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Automatic Build System <autodist@mambasoft.it>
|
||
|
URL: http://www.cpan.org
|
||
|
Source: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/DBD-SQLite-%{version}.tar.gz
|
||
|
Patch0: perl-DBD-SQLite-1.27-bz543982.patch
|
||
|
Patch1: perl-DBD-SQLite-1.31-fts3-test.patch
|
||
|
License: GPL, Artistic
|
||
|
BuildRequires: libsqlite-devel
|
||
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||
|
BuildRequires: perl(Test::More)
|
||
|
BuildRequires: perl(File::Spec)
|
||
|
BuildRequires: perl(DBI)
|
||
|
BuildRequires: perl-DBI-Proxy
|
||
|
BuildRequires: perl-DBI-ProfileDumper-Apache
|
||
|
BuildRequires: perl-devel
|
||
|
Requires: perl >= %perl_major_ver
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
SQLite is a public domain file-based relational database engine that you can find at
|
||
|
http://www.sqlite.org/.
|
||
|
|
||
|
This module provides a SQLite RDBMS module that uses the system SQLite
|
||
|
libraries.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n DBD-SQLite-%{version}
|
||
|
%patch0 -p1
|
||
|
#%patch1 -p1
|
||
|
|
||
|
%build
|
||
|
CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
||
|
%make OPTIMIZE="$RPM_OPT_FLAGS"
|
||
|
make test || :
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall_perl
|
||
|
|
||
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
||
|
find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
|
||
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
||
|
chmod -R u+w %{buildroot}/*
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{perl_vendorarch}/auto/*
|
||
|
%{perl_vendorarch}/DBD/*
|
||
|
%{_mandir}/man3/*.3pm.gz
|
||
|
%doc Changes LICENSE README
|
||
|
|
||
|
%changelog
|
||
|
* Wed May 22 2013 Automatic Build System <autodist@mambasoft.it> 1.38_03-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Sat Apr 13 2013 Automatic Build System <autodist@mambasoft.it> 1.38_02-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Mon Nov 12 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.38_01-2mamba
|
||
|
- perl 5.16 mass rebuild
|
||
|
|
||
|
* Thu Oct 11 2012 Automatic Build System <autodist@mambasoft.it> 1.38_01-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Thu Aug 09 2012 Automatic Build System <autodist@mambasoft.it> 1.37-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Sun Feb 20 2011 gil <puntogil@libero.it> 1.31-1mamba
|
||
|
- package created by autospec
|