summaryrefslogtreecommitdiffstats
path: root/t/data/SPECS
diff options
context:
space:
mode:
Diffstat (limited to 't/data/SPECS')
-rw-r--r--t/data/SPECS/multi-line-macro.spec28
-rw-r--r--t/data/SPECS/multi-line-macro2.spec28
2 files changed, 56 insertions, 0 deletions
diff --git a/t/data/SPECS/multi-line-macro.spec b/t/data/SPECS/multi-line-macro.spec
new file mode 100644
index 00000000..3971a179
--- /dev/null
+++ b/t/data/SPECS/multi-line-macro.spec
@@ -0,0 +1,28 @@
+%define foobar /etc/foo \
+ /etc/bar
+
+Summary: x
+Name: multi-linux-macro
+Version: 1
+Release: 1
+License: x
+Group: x
+Url: x
+BuildRoot: %{_tmppath}/%{name}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc
+echo foo > $RPM_BUILD_ROOT/etc/foo
+echo bar > $RPM_BUILD_ROOT/etc/bar
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%description
+x
+
+%files
+%defattr(-,root,root)
+%foobar
+# if %foobar is the last line it fails (#27417)
diff --git a/t/data/SPECS/multi-line-macro2.spec b/t/data/SPECS/multi-line-macro2.spec
new file mode 100644
index 00000000..df7e4b45
--- /dev/null
+++ b/t/data/SPECS/multi-line-macro2.spec
@@ -0,0 +1,28 @@
+%define foobar echo foo > $RPM_BUILD_ROOT/etc/foo \
+ echo bar > $RPM_BUILD_ROOT/etc/bar
+
+Summary: x
+Name: multi-linux-macro
+Version: 1
+Release: 1
+License: x
+Group: x
+Url: x
+BuildRoot: %{_tmppath}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%description
+x
+
+%files
+%defattr(-,root,root)
+/etc/foo
+/etc/bar
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc
+%foobar
+# if %foobar is the last line it fails (#27417)