!9 细化changelog,优化针对pyinstaller的处理
Merge pull request !9 from 薄皮小笼包/master
This commit is contained in:
commit
88c1db882f
Binary file not shown.
17
pkgship.spec
17
pkgship.spec
@ -1,6 +1,6 @@
|
|||||||
Name: pkgship
|
Name: pkgship
|
||||||
Version: 1.1.0
|
Version: 1.1.0
|
||||||
Release: 0
|
Release: 1
|
||||||
Summary: Pkgship implements rpm package dependence ,maintainer, patch query and so no.
|
Summary: Pkgship implements rpm package dependence ,maintainer, patch query and so no.
|
||||||
License: Mulan 2.0
|
License: Mulan 2.0
|
||||||
URL: https://gitee.com/openeuler/openEuler-Advisor
|
URL: https://gitee.com/openeuler/openEuler-Advisor
|
||||||
@ -30,6 +30,7 @@ Pkgship implements rpm package dependence ,maintainer, patch query and so no.
|
|||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
# The apscheduler cannot catch the local time, so a time zone must be assigned before running the test case.
|
||||||
export TZ=Asia/Shanghai
|
export TZ=Asia/Shanghai
|
||||||
# change log_path to solve default log_path permission denied problem
|
# change log_path to solve default log_path permission denied problem
|
||||||
log_path=`pwd`/tmp/
|
log_path=`pwd`/tmp/
|
||||||
@ -48,16 +49,17 @@ fi
|
|||||||
|
|
||||||
cd %{python3_sitelib}/packageship/
|
cd %{python3_sitelib}/packageship/
|
||||||
if [ -f "/usr/bin/pyinstaller" ]; then
|
if [ -f "/usr/bin/pyinstaller" ]; then
|
||||||
/usr/bin/pyinstaller -F pkgship.py
|
path=/usr/bin/pyinstaller
|
||||||
elif [ -f "/usr/local/bin/pyinstaller" ]; then
|
elif [ -f "/usr/local/bin/pyinstaller" ]; then
|
||||||
/usr/local/bin/pyinstaller -F pkgship.py
|
path=/usr/local/bin/pyinstaller
|
||||||
else
|
else
|
||||||
echo "pkship install fail,there is no pyinstaller!"
|
echo "pkship install fail,there is no pyinstaller!"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
$path -F pkgship.py
|
||||||
sed -i "s/hiddenimports\=\[\]/hiddenimports\=\['pkg_resources.py2_warn'\]/g" pkgship.spec
|
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/
|
cp dist/pkgship /usr/bin/
|
||||||
rm -rf %{python3_sitelib}/packageship/build %{python3_sitelib}/packageship/dist
|
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
|
%changelog
|
||||||
* Sat Aug 29 2020 Yiru Wang <wangyiru1@huawei.com> - 1.1.0-0
|
* Sat Aug 29 2020 Yiru Wang <wangyiru1@huawei.com> - 1.1.0-1
|
||||||
- Add the RPM package life cycle and issue summary features, adding the requires
|
- 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
|
* 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
|
- Fixed a problem with command line initialization of the Filepath parameter where relative paths are not supported and paths are too long
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user