1 Star 0 Fork 3

xuyonghui/python-py2pack

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-py2pack.spec 1.96 KB
一键复制 编辑 原始数据 按行查看 历史
xuyonghui 提交于 2021-07-20 10:45 . package init
%global with_python3 1
Name: python-py2pack
Version: 0.6.3
Release: 1
Url: http://github.com/saschpe/py2pack
Summary: Generate distribution packages from Python packages on PyPI
License: GPLv2
Source: https://pypi.io/packages/source/p/py2pack-0.6.3.tar.gz
BuildArch: noarch
%description
This script allows to generate RPM spec or DEB dsc files from Python modules.
It allows to list Python modules or search for them on the Python Package Index
(PyPI). Conveniently, it can fetch tarballs and change logs making it an
universal tool to package Python modules.
%if 0%{?with_python3}
%package -n python3-py2pack
Summary: General purpose template engine
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-jinja2
BuildRequires: python3-lxml
BuildRequires: python3-requests
BuildRequires: python3-six
BuildRequires: python3-cssselect
Requires: python3-jinja2
Requires: python3-lxml
Requires: python3-requests
Requires: python3-six
%{?python_provide:%python_provide python3-py2pack}
%description -n python3-py2pack
This script allows to generate RPM "spec" or DEB "dsc" files from Python modules.
It allows to list Python modules or search for them on the Python Package Index
(PyPI). Conveniently, it can fetch tarballs and change logs making it an
universal tool to package Python modules.
%endif
%prep
%setup -q -n py2pack-0.6.3
%build
%if 0%{?with_python3}
%py3_build
%endif
%install
%if 0%{?with_python3}
%py3_install
%endif
mkdir -p %{buildroot}/%{_mandir}/man1/
mv %{buildroot}/%{_prefix}/man/man1/py2pack.* %{buildroot}/%{_mandir}/man1/
rm -rf %{buildroot}/%{_docdir}/py2pack
%if 0%{?with_python3}
%files -n python3-py2pack
%license LICENSE
%doc AUTHORS README.rst
%doc doc/py2pack.html
%{python3_sitelib}/py2pack*
%{_mandir}/man1/py2pack.1.*
%{_bindir}/py2pack
%endif
%changelog
* Thu Jul 08 2021 xuyonghui <xuyonghui@kylinos.cn> - 0.6.3-1
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xuyonghui_kyllin/python-py2pack.git
git@gitee.com:xuyonghui_kyllin/python-py2pack.git
xuyonghui_kyllin
python-py2pack
python-py2pack
master

搜索帮助