diff --git a/README.md b/README.md index ba21416..75cee9c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-Tie-DBI +Tie-DBI is a module that allow you to tie associative arrays to relational databases using the DBI library. + diff --git a/perl-Tie-DBI.spec b/perl-Tie-DBI.spec new file mode 100644 index 0000000..6e9aadf --- /dev/null +++ b/perl-Tie-DBI.spec @@ -0,0 +1,61 @@ +%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 +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 1.02-3mamba +- automatic rebuild by autodist + +* Sun Nov 09 2008 Silvan Calarco 1.02-2mamba +- automatic rebuild by autodist + +* Mon Jun 23 2008 Tiziana Ferro 1.02-1mamba +- update to 1.02 + +* Wed Oct 27 2004 Mirko Cortillaro 0.93-1qilnx +- package created by autospec