Changes of Revision 3
[-] | Added | perl-DBD-Oracle.spec |
x 1
2 + 3 +Summary: Oracle database driver for the DBI module 4 +Name: perl-DBD-Oracle 5 +Version: 1.19 6 +Release: 1%{?dist} 7 +License: Artistic or GPL 8 +Group: Development/Languages 9 +URL: http://search.cpan.org/dist/DBD-Oracle/ 10 +Source0: http://www.cpan.org/modules/by-module/DBD/DBD-Oracle-%{version}.tar.gz 11 +Source1: http://jeanchristophe.duber.free.fr/dbd_oracle_instantclient_linux/Makefile-instantclient.PL 12 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root 13 +BuildRequires: perl(DBI) 14 +BuildRequires: oracle-instantclient-devel 15 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) 16 + 17 +%description 18 +Oracle database driver for the DBI module. 19 + 20 + 21 +%prep 22 +%setup -q -n DBD-Oracle-%{version} 23 +# All files in the archive are executable... (still as of 1.19) 24 +find . -type f -exec chmod -x {} \; 25 +%{__cp} -a %{SOURCE1} . 26 + 27 + 28 +%build 29 +%{__perl} Makefile-instantclient.PL \ 30 + INSTALLDIRS="vendor" \ 31 + PREFIX=%{buildroot}%{_prefix} 32 +%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}" 33 + 34 + 35 +%install 36 +%{__rm} -rf %{buildroot} 37 +%{__make} pure_install INSTALLDIRS="vendor" PERL_INSTALL_ROOT=%{buildroot} 38 +find %{buildroot} -type f -a \( -name .packlist \ 39 + -o \( -name '*.bs' -a -empty \) \) -exec %{__rm} -f {} \; 40 +# Fix up Oraperl.pm location, see original Makefile.PL 41 +%{__mv} %{buildroot}%{perl_vendorarch}{/DBD,}/Oraperl.pm 42 +%{__mv} %{buildroot}%{_mandir}/man3/{DBD::,}Oraperl.3* 43 +# Avoid dependencies 44 +%{__chmod} -x %{buildroot}%{_bindir}/ora_explain 45 + 46 +# TODO: headers etc, see post_initialize() in original Makefile.PL 47 + 48 + 49 +%clean 50 +%{__rm} -rf %{buildroot} 51 + 52 + 53 +%files 54 +%defattr(-,root,root,-) 55 +%doc Changes README README.clients.txt README.linux.txt Todo 56 +%attr(0755, root, root) %{_bindir}/ora_explain 57 +%{perl_vendorarch}/auto/DBD/ 58 +%{perl_vendorarch}/DBD/ 59 +%{perl_vendorarch}/Oraperl.pm 60 +%{_mandir}/man1/ora_explain.1* 61 +%{_mandir}/man3/*.3* 62 + 63 + 64 +%changelog 65 +* Sun Aug 19 2007 Ciro Iriarte <ciriarte@personal.net.py> 66 +- Added to buildservice 67 +* Wed May 16 2007 Matthias Saou <http://freshrpms.net/> 1.19-1 68 +- Update to 1.19. 69 + 70 +* Mon Jun 12 2006 Matthias Saou <http://freshrpms.net/> 1.17-1 71 +- Update to 1.17 which is supposed to support instant client natively, but it's 72 + still much more complicated to have the original Makefile.PL find and use it 73 + than simply use our own Makefile.PL instead... 74 +- Update %%doc to reflect .txt suffix addition. 75 +- Remove unneeded patch to the original Makefile.PL. 76 +- Remove no longer needed chmod call for stripping to work. 77 + 78 +* Thu May 18 2006 Matthias Saou <http://freshrpms.net/> 1.16-4 79 +- Rebuild against fixed library on x86_64 (link against libs in lib64). 80 + 81 +* Mon Nov 14 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.16-3 82 +- Add dependency on perl(:MODULE_COMPAT_*). 83 +- Ship ora_explain, ignoring dependencies. 84 +- Own installed directories. 85 + 86 +* Mon Apr 11 2005 Matthias Saou <http://freshrpms.net/> 1.16-2 87 +- Remove oracle-instantclient-wrapper build dep. 88 + 89 +* Tue Mar 15 2005 Matthias Saou <http://freshrpms.net/> 1.16-1 90 +- Initial RPM package. 91 +- Exclude ora_explain as it requires perl(Tk). 92 + 93 |