- fixed for rhel-6

This commit is contained in:
Jindrich Luza 2014-02-27 17:28:57 +01:00
parent 19986a64ec
commit 8c13e751c2
3 changed files with 10 additions and 9 deletions

1
.gitignore vendored
View File

@ -19,3 +19,4 @@
/libcomps-3a9603c4b774ec3906ac63491f68a810927f0a48.tar.gz
/libcomps-a747d1289d7597882424bf50b1979170507484da.tar.gz
/libcomps-de7b804e81bfb269f16be81fa70e7656a9477a88.tar.gz
/libcomps-b4770cbebc79d40532bb812242af4e53712ccbb2.tar.gz

View File

@ -1,10 +1,10 @@
%global commit a747d1289d7597882424bf50b1979170507484da
%global commit b4770cbebc79d40532bb812242af4e53712ccbb2
%if 0%{?rhel} && 0%{?rhel} <= 6
%define python3_build 0
%{!?__python2: %global __python2 /usr/bin/python2}
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
#%{!?__python2: %global __python2 /usr/bin/python2}
#%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
#%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%else
%define python3_build 1
%endif
@ -22,11 +22,11 @@ Source0: https://github.com/midnightercz/libcomps/archive/%{commit}/libco
BuildRequires: libxml2-devel
BuildRequires: check-devel
BuildRequires: expat-devel
%if 0%{?rhel} == 6
BuildRequires: cmake28
%else
#%if 0%{?rhel} == 6
#BuildRequires: cmake28
#%else
BuildRequires: cmake
%endif
#%endif
%description
Libcomps is library for structure-like manipulation with content of

View File

@ -1 +1 @@
76037c3230cde290e8b2ae1e91819a6d libcomps-de7b804e81bfb269f16be81fa70e7656a9477a88.tar.gz
51bb53543ebe59d976712424b42b6dbe libcomps-b4770cbebc79d40532bb812242af4e53712ccbb2.tar.gz