blob: 2baa916a7e581ce94b0c9d27126aae4723fef252 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
Name: pyporter
Version: 1.1
Release: 2
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 libstdc++-devel python3-cffi python3-hatchling python3-hatch-vcs openEuler-rpm-config setuptools
Requires: gcc gdb libstdc++-devel python3-cffi setuptools
%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-v%{version} -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 Aug 04 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.0-2
- DESC: delete BuildRequires gdb
* Wed Nov 4 2020 sunchendong<sunchendong@huawei.com> -1.0-1
- Type:NA
- ID:NA
- SUG:NA
- DESC:init package
|