Blame python-yamlordereddictloader.spec

c7ff7e4
%global srcname yamlordereddictloader
c7ff7e4
%global sum YAML loader for PyYAML that maintains key order
c7ff7e4
c7ff7e4
Name:		python-%{srcname}
46cb98c
Version:	0.3.0
c0dc166
Release:	3%{?dist}
c7ff7e4
Summary:	%{sum}
c7ff7e4
c7ff7e4
License:	MIT
c7ff7e4
URL:		https://github.com/fmenabe/python-yamlordereddictloader
c7ff7e4
Source0:	https://files.pythonhosted.org/packages/source/y/%{srcname}/%{srcname}-%{version}.tar.gz
c7ff7e4
c7ff7e4
BuildRequires:	python2-devel
c7ff7e4
BuildRequires:	python3-devel
c7ff7e4
BuildRequires:	PyYAML
c7ff7e4
BuildRequires:	python3-PyYAML
c7ff7e4
c7ff7e4
BuildArch: noarch
c7ff7e4
c7ff7e4
%description
c7ff7e4
This is a loader for PyYAML that maintains the order of the keys
c7ff7e4
and values in a dictionary as they appear in the input file. This
c7ff7e4
can be useful for certain applications where named values should
c7ff7e4
also be maintained in a particular order
c7ff7e4
c7ff7e4
%package -n python2-%{srcname}
c7ff7e4
Summary:	%{sum}
c7ff7e4
Requires:	PyYAML
c7ff7e4
%{?python_provide:%python_provide python2-%{srcname}}
c7ff7e4
c7ff7e4
%description -n python2-%{srcname}
c7ff7e4
This is a loader for PyYAML that maintains the order of the keys
c7ff7e4
and values in a dictionary as they appear in the input file. This
c7ff7e4
can be useful for certain applications where named values should
c7ff7e4
also be maintained in a particular order
c7ff7e4
c7ff7e4
%package -n python3-%{srcname}
c7ff7e4
Summary:	%{sum}
c7ff7e4
Requires:	python3-PyYAML
c7ff7e4
%{?python_provide:%python_provide python3-%{srcname}}
c7ff7e4
c7ff7e4
%description -n python3-%{srcname}
c7ff7e4
This is a loader for PyYAML that maintains the order of the keys
c7ff7e4
and values in a dictionary as they appear in the input file. This
c7ff7e4
can be useful for certain applications where named values should
c7ff7e4
also be maintained in a particular order
c7ff7e4
c7ff7e4
%prep
c7ff7e4
%setup -q -n %{srcname}-%{version}
c7ff7e4
c7ff7e4
c7ff7e4
%build
c7ff7e4
%py2_build
c7ff7e4
%py3_build
c7ff7e4
c7ff7e4
c7ff7e4
%install
c7ff7e4
%py2_install
c7ff7e4
%py3_install
c7ff7e4
c7ff7e4
c7ff7e4
%files -n python2-%{srcname}
c7ff7e4
%doc README.rst
c7ff7e4
%license LICENSE.txt
c7ff7e4
%{python2_sitelib}/%{srcname}.py*
c7ff7e4
%{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info
c7ff7e4
c7ff7e4
%files -n python3-%{srcname}
c7ff7e4
%doc README.rst
c7ff7e4
%license LICENSE.txt
c7ff7e4
%{python3_sitelib}/%{srcname}.py*
c7ff7e4
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
c7ff7e4
%{python3_sitelib}/__pycache__/%{srcname}.cpython*pyc
c7ff7e4
c7ff7e4
c7ff7e4
%changelog
c0dc166
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-3
c0dc166
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c0dc166
19b23ce
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2
19b23ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
19b23ce
46cb98c
* Mon May 29 2017 Greg Hellings <greg.hellings@gmail.com> - 0.3.0-1
46cb98c
- New upstream version 0.3.0
46cb98c
c7ff7e4
* Thu Apr 20 2017 Greg Hellings <greg.hellings@gmail.com> - 0.2.2-2
c7ff7e4
- Removed outdated comments in spec file
c7ff7e4
c7ff7e4
* Thu Apr 20 2017 Greg Hellings <greg.hellings@gmail.com> - 0.2.2-1
c7ff7e4
- Upstream version 0.2.2
c7ff7e4
- Added new LICENSE from upstream to files
c7ff7e4
c7ff7e4
* Wed Apr 19 2017 Greg Hellings <greg.hellings@gmail.com> - 0.2.0-1
c7ff7e4
- Upstream version 0.2.0
c7ff7e4
- Added README.rst
c7ff7e4
- Added PyYAML/python3-PyYAML as requires
c7ff7e4
c7ff7e4
* Mon Apr 03 2017 Greg Hellings <greg.hellings@gmail.com> - 0.1.1-1
c7ff7e4
- Upstream version 0.1.1