Modify compilation method and remove the adaptation to setup.py
This commit is contained in:
parent
661fccbe3a
commit
146434e227
@ -1,17 +0,0 @@
|
|||||||
--- c/setup.py 1970-01-01 08:00:00.000000000 +0800
|
|
||||||
+++ a/setup.py 2022-12-06 09:22:10.203917839 +0800
|
|
||||||
@@ -0,0 +1,14 @@
|
|
||||||
+#!/usr/bin/env python
|
|
||||||
+
|
|
||||||
+try:
|
|
||||||
+ from setuptools import setup
|
|
||||||
+except ImportError:
|
|
||||||
+ from distutils.core import setup
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+setup(
|
|
||||||
+ name="tabulate",
|
|
||||||
+ version="0.9.0",
|
|
||||||
+ py_modules=["tabulate"],
|
|
||||||
+ entry_points={"console_scripts": ["tabulate = tabulate:_main"]}
|
|
||||||
+)
|
|
||||||
@ -1,12 +1,11 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-tabulate
|
Name: python-tabulate
|
||||||
Version: 0.9.0
|
Version: 0.9.0
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Pretty-print tabular data
|
Summary: Pretty-print tabular data
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/astanin/python-tabulate
|
URL: https://github.com/astanin/python-tabulate
|
||||||
Source0: https://files.pythonhosted.org/packages/ec/fe/802052aecb21e3797b8f7902564ab6ea0d60ff8ca23952079064155d1ae1/tabulate-0.9.0.tar.gz
|
Source0: https://files.pythonhosted.org/packages/ec/fe/802052aecb21e3797b8f7902564ab6ea0d60ff8ca23952079064155d1ae1/tabulate-0.9.0.tar.gz
|
||||||
Patch0: 0001-add-setup.py.patch
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -27,6 +26,8 @@ Provides: python-tabulate = %{version}-%{release}
|
|||||||
# Base build requires
|
# Base build requires
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-pip python3-wheel
|
||||||
|
BuildRequires: python3-hatchling python3-hatch-vcs
|
||||||
# General requires
|
# General requires
|
||||||
BuildRequires: python3-wcwidth
|
BuildRequires: python3-wcwidth
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python3-pytest
|
||||||
@ -58,13 +59,13 @@ The main use cases of the library are:
|
|||||||
decimal point
|
decimal point
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n tabulate-%{version}
|
%autosetup -n tabulate-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install tabulate==%{version}
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||||
@ -99,11 +100,15 @@ PYTHONPATH=. pytest
|
|||||||
|
|
||||||
%files -n python3-tabulate -f filelist.lst
|
%files -n python3-tabulate -f filelist.lst
|
||||||
%dir %{python3_sitelib}/*
|
%dir %{python3_sitelib}/*
|
||||||
|
%{python3_sitelib}/tabulate/__pycache__/*
|
||||||
|
|
||||||
%files help -f doclist.lst
|
%files help -f doclist.lst
|
||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 09 2023 yaoxin <yao_xin@hoperun.com> - 0.9.0-2
|
||||||
|
- Modify compilation method and remove the adaptation to setup.py
|
||||||
|
|
||||||
* Mon Dec 05 2022 wangjunqi <wangjunqi@kylinos.cn> - 0.9.0-1
|
* Mon Dec 05 2022 wangjunqi <wangjunqi@kylinos.cn> - 0.9.0-1
|
||||||
- Update package to version 0.9.0
|
- Update package to version 0.9.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user