e25505c276
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/python-rpm-generators#bfb7f70b994d667b703a6b16c2b35d5056572800
60 lines
1.6 KiB
RPMSpec
60 lines
1.6 KiB
RPMSpec
Name: pythondist
|
|
Version: 4.3.0
|
|
Release: 0
|
|
Summary: ...
|
|
License: ZPLv2.1
|
|
Source0: %{pypi_source zope.component}
|
|
BuildArch: noarch
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
|
|
# Turn off Python bytecode compilation because the build would fail without Python 3.7/3.10
|
|
%define __brp_python_bytecompile %{nil}
|
|
|
|
%description
|
|
...
|
|
|
|
%package -n python3-zope-component
|
|
Summary: ...
|
|
%description -n python3-zope-component
|
|
...
|
|
|
|
%package -n python3.7-zope-component
|
|
Summary: ...
|
|
%description -n python3.7-zope-component
|
|
...
|
|
|
|
%package -n python3.10-zope-component
|
|
Summary: ...
|
|
%description -n python3.10-zope-component
|
|
...
|
|
|
|
%prep
|
|
%autosetup -n zope.component-%{version}
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
%install
|
|
%py3_install
|
|
|
|
mkdir -p %{buildroot}/usr/lib/python3.7/site-packages
|
|
cp -a %{buildroot}%{python3_sitelib}/zope.component-%{version}-py%{python3_version}.egg-info \
|
|
%{buildroot}/usr/lib/python3.7/site-packages/zope.component-%{version}-py3.7.egg-info
|
|
|
|
mkdir -p %{buildroot}/usr/lib/python3.10/site-packages
|
|
cp -a %{buildroot}%{python3_sitelib}/zope.component-%{version}-py%{python3_version}.egg-info \
|
|
%{buildroot}/usr/lib/python3.10/site-packages/zope.component-%{version}-py3.10.egg-info
|
|
|
|
%files -n python3-zope-component
|
|
%license LICENSE.txt
|
|
%{python3_sitelib}/*
|
|
|
|
%files -n python3.7-zope-component
|
|
%license LICENSE.txt
|
|
/usr/lib/python3.7/site-packages/zope.component-%{version}-py3.7.egg-info/
|
|
|
|
%files -n python3.10-zope-component
|
|
%license LICENSE.txt
|
|
/usr/lib/python3.10/site-packages/zope.component-%{version}-py3.10.egg-info/
|