c8d1131
%global srcname editorconfig
c8d1131
%global sum A Python Based distribution of EditorConfig
c8d1131
c8d1131
Name:           python-%{srcname}
c8d1131
Version:        0.12.0
c1aed0f
Release:        19%{?dist}
c8d1131
Summary:        %{sum}
c8d1131
c8d1131
License:        Python and BSD
c8d1131
URL:            http://editorconfig.org
c8d1131
Source0:        https://github.com/editorconfig/editorconfig-core-py/archive/v0.12.0.tar.gz#/%{name}-%{version}.tar.gz
c8d1131
c8d1131
BuildArch:      noarch
655d135
BuildRequires:  python3-sphinx
c8d1131
BuildRequires:  python3-devel
c8d1131
c8d1131
%description
c8d1131
EditorConfig Python Core provides the same functionality as the EditorConfig C
c8d1131
Core. EditorConfig Python core can be used as a an importable library.
c8d1131
c8d1131
%package     -n python3-%{srcname}
c8d1131
Summary:        %{sum}
c8d1131
%{?python_provide:%python_provide python3-%{srcname}}
c8d1131
c8d1131
%description -n python3-%{srcname}
c8d1131
EditorConfig Python Core provides the same functionality as the EditorConfig C
c8d1131
Core. EditorConfig Python core can be used as a an importable library.
c8d1131
c8d1131
%prep
655d135
%setup -qn %{srcname}-core-py-%{version}
c8d1131
c8d1131
c8d1131
%build
c8d1131
%{py3_build}
c8d1131
cd docs
655d135
make SPHINXBUILD=sphinx-build-3 text
c8d1131
c8d1131
%install
c8d1131
%{py3_install}
c8d1131
mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/python3-%{srcname}
c8d1131
cp docs/_build/text/* $RPM_BUILD_ROOT%{_defaultdocdir}/python3-%{srcname}/
c8d1131
c8d1131
c8d1131
# EditorConfig C already places the official binary into /usr/bin.
c8d1131
rm $RPM_BUILD_ROOT%{_bindir}/%{srcname}
c8d1131
c8d1131
c8d1131
%files -n python3-%{srcname}
655d135
%doc README.rst
655d135
%license LICENSE.txt
c8d1131
%{python3_sitelib}/*
c8d1131
%{_defaultdocdir}/python3-%{srcname}/*
c8d1131
c8d1131
c8d1131
%changelog
c1aed0f
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-19
c1aed0f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c1aed0f
4163833
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.12.0-18
4163833
- Rebuilt for Python 3.9
4163833
9b39f21
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-17
9b39f21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
9b39f21
fc086bd
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.12.0-16
fc086bd
- Rebuilt for Python 3.8.0rc1 (#1748018)
fc086bd
231bf47
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.12.0-15
231bf47
- Rebuilt for Python 3.8
231bf47
cc4d6b6
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-14
cc4d6b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
cc4d6b6
7e0b509
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-13
7e0b509
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
7e0b509
655d135
* Wed Oct 31 2018 Miro Hrončok <mhroncok@redhat.com> - 0.12.0-12
655d135
- Subpackage python2-editorconfig has been removed
655d135
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
655d135
932b94c
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-11
932b94c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
932b94c
1c5d9e1
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.12.0-10
1c5d9e1
- Rebuilt for Python 3.7
1c5d9e1
b8ccc04
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-9
b8ccc04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b8ccc04
9a60c1f
* Tue Jan 16 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.12.0-8
9a60c1f
- Update Python 2 dependency declarations to new packaging standards
9a60c1f
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
9a60c1f
d300715
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-7
d300715
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d300715
d4ced04
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-6
d4ced04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d4ced04
9ff8c7d
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.12.0-5
9ff8c7d
- Rebuild for Python 3.6
9ff8c7d
1565321
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.0-4
1565321
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
1565321
c8d1131
* Tue Feb 23 2016 Dennis Chen <barracks510@gmail.com> - 0.12.0-2
c8d1131
- Simplify python package.
c8d1131
c8d1131
* Thu Jan 21 2016 Dennis Chen <barracks510@gmail.com> - 0.12.0-2
c8d1131
- Remove misleading comments and macros.
c8d1131
c8d1131
* Sun Jan 17 2016 Dennis Chen <barracks510@gmail.com> - 0.12.0-1
c8d1131
- First Fedora Packaging.