Home | History | Annotate | Download | only in core
      1 #
      2 # spec file for package SUNWpython24-simplejson
      3 #
      4 # includes module(s): simplejson
      5 #
      6 # Copyright 2008 Sun Microsystems, Inc.
      7 # This file and all modifications and additions to the pristine
      8 # package are under the same license as the package itself.
      9 #
     10 %define owner yippi
     11 #
     12 %include Solaris.inc
     13 
     14 %define pythonver 2.4
     15 %define src_url         http://pypi.python.org/packages/source/s/simplejson
     16 %define src_name        simplejson
     17 
     18 %use simplejson = simplejson.spec
     19 
     20 Name:                   SUNWpython24-simplejson
     21 Summary:                JSON (Java Script Object Notation) encoder/decoder for Python 2.4
     22 URL:                    %{simplejson.url}
     23 Version:                %{simplejson.version}
     24 SUNW_BaseDir:           %{_basedir}
     25 SUNW_Copyright:         SUNWpython-simplejson.copyright
     26 BuildRoot:              %{_tmppath}/%{name}-%{version}-build
     27 
     28 %include default-depend.inc
     29 Requires:               SUNWPython
     30 BuildRequires:          SUNWPython-devel
     31 BuildRequires:          SUNWpython-setuptools
     32 
     33 %prep
     34 rm -rf %name-%version
     35 mkdir -p %name-%version
     36 %simplejson.prep -d %name-%version
     37 
     38 %build
     39 export PYTHON="/usr/bin/python%{pythonver}"
     40 export CFLAGS="%optflags -I/usr/xpg4/include -I%{_includedir} -I/usr/include/python%{pythonver}"
     41 export RPM_OPT_FLAGS="$CFLAGS"
     42 export LDFLAGS="%_ldflags"
     43 export PYCC_CC="$CC"
     44 export PYCC_CXX="$CXX"
     45 %simplejson.build -d %name-%version
     46 
     47 %install
     48 rm -rf $RPM_BUILD_ROOT
     49 %simplejson.install -d %name-%version
     50 
     51 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
     52 
     53 %clean
     54 rm -rf $RPM_BUILD_ROOT
     55 
     56 %files
     57 %defattr (-, root, bin)
     58 %dir %attr (0755, root, bin) %{_libdir}
     59 %{_libdir}/python%{pythonver}/vendor-packages
     60 %doc(bzip2) -d simplejson-%{simplejson.version} LICENSE.txt
     61 %dir %attr (0755, root, sys) %{_datadir}
     62 %dir %attr (0755, root, other) %{_datadir}/doc
     63 
     64 %changelog
     65 * Wed Dec 03 2008 - brian.cameron@sun.com
     66 - Rename to SUNWpython24-simplejson.
     67 * Mon Nov 24 2008 - brian.cameron@sun.com
     68 - Initial version 2.0.4.
     69