From 82d2f5bf40ad5f8c1f7f07b306f9dea69b096ab8 Mon Sep 17 00:00:00 2001 From: Kaleb S. KEITHLEY Date: Jan 19 2017 16:12:18 +0000 Subject: /usr/bin/python2, /usr/lib/python2.7/site-packages, and GPLv2 or LGPLv3+ globals for EL6 --- diff --git a/python-glusterfs-api.spec b/python-glusterfs-api.spec index 5417203..cfb06cc 100644 --- a/python-glusterfs-api.spec +++ b/python-glusterfs-api.spec @@ -7,6 +7,8 @@ %global python_package_name gfapi +%{!?python2_sitelib: %global python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} + Name: python-glusterfs-api Summary: Python bindings for GlusterFS libgfapi Version: 1.1 @@ -56,6 +58,7 @@ Requires: python-gluster >= 3.7.0 %{__python2} setup.py install --skip-build --root %{buildroot} %files -n python2-glusterfs-api +%{!?_licensedir:%global license %%doc} %doc README.rst %license COPYING-GPLV2 COPYING-LGPLV3 %{python2_sitelib}/* @@ -65,7 +68,7 @@ Requires: python-gluster >= 3.7.0 %changelog * Thu Jan 19 2017 Kaleb S. KEITHLEY -- __python2 global for EL6 +- %__python2, %python2_sitelib, and %license globals for EL6 * Thu Jan 19 2017 Kaleb S. KEITHLEY - 1.1-2 - Initial import plus RHEL feature test for python-devel