1 Star 0 Fork 4

晨东 / pyporter

forked from src-openEuler / pyporter 
Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
pyporter.spec 1.44 KB
Copy Edit Web IDE Raw Blame History
晨东 authored 2020-11-30 14:55 . release 1.0
Name: pyporter
Version: 1.0
Release: 1
Summary: A rpm packager bot for python modules from pypi.org
License: Mulan PSL v2
URL: https://gitee.com/openeuler/pyporter
Source0: https://gitee.com/openeuler/pyporter/repository/archive/v%{version}.tar.gz
BuildArch: noarch
%description
pyporter is a tool to create spec file and create rpm for python modules For more details, please use pyporter -h.
BuildRequires: gcc gdb libstdc++-devel python3-cffi
Requires: gcc gdb libstdc++-devel python3-cffi
%package -n python3-pyporter
Summary: A rpm packager bot for python modules from pypi.org
%description -n python3-pyporter
pyporter is a tool to create spec file and create rpm for python modules.
%prep
%autosetup -n pyporter -p1
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
popd
mv %{buildroot}/filelist.lst .
%files -n python3-pyporter -f filelist.lst
%license LICENSE
%doc README.md
%dir %{python3_sitelib}/*
%changelog
* Wed Nov 4 2020 sunchendong<sunchendong@huawei.com> -1.0-1
- Type:NA
- ID:NA
- SUG:NA
- DESC:init package
1
https://git.oschina.net/chendong1995/pyporter.git
git@git.oschina.net:chendong1995/pyporter.git
chendong1995
pyporter
pyporter
master

Search