!9 细化changelog,优化针对pyinstaller的处理

Merge pull request !9 from 薄皮小笼包/master
This commit is contained in:
openeuler-ci-bot 2020-08-31 23:11:40 +08:00 committed by Gitee
commit 88c1db882f
2 changed files with 11 additions and 6 deletions

Binary file not shown.

View File

@ -1,6 +1,6 @@
Name: pkgship
Version: 1.1.0
Release: 0
Release: 1
Summary: Pkgship implements rpm package dependence ,maintainer, patch query and so no.
License: Mulan 2.0
URL: https://gitee.com/openeuler/openEuler-Advisor
@ -30,6 +30,7 @@ Pkgship implements rpm package dependence ,maintainer, patch query and so no.
%check
# The apscheduler cannot catch the local time, so a time zone must be assigned before running the test case.
export TZ=Asia/Shanghai
# change log_path to solve default log_path permission denied problem
log_path=`pwd`/tmp/
@ -48,16 +49,17 @@ fi
cd %{python3_sitelib}/packageship/
if [ -f "/usr/bin/pyinstaller" ]; then
/usr/bin/pyinstaller -F pkgship.py
path=/usr/bin/pyinstaller
elif [ -f "/usr/local/bin/pyinstaller" ]; then
/usr/local/bin/pyinstaller -F pkgship.py
path=/usr/local/bin/pyinstaller
else
echo "pkship install fail,there is no pyinstaller!"
exit
fi
$path -F pkgship.py
sed -i "s/hiddenimports\=\[\]/hiddenimports\=\['pkg_resources.py2_warn'\]/g" pkgship.spec
/usr/local/bin/pyinstaller pkgship.spec
$path pkgship.spec
cp dist/pkgship /usr/bin/
rm -rf %{python3_sitelib}/packageship/build %{python3_sitelib}/packageship/dist
@ -72,8 +74,11 @@ rm -rf %{python3_sitelib}/packageship/build %{python3_sitelib}/packageship/dist
%changelog
* Sat Aug 29 2020 Yiru Wang <wangyiru1@huawei.com> - 1.1.0-0
- Add the RPM package life cycle and issue summary features, adding the requires
* Sat Aug 29 2020 Yiru Wang <wangyiru1@huawei.com> - 1.1.0-1
- Add package management features:
RPM packages statically displayed in the version repository
RPM packages used time displayed for current version in the version repository
Issue management of packages in a version-management repository
* Fri Aug 21 2020 Chengqiang Bao < baochengqiang1@huawei.com > - 1.0.0-7
- Fixed a problem with command line initialization of the Filepath parameter where relative paths are not supported and paths are too long