feat: rm duplidated packages (#493)

* feat: rm duplidated packages

These packages are already present in Fedora and is thus redundant.
On the other hand, maturin is kept and renamed since it is more
up-to-date and is more stable (Fedora has the beta version).

* fix(conflicts): maturin

Signed-off-by: madomado <wboy111@outlook.com>

* Update terra-rust-maturin.spec

Signed-off-by: madomado <wboy111@outlook.com>

* fix name

---------

Signed-off-by: madomado <wboy111@outlook.com>
This commit is contained in:
madomado
2023-06-02 15:49:55 +08:00
committed by GitHub
parent 7bd5859cda
commit 16898e5e51
15 changed files with 7 additions and 256 deletions
-5
View File
@@ -1,5 +0,0 @@
project pkg {
rpm {
spec = "python3-orjson.spec"
}
}
-45
View File
@@ -1,45 +0,0 @@
%global debug_package %{nil}
Name: python3-orjson
Version: 3.9.0
Release: 1%{?dist}
Summary: Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy
License: MIT OR Apache-2.0
URL: https://github.com/ijl/orjson
Source0: %{url}/archive/refs/tags/%{version}.tar.gz
BuildRequires: python3-installer python3.11 python3-pip maturin cargo
%{?python_provide:%python_provide python3-orjson}
Provides: python3.11dist(orjson) = %{version}
%description
orjson is a fast, correct JSON library for Python. It benchmarks as the fastest Python library
for JSON and is more correct than the standard json library or other third-party libraries. It
serializes dataclass, datetime, numpy, and UUID instances natively.
%prep
%autosetup -n orjson-%{version}
%build
maturin build --release --strip
%install
sed 's@^\s+"repository":.+?^@@' setup.py > setup.py
python3.11 -m installer --destdir="%{buildroot}" target/wheels/*.whl
rm -rf %{python3_sitelib}/orjson/__pycache__
%files
%doc README.md
%license /usr/lib64/python*/site-packages/orjson-%{version}.dist-info/license_files/LICENSE-MIT
%license /usr/lib64/python*/site-packages/orjson-%{version}.dist-info/license_files/LICENSE-APACHE
/usr/lib64/python*/site-packages/orjson-%{version}.dist-info/METADATA
/usr/lib64/python*/site-packages/orjson-%{version}.dist-info/RECORD
/usr/lib64/python*/site-packages/orjson-%{version}.dist-info/WHEEL
/usr/lib64/python*/site-packages/orjson/__init__.py
/usr/lib64/python*/site-packages/orjson/__init__.pyi
/usr/lib64/python*/site-packages/orjson/__pycache__/__init__.cpython-*.pyc
/usr/lib64/python*/site-packages/orjson/orjson.cpython-*-linux-gnu.so
/usr/lib64/python*/site-packages/orjson/py.typed
%changelog
* Sun Jan 08 2023 windowsboy111 <wboy111@outlook.com> - 3.8.4-1
- Initial package.
-1
View File
@@ -1 +0,0 @@
rpm.version(gh("ijl/orjson"));
-5
View File
@@ -1,5 +0,0 @@
project pkg {
rpm {
spec = "python3-python3-protobuf.spec"
}
}
@@ -1,68 +0,0 @@
# 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: 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.
%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
%dnl %check
%dnl %{__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 <wboy111@outlook.com> - 2.5.0-1
- Initial package.
-1
View File
@@ -1 +0,0 @@
rpm.version(pypi("python3-protobuf"));