6 Star 0 Fork 4

src-openEuler/patch-tracking

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
patch-tracking.spec 2.39 KB
一键复制 编辑 原始数据 按行查看 历史
hanjinpeng 提交于 2024-05-08 17:30 . fix uwsgi path not found issue
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/patch-tracking.git
git@gitee.com:src-openeuler/patch-tracking.git
src-openeuler
patch-tracking
patch-tracking
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385