Blame SPECS/PyYAML.spec

5afb09
%{?scl:%scl_package PyYAML}
5afb09
%{!?scl:%global pkg_name %{name}}
5afb09
5afb09
Name:           %{?scl_prefix}PyYAML
5afb09
Version:        3.12
5afb09
Release:        1%{?dist}
5afb09
Summary:        YAML parser and emitter for Python
5afb09
5afb09
Group:          Development/Libraries
5afb09
License:        MIT
5afb09
URL:            http://pyyaml.org/
5afb09
Source0:        http://pyyaml.org/download/pyyaml/%{pkg_name}-%{version}.tar.gz
5afb09
BuildRequires:  %{?scl_prefix}python-devel
5afb09
BuildRequires:  %{?scl_prefix}python-setuptools
5afb09
BuildRequires:  libyaml-devel
5afb09
Provides:       %{?scl_prefix}python-yaml = %{version}-%{release}
5afb09
Provides:       %{?scl_prefix}python-yaml%{?_isa} = %{version}-%{release}
5afb09
5afb09
%{?scl:Requires: %{scl}-runtime}
5afb09
%{?scl:BuildRequires: %{scl}-runtime}
5afb09
5afb09
%description
5afb09
YAML is a data serialization format designed for human readability and
5afb09
interaction with scripting languages.  PyYAML is a YAML parser and
5afb09
emitter for Python.
5afb09
5afb09
PyYAML features a complete YAML 1.1 parser, Unicode support, pickle
5afb09
support, capable extension API, and sensible error messages.  PyYAML
5afb09
supports standard YAML tags and provides Python-specific tags that
5afb09
allow to represent an arbitrary Python object.
5afb09
5afb09
PyYAML is applicable for a broad range of tasks from complex
5afb09
configuration files to object serialization and persistance.
5afb09
5afb09
%prep
5afb09
%setup -q -n %{pkg_name}-%{version}
5afb09
chmod a-x examples/yaml-highlight/yaml_hl.py
5afb09
5afb09
# Remove shebang from yaml_hl.py
5afb09
sed -i 's|#!/usr/bin/python||' examples/yaml-highlight/yaml_hl.py
5afb09
5afb09
%build
5afb09
%{?scl:scl enable %{scl} - << \EOF}
5afb09
CFLAGS="${RPM_OPT_FLAGS}" %{__python} setup.py --with-libyaml build
5afb09
%{?scl:EOF}
5afb09
5afb09
%install
5afb09
rm -rf %{buildroot}
5afb09
%{?scl:scl enable %{scl} - << \EOF}
5afb09
%{__python} setup.py install -O1 --skip-build --root %{buildroot} \
5afb09
    --install-purelib %{python_sitelib} \
5afb09
    --install-platlib %{python_sitearch}
5afb09
%{?scl:EOF}
5afb09
5afb09
%check
5afb09
%{?scl:scl enable %{scl} - << \EOF}
5afb09
%{__python} setup.py test
5afb09
%{?scl:EOF}
5afb09
5afb09
%files
5afb09
%defattr(644,root,root,755)
5afb09
%doc CHANGES LICENSE PKG-INFO README examples
5afb09
%{python_sitearch}/*
5afb09
5afb09
%changelog
5afb09
* Thu Jun 15 2017 Tomas Orsava <torsava@redhat.com> - 3.12-1
5afb09
- Updated to the current Fedora version
5afb09
- Removed Patch 0 as it is already patched in 3.12:
5afb09
  http://pyyaml.org/ticket/247
5afb09
5afb09
* Mon Apr 25 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.10-14
5afb09
- Remove shebang from yaml_hl.py example file
5afb09
Resolves: rhbz#1330146
5afb09
5afb09
* Fri Feb 12 2016 Robert Kuska <rkuska@redhat.com> - 3.10-13
5afb09
- Rebuilt for python27 rhscl
5afb09
5afb09
* Thu May 22 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 3.10-12
5afb09
- Rebuilt for devassist09
5afb09
- Don't regenerate cython .pyx files to avoid Cython dependency
5afb09
5afb09
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 3.10-11
5afb09
- Mass rebuild 2014-01-24
5afb09
5afb09
* Tue Jan  7 2014 John Eckersberg <jeckersb@redhat.com> - 3.10-10
5afb09
- Add patch to fix build issue on s390x (bz1048898)
5afb09
5afb09
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.10-9
5afb09
- Mass rebuild 2013-12-27
5afb09
5afb09
* Thu Aug  8 2013 John Eckersberg <jeckersb@redhat.com> - 3.10-8
5afb09
- Add check section and run test suite
5afb09
5afb09
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.10-7
5afb09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5afb09
5afb09
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 3.10-6
5afb09
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
5afb09
5afb09
* Wed Aug  1 2012 David Malcolm <dmalcolm@redhat.com> - 3.10-5
5afb09
- remove rhel logic from with_python3 conditional
5afb09
5afb09
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.10-4
5afb09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5afb09
5afb09
* Fri Apr 27 2012 John Eckersberg <jeckersb@redhat.com> - 3.10-3
5afb09
- Add Provides for python-yaml (BZ#740390)
5afb09
5afb09
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.10-2
5afb09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5afb09
5afb09
* Thu Jun 23 2011 John Eckersberg <jeckersb@redhat.com> - 3.10-1
5afb09
- New upstream release 3.10
5afb09
5afb09
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.09-8
5afb09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5afb09
5afb09
* Wed Feb  2 2011 John Eckersberg <jeckersb@redhat.com> - 3.09-7
5afb09
- Add support to build for python 3
5afb09
5afb09
* Tue Jul 27 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 3.09-6
5afb09
- Bump release number for upgrade path
5afb09
5afb09
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.09-3
5afb09
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
5afb09
5afb09
* Fri Oct 02 2009 John Eckersberg <jeckersb@redhat.com> - 3.09-1
5afb09
- New upstream release 3.09
5afb09
5afb09
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.08-6
5afb09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5afb09
5afb09
* Wed Jul 22 2009 - John Eckersberg <jeckersb@redhat.com> - 3.08-5
5afb09
- Minor tweaks to spec file aligning with latest Fedora packaging guidelines
5afb09
- Enforce inclusion of libyaml in build with --with-libyaml option to setup.py
5afb09
- Deliver to %%{python_sitearch} instead of %%{python_sitelib} due to _yaml.so
5afb09
- Thanks to Gareth Armstrong <gareth.armstrong@hp.com>
5afb09
5afb09
* Tue Mar 3 2009 John Eckersberg <jeckersb@redhat.com> - 3.08-4
5afb09
- Correction, change libyaml to libyaml-devel in BuildRequires
5afb09
5afb09
* Mon Mar 2 2009 John Eckersberg <jeckersb@redhat.com> - 3.08-3
5afb09
- Add libyaml to BuildRequires
5afb09
5afb09
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.08-2
5afb09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
5afb09
5afb09
* Wed Feb 18 2009 John Eckersberg <jeckersb@redhat.com> - 3.08-1
5afb09
- New upstream release
5afb09
5afb09
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.06-2
5afb09
- Rebuild for Python 2.6
5afb09
5afb09
* Fri Oct 24 2008 John Eckersberg <jeckersb@redhat.com> - 3.06-1
5afb09
- New upstream release
5afb09
5afb09
* Wed Jan 02 2008 John Eckersberg <jeckersb@redhat.com> - 3.05-2
5afb09
- Remove explicit dependency on python >= 2.3
5afb09
- Remove executable on example script in docs
5afb09
5afb09
* Mon Dec 17 2007 John Eckersberg <jeckersb@redhat.com> - 3.05-1
5afb09
- Initial packaging for Fedora