Home | History | Annotate | Download | only in core
      1 #
      2 # spec file for package SUNWpyyaml
      3 #
      4 # includes module(s): pyyaml
      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 
     13 %include Solaris.inc
     14 %define pythonver 2.4
     15 %use pyyaml = pyyaml.spec
     16 
     17 Name:                    SUNWpyyaml24
     18 Summary:                 A YAML parser and emitter for the Python language
     19 URL:                     http://pyyaml.org/
     20 Version:                 %{pyyaml.version}
     21 License:		 MIT
     22 Distribution:		 Java Desktop System
     23 Vendor:			 Sun Microsystems, Inc.
     24 SUNW_BaseDir:		 %{_basedir}
     25 SUNW_Copyright:		 SUNWpyyaml.copyright
     26 Source:                  http://pyyaml.org/download/pyyaml/PyYAML-%{version}.tar.gz
     27 SUNW_BaseDir:            %{_basedir}
     28 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     29 %include default-depend.inc
     30 Requires:                SUNWPython
     31 BuildRequires:           SUNWPython
     32 BuildRequires:           SUNWpython-setuptools
     33 
     34 %prep
     35 rm -rf %name-%version
     36 mkdir -p %name-%version
     37 
     38 %pyyaml.prep -d %name-%version
     39 
     40 %build
     41 %pyyaml.build -d %name-%version
     42 
     43 
     44 %install
     45 rm -rf $RPM_BUILD_ROOT
     46 
     47 %pyyaml.install -d %name-%version
     48 
     49 %clean
     50 rm -rf $RPM_BUILD_ROOT
     51 
     52 %files
     53 %defattr (-, root, bin)
     54 %dir %attr (0755, root, bin) %{_libdir}
     55 %{_libdir}/python%{pythonver}/vendor-packages/yaml/*
     56 %doc -d PyYAML-%{version} LICENSE README
     57 %dir %attr (0755, root, sys) %{_datadir}
     58 %dir %attr (0755, root, other) %{_datadir}/doc
     59 
     60 %changelog
     61 * Fri Mar 06 2009 - li.yuan@sun.com
     62 - Change owner name to liyuan.
     63 * Fri Jan 09 2009 - jim.li@sun.com
     64 - Bump to 3.08
     65 * Mon Nov 21 2008 - jim.li@sun.com
     66 - add copyright
     67 - add license tag
     68 - rename SFEpyyaml to SUNWpyyaml
     69 * Fri Oct 31 2008 - brian.cameron@sun.com
     70 - Bump to 3.06.
     71 * Sat Apr 12 2008 - brian.cameron@sun.com
     72 - created with 3.05.
     73