2020-09-07 14:56:53 +08:00
|
|
|
Summary: This is a tool for automatically tracking upstream repository code patches
|
|
|
|
|
Name: patch-tracking
|
2020-09-07 18:52:05 +08:00
|
|
|
Version: 1.0.1
|
2024-05-07 03:32:42 +08:00
|
|
|
Release: 6
|
2020-09-07 14:56:53 +08:00
|
|
|
License: Mulan PSL v2
|
|
|
|
|
URL: https://gitee.com/openeuler/openEuler-Advisor
|
2020-09-07 21:22:37 +08:00
|
|
|
Source0: patch-tracking-%{version}.tar
|
2024-05-07 03:32:42 +08:00
|
|
|
Patch0: 0001-fix-uwsgi-path-not-found-issue.patch
|
2024-04-17 09:08:35 +08:00
|
|
|
|
2020-09-07 14:56:53 +08:00
|
|
|
BuildArch: noarch
|
2020-08-13 12:41:23 +08:00
|
|
|
|
2022-02-22 19:09:10 +08:00
|
|
|
BuildRequires: python3-setuptools systemd
|
2023-02-28 15:36:49 +08:00
|
|
|
Requires: python3-uWSGI python3-flask python3-Flask-SQLAlchemy python3-pandas
|
|
|
|
|
Requires: python3-Flask-APScheduler python3-Flask-HTTPAuth python3-requests git
|
2020-08-13 12:41:23 +08:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This is a tool for automatically tracking upstream repository code patches
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-09-07 18:52:05 +08:00
|
|
|
%setup -n patch-tracking-%{version}
|
2022-03-07 20:17:31 +08:00
|
|
|
%patch0 -p1
|
2020-08-13 12:41:23 +08:00
|
|
|
|
|
|
|
|
%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
|
2020-09-07 14:39:13 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-05-07 03:32:42 +08:00
|
|
|
* 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
|
|
|
|
|
|
2024-04-17 09:08:35 +08:00
|
|
|
* 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
|
|
|
|
|
|
2023-02-28 15:36:49 +08:00
|
|
|
* Tue Feb 28 2023 liheavy <lihaiwei8@huawei.com> - 1.0.1-4
|
|
|
|
|
- Add ReadMe and add install Requires
|
|
|
|
|
|
2022-03-07 20:17:31 +08:00
|
|
|
* Mon Mar 07 2022 liheavy <lihaiwei8@huawei.com> - 1.0.1-3
|
|
|
|
|
- Fix the problem that startup failed because A could not be found
|
|
|
|
|
|
2022-02-22 19:09:10 +08:00
|
|
|
* 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
|
|
|
|
|
|
2020-09-07 18:52:05 +08:00
|
|
|
* Mon Sep 07 2020 chenyanpan <chenyanpan@huawei.com> - 1.0.1-1
|
2020-09-07 14:39:13 +08:00
|
|
|
- Type: bugfix
|
2020-09-07 18:52:05 +08:00
|
|
|
- DESC: fixed issues related to the validity of service configuration items and command line parameters
|