[packages/test/test/spec_install_post_check_shebangs] spec_install_post_check_shebangs: test for spaces
jajcus
jajcus at pld-linux.org
Sun Apr 24 10:38:39 CEST 2016
commit c7c1153ad98315fa851962b029b2b9e94d85dbb6
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sun Apr 24 10:37:58 2016 +0200
spec_install_post_check_shebangs: test for spaces
tests added for paths with spaces
test.spec | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/test.spec b/test.spec
index 20bc27a..d2d21a6 100644
--- a/test.spec
+++ b/test.spec
@@ -102,11 +102,24 @@ cat >$RPM_BUILD_ROOT%{_bindir}/test13 <<'EOF'
print("test13")
EOF
+cat >$RPM_BUILD_ROOT%{_bindir}/"test14 with space" <<'EOF'
+#!/usr/bin/python
+
+print "test14"
+EOF
+
+install -d $RPM_BUILD_ROOT/%{_datadir}/"dir with spaces"
+cat >$RPM_BUILD_ROOT%{_datadir}/"dir with spaces"/test15 <<'EOF'
+#!/usr/bin/python
+
+print "test15"
+EOF
-chmod a+x $RPM_BUILD_ROOT%{_bindir}/*
+chmod a+x $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/"dir with spaces"}/*
%clean
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/*
+%{_datadir}/*/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/test.git/commitdiff/c7c1153ad98315fa851962b029b2b9e94d85dbb6
More information about the pld-cvs-commit
mailing list