代码拉取完成,页面将自动刷新
Summary: This is a tool for automatically tracking upstream repository code patches
Name: patch-tracking
Version: 1.0.1
Release: 6
License: Mulan PSL v2
URL: https://gitee.com/openeuler/openEuler-Advisor
Source0: patch-tracking-%{version}.tar
Patch0: 0001-fix-uwsgi-path-not-found-issue.patch
BuildArch: noarch
BuildRequires: python3-setuptools systemd
Requires: python3-uWSGI python3-flask python3-Flask-SQLAlchemy python3-pandas
Requires: python3-Flask-APScheduler python3-Flask-HTTPAuth python3-requests git
%description
This is a tool for automatically tracking upstream repository code patches
%prep
%setup -n patch-tracking-%{version}
%patch0 -p1
%build
%py3_build
%install
%py3_install
%post
sed -i "s|\blogging.conf\b|/etc/patch-tracking/logging.conf|" %{python3_sitelib}/patch_tracking/app.py
sed -i "s|\bsqlite:///db.sqlite\b|sqlite:////var/patch-tracking/db.sqlite|" %{python3_sitelib}/patch_tracking/app.py
sed -i "s|\bsettings.conf\b|/etc/patch-tracking/settings.conf|" %{python3_sitelib}/patch_tracking/app.py
chmod +x /usr/bin/patch-tracking-cli
chmod +x /usr/bin/patch-tracking
chmod +x /usr/bin/generate_password
sed -i "s|\bpatch-tracking.log\b|/var/log/patch-tracking.log|" /etc/patch-tracking/logging.conf
%preun
%systemd_preun patch-tracking.service
%clean
rm -rf $RPM_BUILD_ROOT
%files
%{python3_sitelib}/*
/etc/patch-tracking/logging.conf
/etc/patch-tracking/settings.conf
/usr/bin/patch-tracking
/usr/bin/patch-tracking-cli
/var/patch-tracking/db.sqlite
/usr/bin/generate_password
/usr/lib/systemd/system/patch-tracking.service
%changelog
* Tue May 7 2024 Han Jinpeng <hanjinpeng@kylinos.cn> - 1.0.1-6
- Fix uwsgi not found issue, Use the path environment variable to run the uwsgi command
* Wed Apr 17 2024 Han Jinpeng <hanjinpeng@kylinos.cn> - 1.0.1-5
- Fix uwsgi path issue to ensure patch-tracking service start up success
* Tue Feb 28 2023 liheavy <lihaiwei8@huawei.com> - 1.0.1-4
- Add ReadMe and add install Requires
* Mon Mar 07 2022 liheavy <lihaiwei8@huawei.com> - 1.0.1-3
- Fix the problem that startup failed because A could not be found
* Tue Feb 22 2022 liheavy <lihaiwei8@huawei.com> - 1.0.1-2
- Fix the problem that the uninstallation fails due to not recognizing systemd_preun
* Mon Sep 07 2020 chenyanpan <chenyanpan@huawei.com> - 1.0.1-1
- Type: bugfix
- DESC: fixed issues related to the validity of service configuration items and command line parameters
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。