-
Notifications
You must be signed in to change notification settings - Fork 3
/
perl-DBD-Oracle.spec
157 lines (117 loc) · 4.84 KB
/
perl-DBD-Oracle.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
Summary: DBD-Oracle module for perl
Name: perl-DBD-Oracle
Version: 1.62
Release: 2%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
Source0: DBD-Oracle-%{version}.tar.gz
Url: http://www.cpan.org
BuildRoot: %{_tmppath}/perl-DBD-Oracle-buildroot/
BuildRequires: perl >= 0:5.6.1, perl(DBI)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: oracle-instantclient12.1-devel
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
# the version requires is not automatically picked up
Requires: perl(DBI) >= 1.51
%description
DBD-Oracle module for perl
%prep
%define modname %(echo %{name}| sed 's/perl-//')
%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)
%setup -q -n %{modname}-%{version}
%build
MKFILE=$(find /usr/share/oracle/ -name demo.mk)
%ifarch x86_64 s390x
ORACLE_HOME=$(find /usr/lib/oracle/ -name client64 | sort -n | tail -1)
%else
ORACLE_HOME=$(find /usr/lib/oracle/ -name client | sort -n | tail -1)
%endif
export ORACLE_HOME
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
perl Makefile.PL -m $MKFILE INSTALLDIRS="vendor" PREFIX=%{_prefix} -V 12.1.0.1
make %{?_smp_mflags} OPTIMIZE="%{optflags}"
%clean
rm -rf $RPM_BUILD_ROOT
%install
rm -rf $RPM_BUILD_ROOT
make PREFIX=$RPM_BUILD_ROOT%{_prefix} pure_install
rm -f `find $RPM_BUILD_ROOT -type f -name perllocal.pod -o -name .packlist`
%files
%defattr(-,root,root)
%{perl_vendorarch}/auto/DBD/
%{perl_vendorarch}/DBD/
%{_mandir}/man3/*
%changelog
* Mon May 13 2013 Jan Pazdziora 1.62-1
- Rebase DBD::Oracle to 1.62.
* Mon Mar 18 2013 Michael Mraka <[email protected]> 1.50-2
- fixed builder definition
* Mon Oct 08 2012 Jan Pazdziora 1.50-1
- Rebase perl-DBD-Oracle to 1.50.
- %%defattr is not needed since rpm 4.4
* Fri Jan 07 2011 Jan Pazdziora 1.27-2
- We shall hardcode the 11g version.
- Revert "Specify the InstantClient version with -V."
* Fri Jan 07 2011 Jan Pazdziora 1.27-1
- upgrading to 1.27
* Tue Jun 08 2010 Jan Pazdziora 1.24a-3
- rebuild to fix dist-cvs issue.
* Wed May 19 2010 Michael Mraka <[email protected]> 1.24a-2
- updated to upstream version 1.24a
* Thu Dec 17 2009 Justin Sherrill <[email protected]> 1.23-5
- 548489 - adding patch to fix issue with updating/inserting a blob using a
synonym ([email protected])
* Fri Jun 05 2009 Milan Zazrivec <[email protected]> 1.23-4
- bug 504281: fix out of memory error
* Tue Jun 02 2009 Miroslav Suchý <[email protected]> 1.23-3
- apply commit 12769 from Bug 46016 from upstream as patch
* Mon Jun 01 2009 Michael Mraka <[email protected]> 1.23-2
- 470999 - fixed warnings on s390(x)
* Wed May 20 2009 Jan Pazdziora 1.23-1
- rebase to latest stable upstream 1.23
- fix typo in Summary of -explain subpackage
* Tue May 19 2009 Jan Pazdziora 1.22-15
- use plain find instead of rpm -ql for now
* Wed Apr 01 2009 Miroslav Suchý <[email protected]> 1.22-13
- 493295 - requires perl-DBI >= 1.51
* Sat Feb 28 2009 Dennis Gilmore 1.22-12
- ppc oracle-instantclient-devel has a bade demo.mk file
* Fri Feb 27 2009 Dennis Gilmore <[email protected]> 1.22-11
- fix up sources and correct setup
* Fri Feb 27 2009 Dennis Gilmore <[email protected]> 1.22-10
- Rebuild for ppc ppc64 and ia64
* Wed Feb 25 2009 Devan Goodwin <[email protected]> 1.22-9
- Rebuild for new rel-eng tools.
* Mon Jan 19 2009 Dennis Gilmore <[email protected]> 1.22-8
- bump and rebuild for git tag
* Thu Jan 15 2009 Dennis Gilmore <[email protected]> 1.22-6
- BR perl(ExtUtils::MakeMaker)
* Wed Dec 10 2008 Michael Mraka <[email protected]> 1.22-5
- simplified %%build and %%instal stage
- resolved #470999
* Tue Nov 25 2008 Miroslav Suchy <[email protected]> 1.22-2
- added buildrequires for oracle-lib-compat
- rebased to DBD::Oracle 1.22
- removed DBD-Oracle-1.14-blobsyn.patch
* Thu Oct 16 2008 Milan Zazrivec 1.21-4
- bumped release for minor release tagging
- added %%{?dist} to release
* Tue Aug 26 2008 Mike McCune 1.21-3
- Cleanup spec file to work in fedora and our new Makefile structure
* Wed Jul 2 2008 Michael Mraka <[email protected]> 1.21-2
- rebased to DBD::Oracle 1.21, Oracle Instantclient 10.2.0.4
- ora_explain moved into subpackage
* Wed May 21 2008 Jan Pazdziora - 1.19-8
- rebuild on RHEL 4 as well.
* Fri Dec 05 2007 Michael Mraka <[email protected]>
- update to DBD::Oracle 1.19 to support oracle-instantclient
* Fri Jun 20 2003 Mihai Ibanescu <[email protected]>
- Linking against Oracle 9i Release 2 client libraries.
* Sun Nov 11 2001 Chip Turner <[email protected]>
- update to DBD::Oracle 1.12 to fix LOB bug
* Mon Jul 23 2001 Cristian Gafton <[email protected]>
- compile against oracle libraries using -rpath setting
- disable as many checks as we can from the default Makefile.PL
* Mon Apr 30 2001 Chip Turner <[email protected]>
- Spec file was autogenerated.