18861N/A#
18861N/A# spec file for package SUNWpython26-simplejson
18861N/A#
18861N/A# includes module(s): simplejson
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 yippi
18861N/A#
18861N/A%include Solaris.inc
18861N/A
18861N/A%define pythonver 2.6
18861N/A%define src_url http://pypi.python.org/packages/source/s/simplejson
18861N/A%define src_name simplejson
18861N/A
18861N/A%use simplejson = simplejson.spec
18861N/A
18861N/AName: SUNWpython26-simplejson
19013N/AIPS_package_name: library/python-2/simplejson-26
18861N/AMeta(info.classification): %{classification_prefix}:Development/Python
18861N/ASummary: JSON (Java Script Object Notation) encoder/decoder for Python %{pythonver}
18861N/ALicense: MIT
18861N/AURL: %{simplejson.url}
18861N/AVersion: %{simplejson.version}
18861N/ASUNW_BaseDir: %{_basedir}
18861N/ASUNW_Copyright: SUNWpython-simplejson.copyright
18861N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
18861N/A
18861N/A%include default-depend.inc
20857N/A%include desktop-incorporation.inc
20890N/ARequires: runtime/python-26
20890N/ABuildRequires: runtime/python-26
20890N/ABuildRequires: library/python-2/setuptools-26
18861N/A
18861N/A%prep
18861N/Arm -rf %name-%version
18861N/Amkdir -p %name-%version
18861N/A%simplejson.prep -d %name-%version
18861N/A
18861N/A%build
18861N/Aexport PYTHON="/usr/bin/python%{pythonver}"
18861N/Aexport CFLAGS="%optflags -I/usr/xpg4/include -I%{_includedir} -I/usr/include/python%{pythonver}"
18861N/Aexport RPM_OPT_FLAGS="$CFLAGS"
18861N/Aexport LDFLAGS="%_ldflags"
18861N/Aexport PYCC_CC="$CC"
18861N/Aexport PYCC_CXX="$CXX"
18861N/A%simplejson.build -d %name-%version
18861N/A
18861N/A%install
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/A%simplejson.install -d %name-%version
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%{pythonver}/vendor-packages
18861N/A%doc(bzip2) -d simplejson-%{simplejson.version} LICENSE.txt
18861N/A%dir %attr (0755, root, sys) %{_datadir}
18861N/A%dir %attr (0755, root, other) %{_datadir}/doc
18861N/A
18861N/A%changelog
20890N/A* Fri Feb 10 2012 - padraig.obriain@oracle.com
20890N/A- Update Requires and BuildRequires to be IPS package names.
18861N/A* Thu Feb 12 2009 - brian.cameron@sun.com
18861N/A- created 2.6 version based on SUNWpython-simplejson.spec.
18861N/A* Mon Nov 24 2008 - brian.cameron@sun.com
18861N/A- Initial version 2.0.4.
19419N/A
19736N/A