perl-DBD-Pg/perl-DBD-Pg.spec

113 lines
3.5 KiB
RPMSpec
Raw Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-DBD-Pg
Epoch: 1
Version: 3.0.0
Release: 1mamba
Summary: DBD:Pg - PostgreSQL database driver for the DBI module
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.cpan.org
Source: http://search.cpan.org/CPAN/authors/id/T/TU/TURNSTEP/DBD-Pg-%{version}.tar.gz
License: Artistic, GPL
Requires: perl >= %perl_major_ver
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libpostgresql-devel
BuildRequires: perl-DBI
BuildRequires: perl-devel
BuildRequires: perl-YAML
BuildRequires: perl-Data-Peek
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
DBD:Pg - PostgreSQL database driver for the DBI module.
%prep
%setup -q -n DBD-Pg-%{version}
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
%make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
packlist=`find %{buildroot} -name .packlist`
[ -z "$packlist" ] && exit 1 || cat $packlist | \
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
sort -u > .packlist && rm $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}"
rm -f .packlist
%files -f .packlist
%defattr(-,root,root)
%changelog
* Sun Feb 09 2014 Automatic Build System <autodist@mambasoft.it> 3.0.0-1mamba
- automatic update by autodist
* Tue Jan 22 2013 Automatic Build System <autodist@mambasoft.it> 2.99.9_2-1mamba
- automatic version update by autodist
* Tue Nov 20 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.19.3-1mamba
- update to 2.19.3
- downgrade from development version (epoch incremented)
* Fri Nov 16 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.99.9_2-1mamba
- perl 5.16 mass rebuild
* Thu Jun 16 2011 Automatic Build System <autodist@mambasoft.it> 2.18.1-1mamba
- automatic update by autodist
* Sun May 02 2010 Automatic Build System <autodist@mambasoft.it> 2.17.1-1mamba
- automatic update by autodist
* Tue Jan 12 2010 Automatic Build System <autodist@mambasoft.it> 2.16.0-1mamba
- automatic update by autodist
* Tue Aug 11 2009 Automatic Build System <autodist@mambasoft.it> 2.15.1-1mamba
- automatic update by autodist
* Tue Aug 04 2009 Automatic Build System <autodist@mambasoft.it> 2.15.0-1mamba
- automatic update by autodist
* Wed Jul 29 2009 Automatic Build System <autodist@mambasoft.it> 2.14.1-1mamba
- automatic update by autodist
* Thu Jul 23 2009 Automatic Build System <autodist@mambasoft.it> 2.13.1_7-1mamba
- automatic update by autodist
* Fri Jul 17 2009 Automatic Build System <autodist@mambasoft.it> 2.13.1_3-1mamba
- automatic update by autodist
* Sat May 02 2009 Automatic Build System <autodist@mambasoft.it> 2.13.1-1mamba
- automatic update by autodist
* Sat Apr 18 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.13.0-1mamba
- automatic update by autodist
* Tue Mar 31 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12.0-1mamba
- automatic update by autodist
* Thu Feb 05 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.11.8-1mamba
- automatic update by autodist
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.4-2mamba
- automatic rebuild by autodist
* Sat Jul 12 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.4-1mamba
- package created by autospec