[11191] | 1 | Name: python-rpm-macros |
---|
[12545] | 2 | Summary: The unversioned Python RPM macros |
---|
[12367] | 3 | Version: 3.8 |
---|
[12545] | 4 | Release: 2%{?_dist_release} |
---|
| 5 | Group: programming |
---|
[11191] | 6 | Vendor: Project Vine |
---|
| 7 | Distribution: Vine Linux |
---|
| 8 | Packager: tomop |
---|
| 9 | |
---|
| 10 | License: MIT |
---|
| 11 | Source0: macros.python |
---|
| 12 | Source1: macros.python-srpm |
---|
| 13 | Source2: macros.python2 |
---|
| 14 | Source3: macros.python3 |
---|
| 15 | Source4: macros.platform-python |
---|
| 16 | |
---|
[12545] | 17 | Source100: python.attr |
---|
| 18 | Source101: pythondist.attr |
---|
| 19 | Source102: pythondistdeps.py |
---|
| 20 | # for apt (rich operators of dependencies are not supported) |
---|
| 21 | Patch1000: pythondistdeps.py-downgrade.patch |
---|
| 22 | |
---|
[11191] | 23 | BuildArch: noarch |
---|
| 24 | # For %%python3_pkgversion used in %%python_provide |
---|
| 25 | Requires: python-srpm-macros |
---|
[12545] | 26 | Requires: python3-packaging |
---|
[11191] | 27 | Obsoletes: python-macros < 3 |
---|
| 28 | Provides: python-macros = %{version}-%{release} |
---|
| 29 | |
---|
| 30 | %description |
---|
| 31 | This package contains the unversioned Python RPM macros, that most |
---|
| 32 | implementations should rely on. |
---|
| 33 | |
---|
| 34 | You should not need to install this package manually as the various |
---|
| 35 | python?-devel packages require it. So install a python-devel package instead. |
---|
| 36 | |
---|
[12545] | 37 | |
---|
[11191] | 38 | %package -n python-srpm-macros |
---|
| 39 | Summary: RPM macros for building Python source packages |
---|
| 40 | |
---|
| 41 | %description -n python-srpm-macros |
---|
| 42 | RPM macros for building Python source packages. |
---|
| 43 | |
---|
[12545] | 44 | |
---|
[11191] | 45 | %package -n python2-rpm-macros |
---|
| 46 | Summary: RPM macros for building Python 2 packages |
---|
| 47 | # Would need to be different for each release - worth it? |
---|
| 48 | #Conflicts: python2-devel < 2.7.11-3 |
---|
[12283] | 49 | Requires: python-rpm-macros |
---|
| 50 | Requires: python-srpm-macros |
---|
[11191] | 51 | |
---|
| 52 | %description -n python2-rpm-macros |
---|
| 53 | RPM macros for building Python 2 packages. |
---|
| 54 | |
---|
[12545] | 55 | |
---|
[11191] | 56 | %package -n python3-rpm-macros |
---|
| 57 | Summary: RPM macros for building Python 3 packages |
---|
| 58 | # Would need to be different for each release - worth it? |
---|
| 59 | #Conflicts: python3-devel < 3.5.1-3 |
---|
[12283] | 60 | Requires: python-rpm-macros |
---|
| 61 | Requires: python-srpm-macros |
---|
[11191] | 62 | |
---|
| 63 | %description -n python3-rpm-macros |
---|
| 64 | RPM macros for building Python 3 packages. |
---|
| 65 | |
---|
[12545] | 66 | |
---|
[11191] | 67 | #%package -n platform-python-rpm-macros |
---|
| 68 | #Summary: RPM macros for building Platform-Python packages |
---|
| 69 | |
---|
| 70 | #%description -n platform-python-rpm-macros |
---|
| 71 | #RPM macros for building Platform-Python packages. |
---|
| 72 | |
---|
| 73 | |
---|
| 74 | %prep |
---|
[12545] | 75 | %setup -T -c |
---|
| 76 | cp -f %{SOURCE102} ./ |
---|
| 77 | %patch1000 -p0 |
---|
[11191] | 78 | |
---|
[12545] | 79 | |
---|
[11191] | 80 | %build |
---|
| 81 | |
---|
[12545] | 82 | |
---|
[11191] | 83 | %install |
---|
[12545] | 84 | mkdir -p %{buildroot}%{_rpmmacrodir} |
---|
[11191] | 85 | install -m 644 %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} \ |
---|
[12545] | 86 | %{buildroot}%{_rpmmacrodir}/ |
---|
[11191] | 87 | |
---|
[12545] | 88 | mkdir -p %{buildroot}%{_fileattrsdir} |
---|
| 89 | install -m 644 %{SOURCE100} %{SOURCE101} \ |
---|
| 90 | %{buildroot}%{_fileattrsdir}/ |
---|
[11191] | 91 | |
---|
[12545] | 92 | mkdir -p %{buildroot}%{_rpmconfigdir} |
---|
| 93 | install -m 755 pythondistdeps.py \ |
---|
| 94 | %{buildroot}%{_rpmconfigdir}/ |
---|
| 95 | |
---|
| 96 | sed -i -e 's|#!/usr/bin/python|#!/usr/bin/python3|' \ |
---|
| 97 | %{buildroot}%{_rpmconfigdir}/pythondistdeps.py |
---|
| 98 | |
---|
| 99 | |
---|
[11191] | 100 | %files |
---|
[12545] | 101 | %{_rpmmacrodir}/macros.python |
---|
| 102 | %{_rpmconfigdir}/pythondistdeps.py |
---|
| 103 | %{_fileattrsdir}/* |
---|
[11191] | 104 | |
---|
| 105 | %files -n python-srpm-macros |
---|
[12545] | 106 | %{_rpmmacrodir}/macros.python-srpm |
---|
[11191] | 107 | |
---|
| 108 | %files -n python2-rpm-macros |
---|
[12545] | 109 | %{_rpmmacrodir}/macros.python2 |
---|
[11191] | 110 | |
---|
| 111 | %files -n python3-rpm-macros |
---|
[12545] | 112 | %{_rpmmacrodir}/macros.python3 |
---|
[11191] | 113 | |
---|
| 114 | #%files -n platform-python-rpm-macros |
---|
| 115 | #%{rpmmacrodir}/macros.platform-python |
---|
[12545] | 116 | %exclude %{_rpmmacrodir}/macros.platform-python |
---|
[11191] | 117 | |
---|
| 118 | |
---|
| 119 | %changelog |
---|
[12545] | 120 | * Mon Feb 22 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.8-2 |
---|
| 121 | - added scripts. |
---|
| 122 | |
---|
[12367] | 123 | * Wed Apr 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.8-1 |
---|
| 124 | - updated to 3.8. |
---|
| 125 | |
---|
[12283] | 126 | * Wed Oct 23 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3-26 |
---|
| 127 | - updated macros. |
---|
| 128 | |
---|
| 129 | * Mon Dec 18 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3-25 |
---|
[11269] | 130 | - fixed a typo. |
---|
| 131 | |
---|
[11202] | 132 | * Wed Sep 20 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3-24 |
---|
| 133 | - fixed a path to install. |
---|
| 134 | |
---|
[11191] | 135 | * Tue Sep 19 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3-23 |
---|
| 136 | - initial build for Vine Linux. |
---|
| 137 | |
---|
| 138 | * Wed Aug 02 2017 Tomas Orsava <torsava@redhat.com> - 3-22 |
---|
| 139 | - Add platform-python macros (https://fedoraproject.org/wiki/Changes/Platform_Python_Stack) |
---|
| 140 | |
---|
| 141 | * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3-21 |
---|
| 142 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
---|
| 143 | |
---|
| 144 | * Fri Mar 03 2017 Michal Cyprian <mcyprian@redhat.com> - 3-20 |
---|
| 145 | - Revert "Switch %%__python3 to /usr/libexec/system-python" |
---|
| 146 | after the Fedora Change https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe |
---|
| 147 | was postponed |
---|
| 148 | |
---|
| 149 | * Fri Feb 17 2017 Michal Cyprian <mcyprian@redhat.com> - 3-19 |
---|
| 150 | - Switch %%__python3 to /usr/libexec/system-python |
---|
| 151 | |
---|
| 152 | * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3-18 |
---|
| 153 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild |
---|
| 154 | |
---|
| 155 | * Mon Jan 23 2017 Michal Cyprian <mcyprian@redhat.com> - 3-17 |
---|
| 156 | - Add --no-deps option to py_install_wheel macros |
---|
| 157 | |
---|
| 158 | * Tue Jan 17 2017 Tomas Orsava <torsava@redhat.com> - 3-16 |
---|
| 159 | - Added macros for Build/Requires tags using Python dist tags: |
---|
| 160 | https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages |
---|
| 161 | |
---|
| 162 | * Thu Nov 24 2016 Orion Poplawski <orion@cora.nwra.com> 3-15 |
---|
| 163 | - Make expanded macros start on the same line as the macro |
---|
| 164 | |
---|
| 165 | * Wed Nov 16 2016 Orion Poplawski <orion@cora.nwra.com> 3-14 |
---|
| 166 | - Fix %%py3_install_wheel (bug #1395953) |
---|
| 167 | |
---|
| 168 | * Wed Nov 16 2016 Orion Poplawski <orion@cora.nwra.com> 3-13 |
---|
| 169 | - Add missing sleeps to other build macros |
---|
| 170 | - Fix build_egg macros |
---|
| 171 | - Add %%py_build_wheel and %%py_install_wheel macros |
---|
| 172 | |
---|
| 173 | * Tue Nov 15 2016 Orion Poplawski <orion@cora.nwra.com> 3-12 |
---|
| 174 | - Add %%py_build_egg and %%py_install_egg macros |
---|
| 175 | - Allow multiple args to %%py_build/install macros |
---|
| 176 | - Tidy up macro formatting |
---|
| 177 | |
---|
| 178 | * Wed Aug 24 2016 Orion Poplawski <orion@cora.nwra.com> 3-11 |
---|
| 179 | - Use %%rpmmacrodir |
---|
| 180 | |
---|
| 181 | * Tue Jul 12 2016 Orion Poplawski <orion@cora.nwra.com> 3-10 |
---|
| 182 | - Do not generate useless Obsoletes with %%{?_isa} |
---|
| 183 | |
---|
| 184 | * Fri May 13 2016 Orion Poplawski <orion@cora.nwra.com> 3-9 |
---|
| 185 | - Make python-rpm-macros require python-srpm-macros (bug #1335860) |
---|
| 186 | |
---|
| 187 | * Thu May 12 2016 Jason L Tibbitts III <tibbs@math.uh.edu> - 3-8 |
---|
| 188 | - Add single-second sleeps to work around setuptools bug. |
---|
| 189 | |
---|
| 190 | * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3-7 |
---|
| 191 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
---|
| 192 | |
---|
| 193 | * Thu Jan 14 2016 Orion Poplawski <orion@cora.nwra.com> 3-6 |
---|
| 194 | - Fix typo in %%python_provide |
---|
| 195 | |
---|
| 196 | * Thu Jan 14 2016 Orion Poplawski <orion@cora.nwra.com> 3-5 |
---|
| 197 | - Handle noarch python sub-packages (bug #1290900) |
---|
| 198 | |
---|
| 199 | * Wed Jan 13 2016 Orion Poplawski <orion@cora.nwra.com> 3-4 |
---|
| 200 | - Fix python2/3-rpm-macros package names |
---|
| 201 | |
---|
| 202 | * Thu Jan 7 2016 Orion Poplawski <orion@cora.nwra.com> 3-3 |
---|
| 203 | - Add empty %%prep and %%build |
---|
| 204 | |
---|
| 205 | * Mon Jan 4 2016 Orion Poplawski <orion@cora.nwra.com> 3-2 |
---|
| 206 | - Combined package |
---|
| 207 | |
---|
| 208 | * Wed Dec 30 2015 Orion Poplawski <orion@cora.nwra.com> 3-1 |
---|
| 209 | - Initial package |
---|