gala-ragdoll/gala-ragdoll.spec
2023-11-09 16:41:39 +08:00

90 lines
2.2 KiB
RPMSpec

Name: gala-ragdoll
Version: v1.4.1
Release: 3
Summary: Configuration traceability
License: MulanPSL2
URL: https://gitee.com/openeuler/%{name}
Source0: %{name}-%{version}.tar.gz
Patch0001: 0001-fix-text-file-sync-bug.patch
Patch0002: 0002-deal-request-connection-error.patch
%global debug_package %{nil}
BuildRequires: python3-setuptools python3-connexion python3-werkzeug python3-libyang
BuildRequires: git python3-devel systemd python3-concurrent-log-handler
Requires: python3-gala-ragdoll = %{version}-%{release} python3-concurrent-log-handler
%description
An os-level configuration management service
%package -n python3-gala-ragdoll
Summary: python3 pakcage of gala-ragdoll
Requires: python3-flask-testing python3-libyang git
Requires: python3-werkzeug python3-connexion python3-swagger-ui-bundle
%description -n python3-gala-ragdoll
python3 pakcage of gala-ragdoll
%prep
%autosetup -n %{name}-%{version} -p1
%build
#build for gala-ragdoll
%py3_build
%install
#install for gala-ragdoll
%py3_install
install yang_modules/*.yang %{buildroot}/%{python3_sitelib}/yang_modules/
mkdir -p %{buildroot}/%{_sysconfdir}/ragdoll
install config/*.conf %{buildroot}/%{_sysconfdir}/ragdoll/
mkdir %{buildroot}/%{python3_sitelib}/ragdoll/config
install config/*.conf %{buildroot}/%{python3_sitelib}/ragdoll/config
mkdir -p %{buildroot}/%{_prefix}/lib/systemd/system
install service/gala-ragdoll.service %{buildroot}/%{_prefix}/lib/systemd/system
%pre
if [ -f "%{systemd_dir}/gala-ragdoll.service" ] ; then
systemctl enable gala-ragdoll.service || :
fi
%post
%systemd_post gala-ragdoll.service
%preun
%systemd_preun gala-ragdoll.service
%postun
%systemd_postun gala-ragdoll.service
%files
%doc doc/*
%license LICENSE
/%{_sysconfdir}/ragdoll/gala-ragdoll.conf
%{_bindir}/ragdoll
%{_prefix}/lib/systemd/system/gala-ragdoll.service
%files -n python3-gala-ragdoll
%{python3_sitelib}/ragdoll/*
%{python3_sitelib}/yang_modules
%{python3_sitelib}/ragdoll-*.egg-info
%changelog
* Thu Nov 9 2023 smjiao<smjiao@isoftstone.com> - v1.4.1-3
- deal request connection error
* Wed Nov 8 2023 smjiao<smjiao@isoftstone.com> - v1.4.1-2
- fix text file sync bug
* Wed Oct 25 2023 zhangdaolong<dlzhangak@isoftstone.com> - v1.4.1-1
- gala-ragdoll src init