summaryrefslogtreecommitdiff
path: root/tests/data/SPECS/configtest.spec
blob: 844e9eba468eb8a29b8f051dfeb175f295f3f94a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Name:		configtest%{?sub:-%{sub}}
Version:	%{ver}
Release:	1
Summary:	Testing config file behavior

Group:		Testing
License:	GPL
BuildArch:	noarch

%description
%{summary}

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}
echo "%{filedata}" > $RPM_BUILD_ROOT/%{_sysconfdir}/my.conf

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%config%{?noreplace:(noreplace)} %{_sysconfdir}/my.conf