1 Star 0 Fork 5

starlet_dx/python-littleutils

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
python-littleutils.spec 1.63 KB
一键复制 编辑 原始数据 按行查看 历史
starlet_dx 提交于 2025-01-21 17:19 +08:00 . Fix build error
%global pypi_name littleutils
%global _description %{expand:
Small collection of Python utilities.}
Name: python-%{pypi_name}
Version: 0.2.4
Release: 2
Summary: Small collection of Python utilities
License: MIT
URL: https://pypi.org/pypi/%{pypi_name}
Source0: %pypi_source
Source1: https://raw.githubusercontent.com/alexmojaki/littleutils/master/LICENSE
BuildArch: noarch
%{?python_enable_dependency_generator}
%description %_description
%package -n python3-%{pypi_name}
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-setuptools_scm
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name} %_description
%prep
%autosetup -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info
cp %{SOURCE1} . -vp
# Comment out to remove /usr/bin/env shebangs
# Can use something similar to correct/remove /usr/bin/python shebangs also
# find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';'
%build
%py3_build
%install
%py3_install
%check
# no tests
%files -n python3-%{pypi_name}
%license LICENSE
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/%{pypi_name}
%changelog
* Wed Jan 22 2025 yaoxin <1024769339@qq.com> - 0.2.4-2
- Fix build error
* Thu Nov 07 2024 panzhe <panzhe@kylinos.cn> - 0.2.4-1
- Update package to version 0.2.4
* Optimized regular expression
* Thu Jun 24 2021 wangxiaomeng <wangxiaomeng@kylinos.cn> - 0.2.2-1
- Initial package
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/starlet-dx/python-littleutils.git
git@gitee.com:starlet-dx/python-littleutils.git
starlet-dx
python-littleutils
python-littleutils
master

搜索帮助