summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Cacqueray <tdecacqu@redhat.com>2017-08-25 11:07:06 +0000
committerTristan Cacqueray <tdecacqu@redhat.com>2017-08-25 11:07:29 +0000
commitfa1e55c6dc73adede8681c7463d30e9478d9893f (patch)
tree3948a042dd0252f032c5d72537e0d95cbc7844a5
parent9a93e9ca1c718d296a4b25dddb3021913e8a6dfc (diff)
Initial import
Change-Id: Ibc1dea931f0b79fed95016526a1a84607019bc82
-rw-r--r--enable-py32
-rw-r--r--enable-py3.spec32
2 files changed, 34 insertions, 0 deletions
diff --git a/enable-py3 b/enable-py3
new file mode 100644
index 0000000..80157d7
--- /dev/null
+++ b/enable-py3
@@ -0,0 +1,2 @@
+PATH=/opt/rh/rh-python35/root/usr/bin:/bin
+LD_LIBRARY_PATH=/opt/rh/rh-python35/root/usr/lib64
diff --git a/enable-py3.spec b/enable-py3.spec
new file mode 100644
index 0000000..38e9aea
--- /dev/null
+++ b/enable-py3.spec
@@ -0,0 +1,32 @@
+%{?scl:%scl_package enable-py3}
+%{!?scl:%global pkg_name %{name}}
+
+%global nfsmountable 1
+
+Name: %{?scl_prefix}enable-py3
+Version: 0.1
+Release: 1%{?dist}
+Summary: A simple environment to enable python3 scl
+
+License: ASL 2.0
+URL: https://softwarefactory-project.io/
+
+BuildArch: noarch
+
+Source1: enable-py3
+
+%description
+A simple environment to enable python3 scl
+
+%prep
+sed -i "s/rh-python35/$(echo %{?scl_prefix} | sed 's/-$//')/" %{SOURCE1}
+
+%install
+install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/enable-py3
+
+%files
+%{_sysconfdir}/sysconfig/enable-py3
+
+%changelog
+* Fri Aug 25 2017 Tristan Cacqueray - 0.1-1
+- Initial package