Add further "parametrization" to our config file test spec
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 20 Aug 2012 07:04:07 +0000 (10:04 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 20 Aug 2012 07:04:07 +0000 (10:04 +0300)
- Currently unused but to allow for testing further cases with the
  same base spec...

tests/data/SPECS/configtest.spec

index 5ea7cae..844e9eb 100644 (file)
@@ -1,4 +1,4 @@
-Name:          configtest
+Name:          configtest%{?sub:-%{sub}}
 Version:       %{ver}
 Release:       1
 Summary:       Testing config file behavior
@@ -20,4 +20,4 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
-%config %{_sysconfdir}/my.conf
+%config%{?noreplace:(noreplace)} %{_sysconfdir}/my.conf