62 lines
1.8 KiB
RPMSpec
62 lines
1.8 KiB
RPMSpec
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
||
|
|
||
|
Name: perl-Tie-DBI
|
||
|
Version: 1.02
|
||
|
Release: 3mamba
|
||
|
Summary: Tie::DBI - Implements a fully general binding between the hash and the table
|
||
|
Group: Development/Libraries/Perl
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Tiziana Ferro <tiziana.ferro@email.it>
|
||
|
URL: http://www.cpan.org
|
||
|
Source: http://www.cpan.org/authors/id/L/LD/LDS/Tie-DBI-%{version}.tar.gz
|
||
|
License: GPL
|
||
|
BuildRoot: %{_tmppath}/perl-root
|
||
|
Requires: perl >= %perl_major_ver
|
||
|
BuildRequires: perl-devel >= %perl_major_ver
|
||
|
BuildRequires: perl-DBD-mysql >= 2.1028
|
||
|
|
||
|
%description
|
||
|
Tie-DBI is a module that allow you to tie associative arrays to relational databases using the DBI library.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n Tie-DBI-%{version}
|
||
|
|
||
|
%build
|
||
|
perl Makefile.PL
|
||
|
%make
|
||
|
# make test
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
make pure_install DESTDIR=%{buildroot}
|
||
|
|
||
|
packlist=`find %{buildroot} -name .packlist`
|
||
|
[[ -z "$packlist" ]] && exit 1 || cat $packlist | \
|
||
|
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
|
||
|
sort -u > .packlist && rm -f $packlist
|
||
|
|
||
|
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
|
||
|
for dir in `find %{buildroot} -type d | grep $strid`; do
|
||
|
echo "%dir ${dir#%buildroot}" >> .packlist
|
||
|
done
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%files -f .packlist
|
||
|
%defattr(-,root,root)
|
||
|
|
||
|
%changelog
|
||
|
* Fri Aug 30 2013 Automatic Build System <autodist@mambasoft.it> 1.02-3mamba
|
||
|
- automatic rebuild by autodist
|
||
|
|
||
|
* Sun Nov 09 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.02-2mamba
|
||
|
- automatic rebuild by autodist
|
||
|
|
||
|
* Mon Jun 23 2008 Tiziana Ferro <tiziana.ferro@email.it> 1.02-1mamba
|
||
|
- update to 1.02
|
||
|
|
||
|
* Wed Oct 27 2004 Mirko Cortillaro <mirko.cortillaro@qilinux.it> 0.93-1qilnx
|
||
|
- package created by autospec
|