Drop 'old release compat' crap again, not needed
This commit is contained in:
		
							parent
							
								
									87697814ba
								
							
						
					
					
						commit
						01e1f2f2ed
					
				| @ -7,20 +7,6 @@ | |||||||
| %bcond_with     python3 | %bcond_with     python3 | ||||||
| %endif | %endif | ||||||
| 
 | 
 | ||||||
| # compatibility with older releases |  | ||||||
| %{!?__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}}} |  | ||||||
| 
 |  | ||||||
| # compatibility with older releases |  | ||||||
| %{!?__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}}} |  | ||||||
| 
 |  | ||||||
| Name:           python-productmd | Name:           python-productmd | ||||||
| Version:        1.4 | Version:        1.4 | ||||||
| Release:        2%{?dist} | Release:        2%{?dist} | ||||||
| @ -88,16 +74,12 @@ and installation media. | |||||||
| %{__python3} ./setup.py test | %{__python3} ./setup.py test | ||||||
| %endif | %endif | ||||||
| 
 | 
 | ||||||
| # this must go after all 'License:' tags |  | ||||||
| %{!?_licensedir:%global license %doc} |  | ||||||
| 
 |  | ||||||
| %files | %files | ||||||
| %license LICENSE | %license LICENSE | ||||||
| %doc AUTHORS | %doc AUTHORS | ||||||
| %{python_sitelib}/productmd/ | %{python_sitelib}/productmd/ | ||||||
| %{python_sitelib}/productmd-%{version}-py?.?.egg-info | %{python_sitelib}/productmd-%{version}-py?.?.egg-info | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| %if 0%{?with_python3} | %if 0%{?with_python3} | ||||||
| %files -n python%{python3_pkgversion}-productmd | %files -n python%{python3_pkgversion}-productmd | ||||||
| %license LICENSE | %license LICENSE | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user