Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions SPECS/python-absl-py/python-absl-py.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS)
# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors
# SPDX-FileContributor: Li Guan <guanli.oerv@isrc.iscas.ac.cn>
#
# SPDX-License-Identifier: MulanPSL-2.0

%global srcname absl-py
%global pypi_name absl_py

Name: python-%{srcname}
Version: 2.4.0
Release: %autorelease
Summary: Abseil Common Libraries (Python)
License: Apache-2.0
URL: https://github.com/abseil/abseil-py
#!RemoteAsset: sha256:8c6af82722b35cf71e0f4d1d47dcaebfff286e27110a99fc359349b247dfb5d4
Source0: https://files.pythonhosted.org/packages/source/a/%{srcname}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
BuildSystem: pyproject

BuildOption(install): -l absl

BuildRequires: pyproject-rpm-macros
BuildRequires: pkgconfig(python3)

Provides: python3-%{srcname} = %{version}-%{release}
%python_provide python3-%{srcname}

%description
This repository is a collection of Python library code
for building Python applications. The code is collected from Google's
own Python code base, and has been extensively tested and used in production.

%generate_buildrequires
%pyproject_buildrequires

%files -f %{pyproject_files}
%doc README.md
%license LICENSE

%changelog
%autochangelog
44 changes: 44 additions & 0 deletions SPECS/python-sacrebleu/python-sacrebleu.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS)
# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors
# SPDX-FileContributor: Li Guan <guanli.oerv@isrc.iscas.ac.cn>
#
# SPDX-License-Identifier: MulanPSL-2.0

%global srcname sacrebleu

Name: python-%{srcname}
Version: 2.6.0
Release: %autorelease
Summary: Hassle-free computation of shareable, comparable, and reproducible BLEU, chrF, and TER scores
License: Apache-2.0
URL: https://github.com/mjpost/sacrebleu
#!RemoteAsset: sha256:91499b6cd46138d95154fff1e863c2f9be57e82f0c719d8dd718d0006cf6c566
Source0: https://files.pythonhosted.org/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
BuildSystem: pyproject

BuildOption(install): -l %{srcname}

BuildRequires: pyproject-rpm-macros
BuildRequires: pkgconfig(python3)

Provides: python3-%{srcname} = %{version}-%{release}
%python_provide python3-%{srcname}

%description
SacreBLEU (Post, 2018) provides hassle-free computation of
shareable, comparable, and reproducible BLEU scores. Inspired
by Rico Sennrich's multi-bleu-detok.perl, it produces the official
WMT scores but works with plain text. It also knows all the standard
test sets and handles downloading, processing, and tokenization for you.

%generate_buildrequires
%pyproject_buildrequires

%files -f %{pyproject_files}
%doc README.md
%license LICENSE.txt
%{_bindir}/sacrebleu

%changelog
%autochangelog
42 changes: 42 additions & 0 deletions SPECS/python-sacremoses/python-sacremoses.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS)
# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors
# SPDX-FileContributor: Li Guan <guanli.oerv@isrc.iscas.ac.cn>
#
# SPDX-License-Identifier: MulanPSL-2.0

%global srcname sacremoses

Name: python-%{srcname}
Version: 0.1.1
Release: %autorelease
Summary: Python port of Moses tokenizer, truecaser and normalizer
License: MIT
URL: https://github.com/hplt-project/sacremoses
#!RemoteAsset: sha256:b6fd5d3a766b02154ed80b962ddca91e1fd25629c0978c7efba21ebccf663934
Source0: https://files.pythonhosted.org/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
BuildSystem: pyproject

BuildOption(install): -l %{srcname}
# Not Implemented
BuildOption(check): -e sacremoses.sent_tokenize

BuildRequires: pyproject-rpm-macros
BuildRequires: pkgconfig(python3)

Provides: python3-%{srcname} = %{version}-%{release}
%python_provide python3-%{srcname}

%description
Python port of Moses tokenizer, truecaser and normalizer.

%generate_buildrequires
%pyproject_buildrequires

%files -f %{pyproject_files}
%doc README.md
%license LICENSE
%{_bindir}/sacremoses

%changelog
%autochangelog
42 changes: 42 additions & 0 deletions SPECS/python-schedulefree/python-schedulefree.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS)
# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors
# SPDX-FileContributor: Li Guan <guanli.oerv@isrc.iscas.ac.cn>
#
# SPDX-License-Identifier: MulanPSL-2.0

%global srcname schedulefree

Name: python-%{srcname}
Version: 1.4.1
Release: %autorelease
Summary: Schedule Free Learning in PyTorch
License: Apache-2.0
URL: https://github.com/facebookresearch/schedule_free
#!RemoteAsset: sha256:69ef25601d1fc0d8dd00cb36f9af78833f88b7846f1bb6ddecc9f144f3e9f7cb
Source0: https://files.pythonhosted.org/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
BuildSystem: pyproject

BuildOption(install): -l %{srcname}
# No module named 'algoperf'
BuildOption(check): -e schedulefree.algoperf.external_tuning*
BuildOption(check): -e schedulefree.algoperf.self_tuning.schedule_free_adamw.submission

BuildRequires: pyproject-rpm-macros
BuildRequires: pkgconfig(python3)

Provides: python3-%{srcname} = %{version}-%{release}
%python_provide python3-%{srcname}

%description
Schedule-Free Optimizers in PyTorch.

%generate_buildrequires
%pyproject_buildrequires

%files -f %{pyproject_files}
%doc README.md
%license LICENSE

%changelog
%autochangelog
53 changes: 53 additions & 0 deletions SPECS/python-xgrammar/python-xgrammar.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS)
# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors
# SPDX-FileContributor: Li Guan <guanli.oerv@isrc.iscas.ac.cn>
#
# SPDX-License-Identifier: MulanPSL-2.0

%global srcname xgrammar

Name: python-%{srcname}
Version: 0.1.33
Release: %autorelease
Summary: Fast, Flexible and Portable Structured Generation
License: Apache-2.0
URL: https://github.com/mlc-ai/xgrammar
#!RemoteAsset: sha256:8dbe5fc3d76651ab1fac7a68fc2a118b885fa0ec7189927fb6e0dce0081aea99
Source0: https://files.pythonhosted.org/packages/source/x/%{srcname}/%{srcname}-%{version}.tar.gz
BuildSystem: pyproject

BuildOption(install): -l %{srcname} -L
# No module named 'triton'
BuildOption(check): -e xgrammar.kernels.apply_token_bitmask_inplace_triton
BuildOption(check): -e xgrammar.kernels.apply_token_bitmask_inplace_cuda
# No module named 'mlx'
BuildOption(check): -e xgrammar.kernels.apply_token_bitmask_mlx
BuildOption(check): -e xgrammar.contrib.mlxlm

BuildRequires: pyproject-rpm-macros
BuildRequires: pkgconfig(python3)
BuildRequires: cmake
BuildRequires: ninja

Provides: python3-%{srcname} = %{version}-%{release}
Provides: python3-%{srcname}%{?_isa} = %{version}-%{release}
%python_provide python3-%{srcname}

%description
Efficient, Flexible and Portable Structured Generation.

%prep -a
sed -i 's/nanobind==2\.5\.0/nanobind>=2.5.0/g' pyproject.toml
sed -i 's/-Werror//g' CMakeLists.txt
# Exclude x86-only Triton dependency for RISC-V compatibility.
sed -i '/triton/d' pyproject.toml

%generate_buildrequires
%pyproject_buildrequires

%files -f %{pyproject_files}
%doc README.md
%license LICENSE

%changelog
%autochangelog
Loading