-
Notifications
You must be signed in to change notification settings - Fork 0
/
robottelo-mock-service.spec
74 lines (54 loc) · 1.71 KB
/
robottelo-mock-service.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
Name: robottelo-mock-service
Version: 0.0.6
Release: 1%{?dist}
Summary: Simple mock service for katello-tracer testing in robottelo
License: GPLv3+
URL: https://github.com/ogajduse/robottelo-mock-service
Source0: file://%{name}-%{version}.tar.gz
%if 0%{?rhel} < 8
BuildRequires: systemd
%else
BuildRequires: systemd-rpm-macros
%{?systemd_requires}
%endif
BuildRequires: gcc
BuildRequires: make
%{?systemd_requires}
%description
This package provides simple mock service that serves for katello-tracer testing
in robottelo.
%prep
%setup -q
%build
%set_build_flags
%make_build
%install
rm -rf %{buildroot}
%make_install
mkdir -p %{buildroot}/%{_unitdir}
install -m 0644 %{name}.service %{buildroot}/%{_unitdir}/%{name}.service
mkdir -p --mode=0700 $RPM_BUILD_ROOT/%{_var}/log/%{name}
%post
%systemd_post %{name}.service
%preun
%systemd_preun %{name}.service
%postun
%systemd_postun %{name}.service
%files
%license LICENSE
%{_bindir}/%{name}
%{_unitdir}/%{name}.service
%attr(-,root,-) %dir %{_var}/log/%{name}
%changelog
* Thu Feb 10 2022 Ondřej Gajdušek <[email protected]> 0.0.6-1
- Remove shell script service, tweak Readme and spec ([email protected])
* Thu Feb 10 2022 Ondřej Gajdušek <[email protected]> 0.0.5-1
- Add README contents, fix build for rhel7 ([email protected])
* Thu Feb 10 2022 Ondřej Gajdušek <[email protected]> 0.0.4-1
- Change source in spec ([email protected])
* Thu Feb 10 2022 Ondřej Gajdušek <[email protected]> 0.0.3-1
- new package built with tito
* Wed Feb 09 2022 Ondřej Gajdušek <[email protected]> - 0.0.2-1
- Bump version to 0.0.2
* Tue Feb 08 2022 Ondřej Gajdušek <[email protected]> - 0.0.1-1
- Initial release