diff --git a/anda/python/protobuf/python3-protobuf.spec b/anda/python/protobuf/python3-protobuf.spec index f7b28fa60d..8511e7781a 100644 --- a/anda/python/protobuf/python3-protobuf.spec +++ b/anda/python/protobuf/python3-protobuf.spec @@ -1,13 +1,13 @@ # Created by pyp2rpm-3.3.8 -%global pypi_name python3-protobuf +%global pypi_name protobuf -Name: %{pypi_name} -Version: 2.5.0 +Name: python-%{pypi_name} +Version: 4.21.12 Release: 1%{?dist} Summary: Protocol Buffers -License: New BSD License -URL: http://code.google.com/p/protobuf/ +License: BSD-3-Clause +URL: https://developers.google.com/protocol-buffers/ Source0: %{pypi_source} BuildArch: noarch @@ -15,54 +15,37 @@ BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description -Protocol Buffers are Google's data interchange format. +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 -# so apparently they decided to mix tabs and spaces -# dirty fix -sed "s@\t@ @g" google/protobuf/internal/cpp_message.py > google/protobuf/internal/cpp_message.py - %build %py3_build %install %py3_install -#%check -#%{__python3} setup.py test +%check +%{__python3} setup.py test -%files -%doc README.txt -%{python3_sitelib}/google/protobuf/compiler/plugin_pb2.py -%{python3_sitelib}/google/protobuf/descriptor.py -%{python3_sitelib}/google/protobuf/descriptor_database.py -%{python3_sitelib}/google/protobuf/descriptor_pb2.py -%{python3_sitelib}/google/protobuf/descriptor_pool.py -%{python3_sitelib}/google/protobuf/internal/api_implementation.py -%{python3_sitelib}/google/protobuf/internal/containers.py -%{python3_sitelib}/google/protobuf/internal/cpp_message.py -%{python3_sitelib}/google/protobuf/internal/decoder.py -%{python3_sitelib}/google/protobuf/internal/encoder.py -%{python3_sitelib}/google/protobuf/internal/enum_type_wrapper.py -%{python3_sitelib}/google/protobuf/internal/message_listener.py -%{python3_sitelib}/google/protobuf/internal/python_message.py -%{python3_sitelib}/google/protobuf/internal/type_checkers.py -%{python3_sitelib}/google/protobuf/internal/utils.py -%{python3_sitelib}/google/protobuf/internal/wire_format.py -%{python3_sitelib}/google/protobuf/message.py -%{python3_sitelib}/google/protobuf/message_factory.py -%{python3_sitelib}/google/protobuf/reflection.py -%{python3_sitelib}/google/protobuf/service.py -%{python3_sitelib}/google/protobuf/service_reflection.py -%{python3_sitelib}/google/protobuf/text_format.py +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md %{python3_sitelib}/google -%{python3_sitelib}/python3_protobuf-%{version}-py%{python3_version}-*.pth -%{python3_sitelib}/python3_protobuf-%{version}-py%{python3_version}.egg-info +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}-*.pth +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog -* Sun Jan 08 2023 windowsboy111 - 2.5.0-1 +* Tue Jan 10 2023 windowsboy111 - 4.21.12-1 - Initial package. diff --git a/anda/python/protobuf/update.rhai b/anda/python/protobuf/update.rhai index 228c4c1fb8..3fecbcb71d 100644 --- a/anda/python/protobuf/update.rhai +++ b/anda/python/protobuf/update.rhai @@ -1,2 +1,2 @@ -let obj = get("https://pypi.org/pypi/python3-protobuf/json").json(); +let obj = get("https://pypi.org/pypi/protobuf/json").json(); rpm.version(obj @ "info" @ "version"); diff --git a/anda/python/python3-protobuf/anda.hcl b/anda/python/python3-protobuf/anda.hcl new file mode 100644 index 0000000000..decd283790 --- /dev/null +++ b/anda/python/python3-protobuf/anda.hcl @@ -0,0 +1,6 @@ +project "pkg" { + rpm { + spec = "python3-python3-protobuf.spec" + update = "" + } +} diff --git a/anda/python/python3-protobuf/python3-python3-protobuf.spec b/anda/python/python3-protobuf/python3-python3-protobuf.spec new file mode 100644 index 0000000000..137675ddf2 --- /dev/null +++ b/anda/python/python3-protobuf/python3-python3-protobuf.spec @@ -0,0 +1,68 @@ +# Created by pyp2rpm-3.3.8 +%global pypi_name python3-protobuf + +Name: python3-%{pypi_name} +Version: 2.5.0 +Release: 1%{?dist} +Summary: Protocol Buffers + +License: New BSD License +URL: http://code.google.com/p/protobuf/ +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) + +%description +Protocol Buffers are Google's data interchange format. + +%prep +%autosetup -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +# so apparently they decided to mix tabs and spaces +# dirty fix +sed "s@\t@ @g" google/protobuf/internal/cpp_message.py > google/protobuf/internal/cpp_message.py + +%build +%py3_build + +%install +%py3_install + +#%check +#%{__python3} setup.py test + +%files +%doc README.txt +%{python3_sitelib}/google/protobuf/compiler/plugin_pb2.py +%{python3_sitelib}/google/protobuf/descriptor.py +%{python3_sitelib}/google/protobuf/descriptor_database.py +%{python3_sitelib}/google/protobuf/descriptor_pb2.py +%{python3_sitelib}/google/protobuf/descriptor_pool.py +%{python3_sitelib}/google/protobuf/internal/api_implementation.py +%{python3_sitelib}/google/protobuf/internal/containers.py +%{python3_sitelib}/google/protobuf/internal/cpp_message.py +%{python3_sitelib}/google/protobuf/internal/decoder.py +%{python3_sitelib}/google/protobuf/internal/encoder.py +%{python3_sitelib}/google/protobuf/internal/enum_type_wrapper.py +%{python3_sitelib}/google/protobuf/internal/message_listener.py +%{python3_sitelib}/google/protobuf/internal/python_message.py +%{python3_sitelib}/google/protobuf/internal/type_checkers.py +%{python3_sitelib}/google/protobuf/internal/utils.py +%{python3_sitelib}/google/protobuf/internal/wire_format.py +%{python3_sitelib}/google/protobuf/message.py +%{python3_sitelib}/google/protobuf/message_factory.py +%{python3_sitelib}/google/protobuf/reflection.py +%{python3_sitelib}/google/protobuf/service.py +%{python3_sitelib}/google/protobuf/service_reflection.py +%{python3_sitelib}/google/protobuf/text_format.py +%{python3_sitelib}/google +%{python3_sitelib}/python3_protobuf-%{version}-py%{python3_version}-*.pth +%{python3_sitelib}/python3_protobuf-%{version}-py%{python3_version}.egg-info + +%changelog +* Sun Jan 08 2023 windowsboy111 - 2.5.0-1 +- Initial package. diff --git a/anda/python/python3-protobuf/update.rhai b/anda/python/python3-protobuf/update.rhai new file mode 100644 index 0000000000..228c4c1fb8 --- /dev/null +++ b/anda/python/python3-protobuf/update.rhai @@ -0,0 +1,2 @@ +let obj = get("https://pypi.org/pypi/python3-protobuf/json").json(); +rpm.version(obj @ "info" @ "version");