[packages/test] some __spec_install_post_check_shebangs testing

jajcus jajcus at pld-linux.org
Sun Nov 29 17:50:54 CET 2015


commit 51d636097b9c21c60a5928cb1201623de0fdeac0
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Sun Nov 29 17:50:39 2015 +0100

    some __spec_install_post_check_shebangs testing

 test.spec | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 84 insertions(+), 1 deletion(-)
---
diff --git a/test.spec b/test.spec
index 3a4b041..20bc27a 100644
--- a/test.spec
+++ b/test.spec
@@ -21,9 +21,92 @@ testing something
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+
+cat >$RPM_BUILD_ROOT%{_bindir}/test1 <<'EOF'
+ffkdljgldfn ldn d
+dskjf; k
+s dsk jf
+sdfk jsdk
+EOF
+
+cat >$RPM_BUILD_ROOT%{_bindir}/test2 <<'EOF'
+#!/usr/bin/python
+
+print "test2"
+EOF
+
+cat >$RPM_BUILD_ROOT%{_bindir}/test3 <<'EOF'
+#!/usr/bin/python2
+
+print "test3"
+EOF
+
+cat >$RPM_BUILD_ROOT%{_bindir}/test4 <<'EOF'
+#!/usr/bin/python3
+
+print("test4")
+EOF
+
+cat >$RPM_BUILD_ROOT%{_bindir}/test5 <<'EOF'
+#!/usr/bin/env python
+
+print "test5"
+EOF
+
+cat >$RPM_BUILD_ROOT%{_bindir}/test6 <<'EOF'
+#!/usr/bin/env python2
+
+print "test6"
+EOF
+
+cat >$RPM_BUILD_ROOT%{_bindir}/test7 <<'EOF'
+#!/usr/bin/env python3
+
+print("test7")
+EOF
+
+cat >$RPM_BUILD_ROOT%{_bindir}/test8 <<'EOF'
+#! /usr/bin/python2
+
+print "test8"
+EOF
+
+cat >$RPM_BUILD_ROOT%{_bindir}/test9 <<'EOF'
+#! /usr/bin/env python3
+
+print("test9")
+EOF
+
+cat >$RPM_BUILD_ROOT%{_bindir}/test10 <<'EOF'
+#!/bin/sh
+
+echo test10
+EOF
+
+cat >$RPM_BUILD_ROOT%{_bindir}/test11 <<'EOF'
+#!/usr/bin/python9.9
+
+print "test11"
+EOF
+
+cat >$RPM_BUILD_ROOT%{_bindir}/test12 <<'EOF'
+#!/usr/bin/python%{py_ver}
+
+print "test12"
+EOF
+
+cat >$RPM_BUILD_ROOT%{_bindir}/test13 <<'EOF'
+#!/usr/bin/python%{py3_ver}
+
+print("test13")
+EOF
+
+
+chmod a+x $RPM_BUILD_ROOT%{_bindir}/*
 
 %clean
 
 %files
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/test.git/commitdiff/51d636097b9c21c60a5928cb1201623de0fdeac0



More information about the pld-cvs-commit mailing list