diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2012-08-21 12:21:35 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-08-21 12:21:35 +0300 |
commit | 14116eba5aa799bd912f4cff6ab1e8676813405c (patch) | |
tree | ceec4e8f2b3d29aeeabba8d136efaa9c246ed0b4 | |
parent | e8a6c87d48c1ac135f75bf8a67e0ba9d6fc74a66 (diff) | |
download | librpm-tizen-14116eba5aa799bd912f4cff6ab1e8676813405c.tar.gz librpm-tizen-14116eba5aa799bd912f4cff6ab1e8676813405c.tar.bz2 librpm-tizen-14116eba5aa799bd912f4cff6ab1e8676813405c.zip |
Further parametrize the config test spec file to allow more cases
-rw-r--r-- | tests/data/SPECS/configtest.spec | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/data/SPECS/configtest.spec b/tests/data/SPECS/configtest.spec index 844e9eba4..e9b72c093 100644 --- a/tests/data/SPECS/configtest.spec +++ b/tests/data/SPECS/configtest.spec @@ -1,3 +1,5 @@ +%{!?filetype: %global filetype file} + Name: configtest%{?sub:-%{sub}} Version: %{ver} Release: 1 @@ -13,11 +15,21 @@ BuildArch: noarch %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir} -echo "%{filedata}" > $RPM_BUILD_ROOT/%{_sysconfdir}/my.conf +case %{filetype} in +file) + echo "%{filedata}" > $RPM_BUILD_ROOT/%{_sysconfdir}/my.conf + ;; +link) + ln -s "%{filedata}" $RPM_BUILD_ROOT/%{_sysconfdir}/my.conf + ;; +dir) + mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/my.conf + ;; +esac %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%config%{?noreplace:(noreplace)} %{_sysconfdir}/my.conf +%{!?noconfig:%config%{?noreplace:(noreplace)}} %{_sysconfdir}/my.conf |