18861N/A#
18861N/A# spec file for package SUNWmysql-python
18861N/A#
20890N/A# Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
18861N/A# This file and all modifications and additions to the pristine
18861N/A# package are under the same license as the package itself.
18861N/A#
18861N/A%define owner liyuan
18861N/A#
18861N/A
18861N/A%include Solaris.inc
18861N/A
18861N/A%define OSR 8096:1.2.2
18861N/A
18861N/AName: SUNWmysql-python26
18861N/AIPS_package_name: library/python-2/python-mysql-26
18861N/AMeta(info.classification): %{classification_prefix}:Development/Databases
18861N/ASummary: A MySQL database adapter for the Python programming language
18861N/ALicense: Python/Zope/GPL
18861N/AURL: http://sourceforge.net/projects/mysql-python
18861N/AVersion: 1.2.2
18861N/ASource: %{sf_download}/mysql-python/MySQL-python-%{version}.tar.gz
18861N/ASUNW_BaseDir: %{_basedir}
18861N/ASUNW_Copyright: %{name}.copyright
18861N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
18861N/A
18861N/A%include default-depend.inc
20857N/A%include desktop-incorporation.inc
20890N/ABuildRequires: runtime/python-26
20890N/ABuildRequires: library/python-2/setuptools-26
20890N/ARequires: runtime/python-26
20890N/ARequires: database/mysql-51
20890N/ARequires: database/mysql-51/library
18861N/A
18861N/A%define python_version 2.6
18861N/A
18861N/A%prep
18861N/A%setup -q -n MySQL-python-%{version}
18861N/A
18861N/A%build
18861N/A# correct mysql_config path
18885N/Aexport PATH=${PATH}:/usr/mysql/bin
18861N/Aexport LDFLAGS="-L/usr/mysql/lib/mysql -R/usr/mysql/lib/mysql"
18861N/Apython%{python_version} setup.py build
18861N/A
18861N/A%install
18861N/Arm -rf $RPM_BUILD_ROOT
18885N/A# correct mysql_config path
18885N/Aexport PATH=${PATH}:/usr/mysql/bin
18861N/Apython%{python_version} setup.py install --root=$RPM_BUILD_ROOT --prefix=%{_prefix} --no-compile
18861N/A
18861N/A# move to vendor-packages
18861N/Amkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/vendor-packages
18861N/Amv $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages/* \
18861N/A $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/vendor-packages/
18861N/Armdir $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages
18861N/A
18861N/A%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
18861N/A
18861N/A%clean
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/A
18861N/A%files
18861N/A%defattr (-, root, bin)
18861N/A%dir %attr (0755, root, bin) %{_libdir}
18861N/A%{_libdir}/python%{python_version}/vendor-packages/
18861N/A%doc PKG-INFO
18861N/A%doc(bzip2) GPL ChangeLog HISTORY README
18861N/A%dir %attr (0755, root, sys) %{_datadir}
18861N/A%dir %attr (0755, root, other) %{_datadir}/doc
18861N/A
18861N/A%changelog
20890N/A* Mon Feb 13 2012 - padraig.obriain@oracle.com
20890N/A- Update Requires and BuildRequires to be IPS package names.
18861N/A* Mon Nov 16 2009 - li.yuan@sun.com
18861N/A- Change owner to liyuan.
18861N/A* Mon Oct 05 2009 - darren.kenny@sun.com
18861N/A- Create python2.6 bindings based on 2.4 version.
18861N/A* Tue June 02 2009 - dave.lin@sun.com
18861N/A- Add 'Requires: SUNWmysql51lib' to fix CR6846734.
18861N/A* Tue Apr 21 2009 - dave.lin@sun.com
18861N/A- Move the dependency from SUNWmysql5u to SUNWmysql51u
18861N/A* Tue Sep 16 2008 - matt.keenn@sun.com
18861N/A- Update copyright
18861N/A* Tue Feb 19 2008 - darren.kenny@sun.com
18861N/A- Rename spec-file to match ARC-ed package name (and community name) of
18861N/A mysql-python. Also ensure that it's looking at the /usr/mysql SUNWmysql5u
18861N/A packages rather than the sfw version.
18861N/A* Tue Feb 12 2008 - dermot.mccluskey@sun.com
18861N/A- initial version
19375N/A
19692N/A