mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 17:11:56 +00:00
chore: reorganise folders (#843)
* chore: reorganise folders * more renames --------- Co-authored-by: Lleyton Gray <lleyton@fyralabs.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "python3-protobuf.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
# Created by pyp2rpm-3.3.8
|
||||
%global pypi_name protobuf
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Version: 4.25.1
|
||||
Release: 1%{?dist}
|
||||
Summary: Protocol Buffers
|
||||
|
||||
License: BSD-3-Clause
|
||||
URL: https://developers.google.com/protocol-buffers/
|
||||
Source0: %{pypi_source}
|
||||
|
||||
BuildRequires: python3-devel gcc
|
||||
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}
|
||||
%doc README.md
|
||||
%{python3_sitearch}/google
|
||||
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
||||
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}-nspkg.pth
|
||||
|
||||
%changelog
|
||||
* Sun Feb 19 2023 windowsboy111 <wboy111@outlook.com> - 4.22.0-1
|
||||
- Bump.
|
||||
|
||||
* Tue Jan 10 2023 windowsboy111 <wboy111@outlook.com> - 4.21.12-1
|
||||
- Initial package.
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(pypi("protobuf"));
|
||||
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "python3-ruff.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
%define debug_package %{nil}
|
||||
|
||||
Name: python3-ruff
|
||||
Version: 0.1.7
|
||||
Release: 1%{?dist}
|
||||
Summary: An extremely fast Python linter, written in Rust
|
||||
License: MIT
|
||||
URL: https://beta.ruff.rs/
|
||||
Source0: https://github.com/astral-sh/ruff/archive/refs/tags/v%{version}.tar.gz
|
||||
BuildRequires: python3-installer python3-pip maturin cargo
|
||||
Provides: python3.11dist(ruff) = %{version}
|
||||
|
||||
%description
|
||||
Ruff aims to be orders of magnitude faster than alternative tools while
|
||||
integrating more functionality behind a single, common interface.
|
||||
|
||||
%prep
|
||||
%autosetup -n ruff-%{version}
|
||||
|
||||
%build
|
||||
maturin build --release --strip --locked --all-features
|
||||
|
||||
%install
|
||||
pip3 install --root=%{buildroot} target/wheels/*.whl
|
||||
rm -rf %{python3_sitelib}/ruff/__pycache__
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/METADATA
|
||||
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/RECORD
|
||||
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/WHEEL
|
||||
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/INSTALLER
|
||||
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/REQUESTED
|
||||
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/direct_url.json
|
||||
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/license_files/LICENSE
|
||||
/usr/lib64/python*/site-packages/ruff/__init__.py
|
||||
/usr/lib64/python*/site-packages/ruff/__main__.py
|
||||
/usr/lib64/python*/site-packages/ruff/__pycache__/*.cpython-*.opt-1.pyc
|
||||
/usr/lib64/python*/site-packages/ruff/__pycache__/*.cpython-*.pyc
|
||||
/usr/bin/ruff
|
||||
|
||||
%changelog
|
||||
* Mon Jan 23 2023 windowsboy111 <wboy111@outlook.com> - 0.0.229
|
||||
- Initial package.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(pypi("ruff"));
|
||||
Reference in New Issue
Block a user