Remove lines that are only useful for EL since this package can not be packaged in EPEL6 and EPEL7
This commit is contained in:
parent
d195801553
commit
9d67d7b00c
@ -1,14 +1,3 @@
|
|||||||
%if 0%{?rhel}
|
|
||||||
%global with_python3 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))")}
|
|
||||||
%{!?py2_build: %global py2_build %{expand: CFLAGS="%{optflags}" %{__python2} setup.py %{?py_setup_args} build --executable="%{__python2} -s"}}
|
|
||||||
%{!?py2_install: %global py2_install %{expand: CFLAGS="%{optflags}" %{__python2} setup.py %{?py_setup_args} install -O1 --skip-build --root %{buildroot}}}
|
|
||||||
%else
|
|
||||||
%global with_python3 1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%global pypi_name configobj
|
%global pypi_name configobj
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
@ -27,16 +16,11 @@ Source1: https://raw.githubusercontent.com/DiffSK/configobj/master/LICENS
|
|||||||
# tar -czf configobj-5.0.5-tests.tar.gz tests/ test_configobj.py
|
# tar -czf configobj-5.0.5-tests.tar.gz tests/ test_configobj.py
|
||||||
#Source1: configobj-%{version}-tests.tar.gz
|
#Source1: configobj-%{version}-tests.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if 0%{?el5}
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
%endif
|
|
||||||
|
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
%if 0%{?with_python3}
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
%endif # with_python3
|
|
||||||
#BuildRequires: python3-pytest
|
#BuildRequires: python3-pytest
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -114,14 +98,10 @@ cp %{SOURCE1} .
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
%py2_build
|
||||||
%if 0%{?with_python3}
|
|
||||||
%py3_build
|
%py3_build
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if 0%{?with_python3}
|
|
||||||
%py3_install
|
%py3_install
|
||||||
%endif # with_python3
|
|
||||||
%py2_install
|
%py2_install
|
||||||
|
|
||||||
#%check
|
#%check
|
||||||
@ -147,13 +127,11 @@ cp %{SOURCE1} .
|
|||||||
%{python2_sitelib}/*
|
%{python2_sitelib}/*
|
||||||
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%files -n python3-%{pypi_name}
|
%files -n python3-%{pypi_name}
|
||||||
%doc
|
%doc
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Jan 06 2016 Fabio Alessandro Locati <fabio@locati.cc> - 5.0.6-1
|
* Wed Jan 06 2016 Fabio Alessandro Locati <fabio@locati.cc> - 5.0.6-1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user