add packaging
authorAnas Nashif <anas.nashif@intel.com>
Fri, 9 Nov 2012 20:18:33 +0000 (12:18 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Fri, 9 Nov 2012 20:18:33 +0000 (12:18 -0800)
packaging/python-PyYAML.spec [new file with mode: 0644]

diff --git a/packaging/python-PyYAML.spec b/packaging/python-PyYAML.spec
new file mode 100644 (file)
index 0000000..f941042
--- /dev/null
@@ -0,0 +1,45 @@
+Name:           python-PyYAML
+Version:        3.10
+Release:        0
+Url:            http://pyyaml.org/wiki/PyYAML
+Summary:        YAML parser and emitter for Python
+License:        MIT
+Group:          Development/Languages/Python
+Source:         http://pypi.python.org/packages/source/P/PyYAML/PyYAML-%{version}.tar.gz
+BuildRequires:  python-devel
+BuildRequires:  python-nose
+Provides:       python-yaml = %{version}
+Obsoletes:      python-yaml < %{version}
+
+%description
+YAML is a data serialization format designed for human readability
+and interaction with scripting languages.  PyYAML is a YAML parser
+and emitter for Python.
+
+PyYAML features a complete YAML 1.1 parser, Unicode support, pickle
+support, capable extension API, and sensible error messages.  PyYAML
+supports standard YAML tags and provides Python-specific tags that
+allow to represent an arbitrary Python object.
+
+PyYAML is applicable for a broad range of tasks from complex
+configuration files to object serialization and persistance.
+
+%prep
+%setup -q -n PyYAML-%{version}
+
+%build
+CFLAGS="%{optflags}" python setup.py build
+find examples -type f | xargs chmod -x # Fix example permissions
+
+%install
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+
+%check
+python setup.py test
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE
+%{python_sitearch}/*
+
+%changelog