Get python2 package back
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
		
							parent
							
								
									9e4dd3841e
								
							
						
					
					
						commit
						c123108b76
					
				| @ -4,7 +4,7 @@ | |||||||
| 
 | 
 | ||||||
| Name:          python-%{srcname} | Name:          python-%{srcname} | ||||||
| Version:       1.4.3 | Version:       1.4.3 | ||||||
| Release:       6%{?dist} | Release:       7%{?dist} | ||||||
| Summary:       Python module for determining platform-specific directories | Summary:       Python module for determining platform-specific directories | ||||||
| 
 | 
 | ||||||
| License:       MIT | License:       MIT | ||||||
| @ -17,6 +17,20 @@ BuildArch:     noarch | |||||||
| A small Python module for determining appropriate " + " platform-specific | A small Python module for determining appropriate " + " platform-specific | ||||||
| directories, e.g. a "user data dir". | directories, e.g. a "user data dir". | ||||||
| 
 | 
 | ||||||
|  | %package -n python2-%{srcname} | ||||||
|  | Summary:        %{summary} | ||||||
|  | %{?python_provide:%python_provide python2-%{srcname}} | ||||||
|  | BuildRequires:  python2-devel | ||||||
|  | BuildRequires:  python2-setuptools | ||||||
|  | %if %{with wheel} | ||||||
|  | BuildRequires:  python2-pip | ||||||
|  | BuildRequires:  python2-wheel | ||||||
|  | %endif | ||||||
|  | 
 | ||||||
|  | %description -n python2-%{srcname} | ||||||
|  | A small Python 2 module for determining appropriate " + " platform-specific | ||||||
|  | directories, e.g. a "user data dir". | ||||||
|  | 
 | ||||||
| %package -n python3-%{srcname} | %package -n python3-%{srcname} | ||||||
| Summary:        %{summary} | Summary:        %{summary} | ||||||
| %{?python_provide:%python_provide python3-%{srcname}} | %{?python_provide:%python_provide python3-%{srcname}} | ||||||
| @ -37,23 +51,34 @@ rm -vrf %{srcname}.egg-info | |||||||
| 
 | 
 | ||||||
| %build | %build | ||||||
| %if %{with wheel} | %if %{with wheel} | ||||||
|  |   %py2_build_wheel | ||||||
|   %py3_build_wheel |   %py3_build_wheel | ||||||
| %else | %else | ||||||
|  |   %py2_build | ||||||
|   %py3_build |   %py3_build | ||||||
| %endif | %endif | ||||||
| 
 | 
 | ||||||
| %install | %install | ||||||
| %if %{with wheel} | %if %{with wheel} | ||||||
|  |   %py2_install_wheel %{wheelname} | ||||||
|   %py3_install_wheel %{wheelname} |   %py3_install_wheel %{wheelname} | ||||||
| %else | %else | ||||||
|  |   %py2_install | ||||||
|   %py3_install |   %py3_install | ||||||
| %endif | %endif | ||||||
| 
 | 
 | ||||||
| sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/%{srcname}.py | sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}{%{python2_sitelib},%{python3_sitelib}}/%{srcname}.py | ||||||
| 
 | 
 | ||||||
| %check | %check | ||||||
|  | %{__python2} setup.py test | ||||||
| %{__python3} setup.py test | %{__python3} setup.py test | ||||||
| 
 | 
 | ||||||
|  | %files -n python2-%{srcname} | ||||||
|  | %license LICENSE.txt | ||||||
|  | %doc README.rst CHANGES.rst | ||||||
|  | %{python2_sitelib}/%{srcname}* | ||||||
|  | %{python2_sitelib}/__pycache__/%{srcname}.* | ||||||
|  | 
 | ||||||
| %files -n python3-%{srcname} | %files -n python3-%{srcname} | ||||||
| %license LICENSE.txt | %license LICENSE.txt | ||||||
| %doc README.rst CHANGES.rst | %doc README.rst CHANGES.rst | ||||||
| @ -61,6 +86,9 @@ sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/%{srcna | |||||||
| %{python3_sitelib}/__pycache__/%{srcname}.* | %{python3_sitelib}/__pycache__/%{srcname}.* | ||||||
| 
 | 
 | ||||||
| %changelog | %changelog | ||||||
|  | * Sun Aug 12 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.4.3-7 | ||||||
|  | - Get python2 package back | ||||||
|  | 
 | ||||||
| * Sun Aug 12 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.4.3-6 | * Sun Aug 12 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.4.3-6 | ||||||
| - Drop python2 subpackage | - Drop python2 subpackage | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user