[1040] | 1 | # Place rpm-macros into proper location
|
---|
| 2 | %global rpmmacrodir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
|
---|
| 3 |
|
---|
| 4 | Name: python-rpm-macros
|
---|
| 5 | Version: 1
|
---|
[1562] | 6 | Release: 3%{?dist}
|
---|
[1040] | 7 | Summary: The unversioned Python RPM macros
|
---|
| 8 |
|
---|
| 9 | License: MIT
|
---|
| 10 | Source0: macros.python
|
---|
| 11 | Source1: macros.python-srpm
|
---|
| 12 | Source2: macros.python2
|
---|
| 13 | Source3: macros.python3
|
---|
| 14 |
|
---|
| 15 | BuildArch: noarch
|
---|
| 16 | # For %%python3_pkgversion used in %%python_provide
|
---|
| 17 | Requires: python-srpm-macros
|
---|
| 18 | Provides: python-macros = %{version}-%{release}
|
---|
| 19 |
|
---|
| 20 | %description
|
---|
| 21 | This package contains the unversioned Python RPM macros, that most
|
---|
| 22 | implementations should rely on.
|
---|
| 23 |
|
---|
| 24 | You should not need to install this package manually as the various
|
---|
| 25 | python?-devel packages require it. So install a python-devel package instead.
|
---|
| 26 |
|
---|
| 27 | %package -n python-srpm-macros
|
---|
| 28 | Summary: RPM macros for building Python source packages
|
---|
| 29 |
|
---|
| 30 | %description -n python-srpm-macros
|
---|
| 31 | RPM macros for building Python source packages.
|
---|
| 32 |
|
---|
| 33 | %package -n python2-rpm-macros
|
---|
| 34 | Summary: RPM macros for building Python 2 packages
|
---|
| 35 |
|
---|
| 36 | %description -n python2-rpm-macros
|
---|
| 37 | RPM macros for building Python 2 packages.
|
---|
| 38 |
|
---|
| 39 | %package -n python3-rpm-macros
|
---|
| 40 | Summary: RPM macros for building Python 3 packages
|
---|
| 41 |
|
---|
| 42 | %description -n python3-rpm-macros
|
---|
| 43 | RPM macros for building Python 3 packages.
|
---|
| 44 |
|
---|
| 45 |
|
---|
| 46 | %prep
|
---|
| 47 |
|
---|
| 48 | %build
|
---|
| 49 |
|
---|
| 50 | %install
|
---|
| 51 | mkdir -p %{buildroot}/%{rpmmacrodir}
|
---|
| 52 | install -m 644 %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} \
|
---|
| 53 | %{buildroot}/%{rpmmacrodir}/
|
---|
| 54 |
|
---|
| 55 |
|
---|
| 56 | %files
|
---|
| 57 | %{rpmmacrodir}/macros.python
|
---|
| 58 |
|
---|
| 59 | %files -n python-srpm-macros
|
---|
| 60 | %{rpmmacrodir}/macros.python-srpm
|
---|
| 61 |
|
---|
| 62 | %files -n python2-rpm-macros
|
---|
| 63 | %{rpmmacrodir}/macros.python2
|
---|
| 64 |
|
---|
| 65 | %files -n python3-rpm-macros
|
---|
| 66 | %{rpmmacrodir}/macros.python3
|
---|
| 67 |
|
---|
| 68 |
|
---|
| 69 | %changelog
|
---|
[1562] | 70 | * Mon May 08 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1-3
|
---|
| 71 | - remove .exe from python2 and python3 path, as this is insane
|
---|
| 72 |
|
---|
[1126] | 73 | * Mon May 08 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1-2
|
---|
| 74 | - add .exe to the python2 and python3 exe path
|
---|
| 75 |
|
---|
[1040] | 76 | * Tue Feb 28 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1-1
|
---|
| 77 | - first rpm version
|
---|