config/config-gate/opensuse/config-gate.spec
Saul Wold 9bdfbe8942 Update opensuse RPM spec-file version to 1.0.0
Standardize the version numbering to X.Y.Z

Story: 2006623
Task: 37134
Change-Id: I13b320ed57840064e2bca3cdf8aa7f2f2b1534c8
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2019-10-16 14:54:29 -07:00

60 lines
1.2 KiB
RPMSpec

Summary: General config initialization gate
Name: config-gate
Version: 1.0.0
Release: 1
License: Apache-2.0
Group: Development/Tools/Other
URL: https://opendev.org/starlingx/config
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: systemd
%define debug_package %{nil}
%description
General configuration for the initialization gate
%package -n %{name}-worker
Summary: Startup configuration gate
BuildRequires: -devel
Group: Development/Tools/Other
%description -n %{name}-worker
General configuration for the initialization gate
%define local_etc_systemd /etc/systemd/system/
%prep
%setup -n %{name}-%{version}/files
%build
%install
make install SBINDIR=%{buildroot}%{_sbindir} SYSTEMDDIR=%{buildroot}%{local_etc_systemd}
%post
%service_add_post config.service config.target
%post -n %{name}-worker
systemctl enable worker-config-gate.service
%clean
%files
%defattr(-,root,root,-)
%doc LICENSE
%{_sbindir}/wait_for_config_init.sh
%{local_etc_systemd}/config.service
%dir %{_sysconfdir}/systemd
%dir %{_sysconfdir}/systemd/system
%files -n %{name}-worker
%defattr(-,root,root,-)
%{_sbindir}/wait_for_worker_config_init.sh
%{local_etc_systemd}/worker-config-gate.service
%dir %{_sysconfdir}/systemd
%dir %{_sysconfdir}/systemd/system
%changelog