-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathos.spec
46 lines (35 loc) · 959 Bytes
/
os.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
Name: os
Version: 0.0.0
Release: 0.1%{?dist}
Summary: Fowarding script for immutable system management
License: GPLv2+
URL: https://github.com/projectatomic/os-command
Source0: os-%{version}.tar.gz
Buildarch: noarch
Requires: rpm-ostree
Requires: origin-clients
%description
Fowarding script for immutable system management. This script
intercepts yum, atomic, and dnf.
%prep
%autosetup
%build
# Nothing to build
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/%{_bindir}
install os $RPM_BUILD_ROOT/%{_bindir}/os
ln -s %{_bindir}/os $RPM_BUILD_ROOT/%{_bindir}/yum
ln -s %{_bindir}/os $RPM_BUILD_ROOT/%{_bindir}/atomic
ln -s %{_bindir}/os $RPM_BUILD_ROOT/%{_bindir}/dnf
%files
%license LICENSE
#%doc README.md
%{_bindir}/os
%{_bindir}/yum
%{_bindir}/dnf
%{_bindir}/atomic
%changelog
* Mon Apr 30 2018 Steve Milner <[email protected]> - 0.0.0-0.1
- Initial spec
-