[11270] | 1 | %bcond_with bootstrap |
---|
[12469] | 2 | %bcond_without python2 |
---|
| 3 | %bcond_without python3 |
---|
[11270] | 4 | %bcond_with signatures |
---|
| 5 | %bcond_without tool |
---|
| 6 | %bcond_with test |
---|
| 7 | |
---|
| 8 | %global pypi_name wheel |
---|
| 9 | |
---|
| 10 | Name: python-%{pypi_name} |
---|
[12469] | 11 | Version: 0.35.0 |
---|
| 12 | Release: 1%{?_dist_release} |
---|
[11270] | 13 | Summary: A built-package format for Python |
---|
[12469] | 14 | Group: programming |
---|
| 15 | Vendor: Project Vine |
---|
| 16 | Distribution: Vine Linux |
---|
[11270] | 17 | |
---|
| 18 | License: MIT |
---|
| 19 | URL: https://bitbucket.org/pypa/wheel |
---|
| 20 | Source0: https://files.pythonhosted.org/packages/source/%(n=%{pypi_name}; echo ${n:0:1})/%{pypi_name}/%{pypi_name}-%{version}.tar.gz |
---|
| 21 | BuildArch: noarch |
---|
| 22 | |
---|
[12469] | 23 | BuildRequires: python-rpm-macros |
---|
[11270] | 24 | |
---|
[12469] | 25 | %if %{with python2} |
---|
[11270] | 26 | BuildRequires: python-devel |
---|
[12469] | 27 | BuildRequires: python2-setuptools |
---|
[11270] | 28 | %if ! %{with bootstrap} |
---|
| 29 | %if %{with test} |
---|
| 30 | BuildRequires: python3-pytest |
---|
| 31 | BuildRequires: python-jsonschema |
---|
| 32 | %endif |
---|
| 33 | %if %{with signatures} |
---|
| 34 | BuildRequires: pyxdg |
---|
| 35 | BuildRequires: python-keyring |
---|
| 36 | %endif |
---|
| 37 | %endif |
---|
| 38 | %{?python_provide:%python_provide python2-%{pypi_name}} |
---|
[12469] | 39 | %endif |
---|
[11270] | 40 | |
---|
[12469] | 41 | %if %{with python3} |
---|
| 42 | BuildRequires: python3-devel |
---|
| 43 | BuildRequires: python3-setuptools |
---|
| 44 | BuildRequires: python3-rpm-macros |
---|
| 45 | %if ! %{with bootstrap} |
---|
| 46 | %if %{with test} |
---|
| 47 | BuildRequires: python3-pytest |
---|
| 48 | BuildRequires: python3-jsonschema |
---|
| 49 | %endif |
---|
| 50 | %if %{with signatures} |
---|
| 51 | BuildRequires: python3-pyxdg |
---|
| 52 | BuildRequires: python3-keyring |
---|
| 53 | %endif |
---|
| 54 | %endif |
---|
| 55 | %endif |
---|
| 56 | |
---|
[11270] | 57 | %global _description \ |
---|
| 58 | A built-package format for Python.\ |
---|
| 59 | \ |
---|
| 60 | A wheel is a ZIP-format archive with a specially formatted filename and the\ |
---|
| 61 | .whl extension. It is designed to contain all the files for a PEP 376\ |
---|
| 62 | compatible install in a way that is very close to the on-disk format. |
---|
| 63 | |
---|
| 64 | %description %{_description} |
---|
| 65 | |
---|
| 66 | Python 2 version. |
---|
| 67 | |
---|
| 68 | |
---|
[12469] | 69 | %if %{with python3} |
---|
[11270] | 70 | %package -n python3-%{pypi_name} |
---|
| 71 | Summary: %{summary} |
---|
[12469] | 72 | Group: programming |
---|
[11270] | 73 | BuildRequires: python3-devel |
---|
| 74 | BuildRequires: python3-setuptools |
---|
| 75 | %if ! %{with bootstrap} |
---|
| 76 | %if %{with test} |
---|
| 77 | BuildRequires: python3-pytest |
---|
| 78 | BuildRequires: python3-jsonschema |
---|
| 79 | %endif |
---|
| 80 | %if %{with signatures} |
---|
| 81 | BuildRequires: python3-pyxdg |
---|
| 82 | BuildRequires: python3-keyring |
---|
| 83 | %endif |
---|
| 84 | %endif |
---|
| 85 | %{?python_provide:%python_provide python3-%{pypi_name}} |
---|
| 86 | |
---|
| 87 | %description -n python3-%{pypi_name} %{_description} |
---|
| 88 | |
---|
| 89 | Python 3 version. |
---|
[12469] | 90 | %endif |
---|
[11270] | 91 | |
---|
[12469] | 92 | |
---|
[11270] | 93 | %prep |
---|
| 94 | %setup -q -n %{pypi_name}-%{version} |
---|
| 95 | |
---|
[12469] | 96 | |
---|
[11270] | 97 | %build |
---|
[12469] | 98 | %if %{with python2} |
---|
[11270] | 99 | %py_build |
---|
[12469] | 100 | %endif |
---|
| 101 | %if %{with python3} |
---|
[11270] | 102 | %py3_build |
---|
[12469] | 103 | %endif |
---|
[11270] | 104 | |
---|
[12469] | 105 | |
---|
[11270] | 106 | %install |
---|
| 107 | rm -rf %{buildroot} |
---|
| 108 | |
---|
[12469] | 109 | %if %{with python2} |
---|
[11270] | 110 | %py_install |
---|
| 111 | %if %{with tool} |
---|
| 112 | mv %{buildroot}%{_bindir}/%{pypi_name}{,-%{python_version}} |
---|
| 113 | ln -s %{pypi_name}-%{python_version} %{buildroot}%{_bindir}/%{pypi_name}-2 |
---|
| 114 | %endif |
---|
[12469] | 115 | %endif |
---|
[11270] | 116 | |
---|
[12469] | 117 | %if %{with python3} |
---|
[11270] | 118 | %py3_install |
---|
| 119 | %if %{with tool} |
---|
| 120 | mv %{buildroot}%{_bindir}/%{pypi_name}{,-%{python3_version}} |
---|
| 121 | ln -s %{pypi_name}-%{python3_version} %{buildroot}%{_bindir}/%{pypi_name}-3 |
---|
| 122 | %endif |
---|
[12469] | 123 | %endif |
---|
[11270] | 124 | |
---|
[12469] | 125 | |
---|
[11270] | 126 | %if %{with test} |
---|
| 127 | %check |
---|
[12469] | 128 | rm -f setup.cfg |
---|
| 129 | %if %{with python2} |
---|
[11270] | 130 | PYTHONPATH=%{buildroot}%{python_sitelib} py.test-2 -v --ignore build |
---|
[12469] | 131 | %endif |
---|
| 132 | %if %{with python3} |
---|
[11270] | 133 | PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build |
---|
| 134 | %endif |
---|
[12469] | 135 | %endif |
---|
[11270] | 136 | |
---|
[12469] | 137 | |
---|
| 138 | %if %{with python2} |
---|
| 139 | %pre |
---|
| 140 | if [ ! -L %{_bindir}/%{pypi_name} ]; then |
---|
| 141 | rm -f %{_bindir}/%{pypi_name} |
---|
| 142 | fi |
---|
| 143 | |
---|
| 144 | %post |
---|
| 145 | /sbin/update-alternatives \ |
---|
| 146 | --install %{_bindir}/%{pypi_name} %{pypi_name} \ |
---|
| 147 | %{_bindir}/%{pypi_name}-%{python_version} %{python_version_nodots} |
---|
| 148 | |
---|
| 149 | %preun |
---|
| 150 | if [ "$1" = 0 ]; then |
---|
| 151 | /sbin/update-alternatives \ |
---|
| 152 | --remove %{pypi_name} %{_bindir}/%{pypi_name}-%{python_version} |
---|
| 153 | fi |
---|
| 154 | %endif |
---|
| 155 | |
---|
| 156 | %if %{with python3} |
---|
| 157 | %pre -n python3-%{pypi_name} |
---|
| 158 | if [ ! -L %{_bindir}/%{pypi_name} ]; then |
---|
| 159 | rm -f %{_bindir}/%{pypi_name} |
---|
| 160 | fi |
---|
| 161 | |
---|
| 162 | %post -n python3-%{pypi_name} |
---|
| 163 | /sbin/update-alternatives \ |
---|
| 164 | --install %{_bindir}/%{pypi_name} %{pypi_name} \ |
---|
| 165 | %{_bindir}/%{pypi_name}-%{python3_version} %{python3_version_nodots} |
---|
| 166 | |
---|
| 167 | %preun -n python3-%{pypi_name} |
---|
| 168 | if [ "$1" = 0 ]; then |
---|
| 169 | /sbin/update-alternatives \ |
---|
| 170 | --remove %{pypi_name} %{_bindir}/%{pypi_name}-%{python3_version} |
---|
| 171 | fi |
---|
| 172 | %endif |
---|
| 173 | |
---|
| 174 | |
---|
| 175 | %if %{with python2} |
---|
[11270] | 176 | %files |
---|
| 177 | %license LICENSE.txt |
---|
| 178 | %doc CHANGES.txt README.txt |
---|
| 179 | %if %{with tool} |
---|
| 180 | %{_bindir}/%{pypi_name}-2 |
---|
| 181 | %{_bindir}/%{pypi_name}-%{python_version} |
---|
| 182 | %endif |
---|
| 183 | %{python_sitelib}/%{pypi_name}* |
---|
| 184 | %exclude %{python_sitelib}/%{pypi_name}/test |
---|
[12469] | 185 | %endif |
---|
[11270] | 186 | |
---|
[12469] | 187 | %if %{with python3} |
---|
[11270] | 188 | %files -n python3-%{pypi_name} |
---|
| 189 | %license LICENSE.txt |
---|
| 190 | %doc CHANGES.txt README.txt |
---|
| 191 | %if %{with tool} |
---|
| 192 | %{_bindir}/%{pypi_name}-3 |
---|
| 193 | %{_bindir}/%{pypi_name}-%{python3_version} |
---|
| 194 | %endif |
---|
| 195 | %{python3_sitelib}/%{pypi_name}* |
---|
| 196 | %exclude %{python3_sitelib}/%{pypi_name}/test |
---|
[12469] | 197 | %endif |
---|
[11270] | 198 | |
---|
[12469] | 199 | |
---|
[11270] | 200 | %changelog |
---|
[12469] | 201 | * Sat Aug 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.35.0-1 |
---|
| 202 | - new upstream release. |
---|
| 203 | |
---|
[11270] | 204 | * Mon Dec 18 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.30.0a0-8 |
---|
| 205 | - initial build for Vine Linux. |
---|
| 206 | |
---|
| 207 | * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.30.0a0-7 |
---|
| 208 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
---|
| 209 | |
---|
| 210 | * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.30.0a0-6 |
---|
| 211 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild |
---|
| 212 | |
---|
| 213 | * Tue Jan 03 2017 Charalampos Stratakis <cstratak@redhat.com> - 0.30.0a0-5 |
---|
| 214 | - Enable tests |
---|
| 215 | |
---|
| 216 | * Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.30.0a0-4 |
---|
| 217 | - Rebuild for Python 3.6 without tests |
---|
| 218 | |
---|
| 219 | * Tue Dec 06 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.30.0a0-3 |
---|
| 220 | - Add bootstrap method |
---|
| 221 | |
---|
| 222 | * Mon Sep 19 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.30.0a0-2 |
---|
| 223 | - Use the python_provide macro |
---|
| 224 | |
---|
| 225 | * Mon Sep 19 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.30.0a0-1 |
---|
| 226 | - Update to 0.30.0a0 |
---|
| 227 | - Added patch to remove keyrings.alt dependency |
---|
| 228 | |
---|
| 229 | * Wed Aug 10 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.29.0-1 |
---|
| 230 | - Update to 0.29.0 |
---|
| 231 | - Cleanups and fixes |
---|
| 232 | |
---|
| 233 | * Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.26.0-3 |
---|
| 234 | - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages |
---|
| 235 | |
---|
| 236 | * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.26.0-2 |
---|
| 237 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
---|
| 238 | |
---|
| 239 | * Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 0.26.0-1 |
---|
| 240 | - Update to 0.26.0 |
---|
| 241 | - Rebuilt for Python3.5 rebuild |
---|
| 242 | |
---|
| 243 | * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.24.0-4 |
---|
| 244 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild |
---|
| 245 | |
---|
| 246 | * Tue Jan 13 2015 Slavek Kabrda <bkabrda@redhat.com> - 0.24.0-3 |
---|
| 247 | - Make spec buildable in EPEL 6, too. |
---|
| 248 | - Remove additional sources added to upstream tarball. |
---|
| 249 | |
---|
| 250 | * Sat Jan 03 2015 Matej Cepl <mcepl@redhat.com> - 0.24.0-2 |
---|
| 251 | - Make python3 conditional (switched off for RHEL-7; fixes #1131111). |
---|
| 252 | |
---|
| 253 | * Mon Nov 10 2014 Slavek Kabrda <bkabrda@redhat.com> - 0.24.0-1 |
---|
| 254 | - Update to 0.24.0 |
---|
| 255 | - Remove patches merged upstream |
---|
| 256 | |
---|
| 257 | * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22.0-4 |
---|
| 258 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
---|
| 259 | |
---|
| 260 | * Fri Apr 25 2014 Matej Stuchlik <mstuchli@redhat.com> - 0.22.0-3 |
---|
| 261 | - Another rebuild with python 3.4 |
---|
| 262 | |
---|
| 263 | * Fri Apr 18 2014 Matej Stuchlik <mstuchli@redhat.com> - 0.22.0-2 |
---|
| 264 | - Rebuild with python 3.4 |
---|
| 265 | |
---|
| 266 | * Thu Nov 28 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.22.0-1 |
---|
| 267 | - Initial package. |
---|