rhel/centos 7 fix: do not include toplevel directories in rpm

authorSylvain Thénault <sylvain.thenault@logilab.fr>
changeset7cbe629eb001
branchdefault
phasepublic
hiddenno
parent revision#15ddebbbe307 Added tag 0.1.1, debian/0.1.1-1, centos/0.1.1-1 for changeset 8ebac6f3c93c
child revision#ff6793b9517a Do not attempt to run test during debian package build (broken)
files modified by this revision
python-pyxst.spec
# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1476951611 -7200
# Thu Oct 20 10:20:11 2016 +0200
# Node ID 7cbe629eb001437b5e20d9be0f07fedad291f126
# Parent 15ddebbbe30750d8a21a16fe7339c2ac96ee5c26
rhel/centos 7 fix: do not include toplevel directories in rpm

diff --git a/python-pyxst.spec b/python-pyxst.spec
@@ -4,10 +4,11 @@
1  %{!?python_scriptarch: %define python_scriptarch %(%{__python} -c "from distutils.sysconfig import get_python_lib; from os.path import join; print join(get_python_lib(1, 1), 'scripts')")}
2  %else
3  %define python python
4  %define __python /usr/bin/python
5  %endif
6 +%{!?_python_sitelib: %define _python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
7 
8  Summary:        XML Schema Tools for Python
9  Name:           %{python}-pyxst
10  Version:        0.1.1
11  Release:        logilab.1%{?dist}
@@ -43,9 +44,8 @@
12  NO_SETUPTOOLS=1 %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %{?python_scriptarch: --install-scripts=%{python_scriptarch}}
13 
14  %clean
15  rm -rf $RPM_BUILD_ROOT
16 
17 -%files 
18 +%files
19  %defattr(-, root, root)
20 -/*
21 -
22 +%{_python_sitelib}/*