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
|
|
|
|
|
Release: 1
|
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
|
2020-09-07 14:56:53 +08:00
|
|
|
BuildArch: noarch
|
2020-08-13 12:41:23 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
# Requires: python3.7 python3-flask python3-sqlalchemy python3-requests
|
|
|
|
|
|
|
|
|
|
%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}
|
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
|
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
|