Files
packages/anda/python/protobuf/python3-protobuf.spec
T
windowsboy111 8f2cc050b2 fix lint
2023-01-19 17:13:44 +08:00

49 lines
1.1 KiB
RPMSpec

# Created by pyp2rpm-3.3.8
%global pypi_name protobuf
Name: python-%{pypi_name}
Version: 4.21.12
Release: 1%{?dist}
Summary: Protocol Buffers
License: BSD-3-Clause
URL: https://developers.google.com/protocol-buffers/
Source0: %{pypi_source}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(setuptools)
%description
Protocol Buffers are Google's data interchange format
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
Protocol Buffers are Google's data interchange format
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py3_build
%install
%py3_install
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/google
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}-*.pth
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%changelog
* Tue Jan 10 2023 windowsboy111 <wboy111@outlook.com> - 4.21.12-1
- Initial package.