LINUX.ORG.RU

pyp2rpm Installed (but unpackaged) file(s) found: /usr/bin/pybabel

 


0

1

Пытаюсь собрать Babel в rpm

cat /etc/redhat-release 
CentOS Linux release 7.6.1810 (Core)
pip install --user pyp2rpm
pyp2rpm Babel -t epel7 -b2 -p2 > Babel-2.8.0.spec

Babel-2.8.0.spec:

# Created by pyp2rpm-3.3.3
%global pypi_name Babel

Name:           python-%{pypi_name}
Version:        2.8.0
Release:        1%{?dist}
Summary:        Internationalization utilities

License:        BSD
URL:            http://babel.pocoo.org/
Source0:        https://files.pythonhosted.org/packages/source/B/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python2-devel
BuildRequires:  python2-pytz >= 2015.7
BuildRequires:  python2-setuptools
BuildRequires:  python2-sphinx

%description
A collection of tools for internationalizing Python applications.

%package -n     python2-%{pypi_name}
Summary:        Internationalization utilities

Requires:       python2-pytz >= 2015.7
%description -n python2-%{pypi_name}
A collection of tools for internationalizing Python applications.

%package -n python-%{pypi_name}-doc
Summary:        Babel documentation
%description -n python-%{pypi_name}-doc
Documentation for Babel

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%{__python2} setup.py build
# generate html docs
PYTHONPATH=${PWD} sphinx-build docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

%install
%{__python2} setup.py install --skip-build --root %{buildroot}

%check
%{__python2} setup.py test

%files -n python2-%{pypi_name}
%doc README.rst
%{python2_sitelib}/babel
%{python2_sitelib}/%{pypi_name}-%{version}-py%{python2_version}.egg-info

%files -n python-%{pypi_name}-doc
%doc html
%license LICENSE docs/_themes/LICENSE docs/license.rst

%changelog
* Sat Feb 22 2020 Cloud User - 2.8.0-1
- Initial package.

https://gist.github.com/patsevanton/e437aa6fa89f9119d33a5e88c4b8dbd3

Как собрать Babel в rpm с помощью pyp2rpm?