diff --git a/anda/python/orjson/anda.hcl b/anda/python/orjson/anda.hcl new file mode 100644 index 0000000000..b8d6d3f41b --- /dev/null +++ b/anda/python/orjson/anda.hcl @@ -0,0 +1,6 @@ +project "pkg" { + rpm { + spec = "python3-orjson.spec" + update = "" + } +} diff --git a/anda/python/orjson/python3-orjson.spec b/anda/python/orjson/python3-orjson.spec new file mode 100644 index 0000000000..c51129fa79 --- /dev/null +++ b/anda/python/orjson/python3-orjson.spec @@ -0,0 +1,33 @@ +Name: python3-orjson +Version: 3.8.4 +Release: %autorelease +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 +BuildArch: noarch +BuildRequires: rust-maturin rust >= 1.60 +Requires: libc + +%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 %{name}-%{version} + +%build +maturin build --release --strip + +%install +pip install . + +%files +%doc README.md +%license LICENSE-APACHE +%license LICENSE-MIT + +%changelog +* Sun Jan 08 2023 windowsboy111 - 3.8.4-1 +- Initial package. diff --git a/anda/python/orjson/update.rhai b/anda/python/orjson/update.rhai new file mode 100644 index 0000000000..b3cb7a6345 --- /dev/null +++ b/anda/python/orjson/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("ijl/orjson")); diff --git a/anda/python/protobuf/anda.hcl b/anda/python/protobuf/anda.hcl new file mode 100644 index 0000000000..f7fe354892 --- /dev/null +++ b/anda/python/protobuf/anda.hcl @@ -0,0 +1,6 @@ +project "pkg" { + rpm { + spec = "python3-protobuf.spec" + update = "" + } +} diff --git a/anda/python/protobuf/python3-protobuf.spec b/anda/python/protobuf/python3-protobuf.spec new file mode 100644 index 0000000000..f7b28fa60d --- /dev/null +++ b/anda/python/protobuf/python3-protobuf.spec @@ -0,0 +1,68 @@ +# Created by pyp2rpm-3.3.8 +%global pypi_name python3-protobuf + +Name: %{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/protobuf/update.rhai b/anda/python/protobuf/update.rhai new file mode 100644 index 0000000000..228c4c1fb8 --- /dev/null +++ b/anda/python/protobuf/update.rhai @@ -0,0 +1,2 @@ +let obj = get("https://pypi.org/pypi/python3-protobuf/json").json(); +rpm.version(obj @ "info" @ "version"); diff --git a/anda/rust/maturin/anda.hcl b/anda/rust/maturin/anda.hcl new file mode 100644 index 0000000000..34959d2e7c --- /dev/null +++ b/anda/rust/maturin/anda.hcl @@ -0,0 +1,6 @@ +project "pkg" { + rpm { + spec = "rust-maturin.spec" + update = "" + } +} diff --git a/anda/rust/maturin/rust-maturin.spec b/anda/rust/maturin/rust-maturin.spec new file mode 100644 index 0000000000..bb41eeccc0 --- /dev/null +++ b/anda/rust/maturin/rust-maturin.spec @@ -0,0 +1,260 @@ +# Generated by rust2rpm 23 +%global crate maturin + +Name: rust-maturin +Version: 0.14.8 +Release: %autorelease +Summary: Build and publish crates with pyo3, rust-cpython and cffi bindings as well as rust binaries as python packages + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/maturin +Source: %{crates_source} + +BuildRequires: pkgconfig anda-srpm-macros rust-packaging >= 21 + +%global _description %{expand: +Build and publish crates with pyo3, rust-cpython and cffi bindings as well as +rust binaries as python packages.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license license-apache +%license license-mit +%doc Changelog.md +%doc Code-of-Conduct.md +%doc README.md +%{_bindir}/maturin + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/license-apache +%license %{crate_instdir}/license-mit +%doc %{crate_instdir}/Changelog.md +%doc %{crate_instdir}/Code-of-Conduct.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+bytesize-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+bytesize-devel %{_description} + +This package contains library source intended for building other packages which +use the "bytesize" feature of the "%{crate}" crate. + +%files -n %{name}+bytesize-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+configparser-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+configparser-devel %{_description} + +This package contains library source intended for building other packages which +use the "configparser" feature of the "%{crate}" crate. + +%files -n %{name}+configparser-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+faster-tests-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+faster-tests-devel %{_description} + +This package contains library source intended for building other packages which +use the "faster-tests" feature of the "%{crate}" crate. + +%files -n %{name}+faster-tests-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+human-panic-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+human-panic-devel %{_description} + +This package contains library source intended for building other packages which +use the "human-panic" feature of the "%{crate}" crate. + +%files -n %{name}+human-panic-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+keyring-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+keyring-devel %{_description} + +This package contains library source intended for building other packages which +use the "keyring" feature of the "%{crate}" crate. + +%files -n %{name}+keyring-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+log-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+log-devel %{_description} + +This package contains library source intended for building other packages which +use the "log" feature of the "%{crate}" crate. + +%files -n %{name}+log-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+multipart-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+multipart-devel %{_description} + +This package contains library source intended for building other packages which +use the "multipart" feature of the "%{crate}" crate. + +%files -n %{name}+multipart-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+native-tls-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+native-tls-devel %{_description} + +This package contains library source intended for building other packages which +use the "native-tls" feature of the "%{crate}" crate. + +%files -n %{name}+native-tls-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+native-tls-crate-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+native-tls-crate-devel %{_description} + +This package contains library source intended for building other packages which +use the "native-tls-crate" feature of the "%{crate}" crate. + +%files -n %{name}+native-tls-crate-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+password-storage-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+password-storage-devel %{_description} + +This package contains library source intended for building other packages which +use the "password-storage" feature of the "%{crate}" crate. + +%files -n %{name}+password-storage-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+rpassword-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rpassword-devel %{_description} + +This package contains library source intended for building other packages which +use the "rpassword" feature of the "%{crate}" crate. + +%files -n %{name}+rpassword-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+rustls-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rustls-devel %{_description} + +This package contains library source intended for building other packages which +use the "rustls" feature of the "%{crate}" crate. + +%files -n %{name}+rustls-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+tracing-subscriber-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tracing-subscriber-devel %{_description} + +This package contains library source intended for building other packages which +use the "tracing-subscriber" feature of the "%{crate}" crate. + +%files -n %{name}+tracing-subscriber-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+upload-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+upload-devel %{_description} + +This package contains library source intended for building other packages which +use the "upload" feature of the "%{crate}" crate. + +%files -n %{name}+upload-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+ureq-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+ureq-devel %{_description} + +This package contains library source intended for building other packages which +use the "ureq" feature of the "%{crate}" crate. + +%files -n %{name}+ureq-devel +%ghost %{crate_instdir}/Cargo.toml + + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep_online + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/anda/rust/maturin/update.rhai b/anda/rust/maturin/update.rhai new file mode 100644 index 0000000000..b92ca17a73 --- /dev/null +++ b/anda/rust/maturin/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("PyO3/maturin"));