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.6
     15 %use pyyaml = pyyaml.spec
     16 
     17 Name:                    SUNWpyyaml26
     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:                SUNWPython26
     31 BuildRequires:           SUNWPython26
     32 BuildRequires:           SUNWpython26-setuptools
     33 
     34 %prep
     35 rm -rf %name-%version
     36 mkdir -p %name-%version
     37 %pyyaml.prep -d %name-%version
     38 
     39 %build
     40 %pyyaml.build -d %name-%version
     41 
     42 %install
     43 rm -rf $RPM_BUILD_ROOT
     44 %pyyaml.install -d %name-%version
     45 
     46 %clean
     47 rm -rf $RPM_BUILD_ROOT
     48 
     49 %files
     50 %defattr (-, root, bin)
     51 %dir %attr (0755, root, bin) %{_libdir}
     52 %{_libdir}/python%{pythonver}/vendor-packages/PyYAML-%{version}-py%{pythonver}.egg-info
     53 %{_libdir}/python%{pythonver}/vendor-packages/yaml/*
     54 %doc -d PyYAML-%{version} LICENSE README
     55 %dir %attr (0755, root, sys) %{_datadir}
     56 %dir %attr (0755, root, other) %{_datadir}/doc
     57 
     58 %changelog
     59 * Fri Mar 06 2009 - li.yuan@sun.com
     60 - Change owner name to liyuan.
     61 * Thu Feb 12 2009 - brian.cameron@sun.com
     62 - created 2.6 version based on SUNWpyyaml.spec.
     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