blob: 4310e8c234f81aa880e57e20c0a821e4c0ebd946 (
plain)
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
|
# avoid depending on rpm configuration
%define _sysconfdir /etc
%{!?filetype: %global filetype file}
Name: update-policy-test%{?sub:-%{sub}}
Version: %{ver}
Release: 1
Summary: Testing update policy
Group: Testing
License: GPL
BuildArch: noarch
%description
%{summary}
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}
case %{filetype} in
file)
echo "%{filedata}" > $RPM_BUILD_ROOT/%{_sysconfdir}/policy.conf
;;
link)
ln -s "%{filedata}" $RPM_BUILD_ROOT/%{_sysconfdir}/policy.conf
;;
dir)
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/policy.conf
;;
esac
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{?fileattr} %{_sysconfdir}/policy.conf
|