From 929e83b6444533573be6c77436ad0196b1d9df2a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 11:18:42 +0100 Subject: [PATCH] package created using the webbuild interface [release 5.7.0-1mamba;Thu Jan 21 2021] --- README.md | 2 ++ python-isort.spec | 49 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 python-isort.spec diff --git a/README.md b/README.md index efcd3b9..cf28610 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-isort +A Python utility / library to sort imports alphabetically, and automatically separated into sections and by type. + diff --git a/python-isort.spec b/python-isort.spec new file mode 100644 index 0000000..ede341f --- /dev/null +++ b/python-isort.spec @@ -0,0 +1,49 @@ +Name: python-isort +Version: 5.7.0 +Release: 1mamba +Summary: A Python utility / library to sort imports alphabetically, and automatically separated into sections and by type +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://pypi.org/project/isort/ +Source: https://pypi.debian.net/isort/isort-%{version}.tar.gz +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: python3 +## AUTOBUILDREQ-END +BuildRequires: libpython-devel +Requires: python >= %python_version +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n isort-%{version} + +%build +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{python_inc} \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +sed -i "s,.*/man/.*,&.gz," %{name}.filelist + +%files %{?pyappend} -f %{name}.filelist +%defattr(-,root,root) +%doc LICENSE + +%changelog +* Thu Jan 21 2021 Silvan Calarco 5.7.0-1mamba +- package created using the webbuild interface