Orion Poplawski ec28c7
Name:           python-rpm-macros
Orion Poplawski ec28c7
Version:        3
Orion Poplawski b3d3b5
Release:        4%{?dist}
Orion Poplawski ec28c7
Summary:        The unversioned Python RPM macros
Orion Poplawski ec28c7
Orion Poplawski ec28c7
License:        MIT
Orion Poplawski ec28c7
Source0:        macros.python
Orion Poplawski ec28c7
Source1:        macros.python-srpm
Orion Poplawski ec28c7
Source2:        macros.python2
Orion Poplawski ec28c7
Source3:        macros.python3
Orion Poplawski ec28c7
Orion Poplawski ec28c7
BuildArch:      noarch
Orion Poplawski ec28c7
Obsoletes:      python-macros < 3
Orion Poplawski ec28c7
Provides:       python-macros = %{version}-%{release}
Orion Poplawski ec28c7
Orion Poplawski ec28c7
%description
Orion Poplawski ec28c7
This package contains the unversioned Python RPM macros, that most
Orion Poplawski ec28c7
implementations should rely on.
Orion Poplawski ec28c7
Orion Poplawski ec28c7
You should not need to install this package manually as the various
Orion Poplawski ec28c7
python?-devel packages require it. So install a python-devel package instead.
Orion Poplawski ec28c7
Orion Poplawski ec28c7
%package -n python-srpm-macros
Orion Poplawski ec28c7
Summary:        RPM macros for building Python source packages
Orion Poplawski ec28c7
Orion Poplawski ec28c7
%description -n python-srpm-macros
Orion Poplawski ec28c7
RPM macros for building Python source packages.
Orion Poplawski ec28c7
Orion Poplawski b3d3b5
%package -n python2-rpm-macros
Orion Poplawski ec28c7
Summary:        RPM macros for building Python 2 packages
Orion Poplawski ec28c7
# Would need to be different for each release - worth it?
Orion Poplawski ec28c7
#Conflicts:      python2-devel < 2.7.11-3
Orion Poplawski ec28c7
Orion Poplawski b3d3b5
%description -n python2-rpm-macros
Orion Poplawski ec28c7
RPM macros for building Python 2 packages.
Orion Poplawski ec28c7
Orion Poplawski b3d3b5
%package -n python3-rpm-macros
Orion Poplawski ec28c7
Summary:        RPM macros for building Python 3 packages
Orion Poplawski ec28c7
# Would need to be different for each release - worth it?
Orion Poplawski ec28c7
#Conflicts:      python3-devel < 3.5.1-3
Orion Poplawski ec28c7
Orion Poplawski b3d3b5
%description -n python3-rpm-macros
Orion Poplawski ec28c7
RPM macros for building Python 3 packages.
Orion Poplawski ec28c7
Orion Poplawski ec28c7
Orion Poplawski ec28c7
%prep
Orion Poplawski ec28c7
Orion Poplawski ec28c7
%build
Orion Poplawski ec28c7
Orion Poplawski ec28c7
%install
Orion Poplawski ec28c7
mkdir -p %{buildroot}/%{_rpmconfigdir}/macros.d/
Orion Poplawski ec28c7
install -m 644 %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} \
Orion Poplawski ec28c7
  %{buildroot}/%{_rpmconfigdir}/macros.d/
Orion Poplawski ec28c7
Orion Poplawski ec28c7
 
Orion Poplawski ec28c7
%files
Orion Poplawski ec28c7
%{_rpmconfigdir}/macros.d/macros.python
Orion Poplawski ec28c7
Orion Poplawski ec28c7
%files -n python-srpm-macros
Orion Poplawski ec28c7
%{_rpmconfigdir}/macros.d/macros.python-srpm
Orion Poplawski ec28c7
Orion Poplawski b3d3b5
%files -n python2-rpm-macros
Orion Poplawski ec28c7
%{_rpmconfigdir}/macros.d/macros.python2
Orion Poplawski ec28c7
Orion Poplawski b3d3b5
%files -n python3-rpm-macros
Orion Poplawski ec28c7
%{_rpmconfigdir}/macros.d/macros.python3
Orion Poplawski ec28c7
Orion Poplawski ec28c7
Orion Poplawski ec28c7
%changelog
Orion Poplawski b3d3b5
* Wed Jan 13 2016 Orion Poplawski <orion@cora.nwra.com> 3-4
Orion Poplawski b3d3b5
- Fix python2/3-rpm-macros package names
Orion Poplawski b3d3b5
Orion Poplawski 18473e
* Thu Jan 7 2016 Orion Poplawski <orion@cora.nwra.com> 3-3
Orion Poplawski ec28c7
- Add empty %%prep and %%build
Orion Poplawski ec28c7
Orion Poplawski ec28c7
* Mon Jan 4 2016 Orion Poplawski <orion@cora.nwra.com> 3-2
Orion Poplawski ec28c7
- Combined package
Orion Poplawski ec28c7
Orion Poplawski ec28c7
* Wed Dec 30 2015 Orion Poplawski <orion@cora.nwra.com> 3-1
Orion Poplawski ec28c7
- Initial package