diff --git a/python-editorconfig-0.12.0.tar.gz b/python-editorconfig-0.12.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..efb725b8baec50f0273c01fe80c50fc4521e4180 Binary files /dev/null and b/python-editorconfig-0.12.0.tar.gz differ diff --git a/python-editorconfig.spec b/python-editorconfig.spec new file mode 100644 index 0000000000000000000000000000000000000000..be45e3f6229468dcec698aad1d2582c6cee8c893 --- /dev/null +++ b/python-editorconfig.spec @@ -0,0 +1,58 @@ +%global srcname editorconfig +%global sum A Python Based distribution of EditorConfig + +Name: python-%{srcname} +Version: 0.12.0 +Release: 1%{?dist} +Summary: %{sum} + +License: Python and BSD +URL: http://editorconfig.org +Source0: https://github.com/editorconfig/editorconfig-core-py/archive/v0.12.0.tar.gz#/%{name}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: make +BuildRequires: python3-sphinx +BuildRequires: python3-devel + +%description +EditorConfig Python Core provides the same functionality as the EditorConfig C +Core. EditorConfig Python core can be used as a an importable library. + +%package -n python3-%{srcname} +Summary: %{sum} +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +EditorConfig Python Core provides the same functionality as the EditorConfig C +Core. EditorConfig Python core can be used as a an importable library. + +%prep +%setup -qn %{srcname}-core-py-%{version} + + +%build +%{py3_build} +cd docs +make SPHINXBUILD=sphinx-build-3 text + +%install +%{py3_install} +mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/python3-%{srcname} +cp docs/_build/text/* $RPM_BUILD_ROOT%{_defaultdocdir}/python3-%{srcname}/ + + +# EditorConfig C already places the official binary into /usr/bin. +rm $RPM_BUILD_ROOT%{_bindir}/%{srcname} + + +%files -n python3-%{srcname} +%doc README.rst +%license LICENSE.txt +%{python3_sitelib}/* +%{_defaultdocdir}/python3-%{srcname}/* + + +%changelog +* Mon Jun 28 2021 CaiYuxin - 0.12.0-1 +- init project