File vortex-python3-ujson.spec of Package vortex-2022-04-python3-ujson
# bundle name
%define bundle_name 2022-04
# upstream version
%global major_version 5
%global minor_version 11
%global patch_version 0
%global arch_triplet %(gcc -dumpmachine)
%global install_dir /vortex/%{arch_triplet}/%{bundle_name}
# ================= IT SHOULD NOT BE NECESSARY TO MAKE CHANGES BELOW ==============================
# Avoid duplicate build-id files between bundles
%global _build_id_links none
# ==================
# Top-level metadata
# ==================
Name: vortex-%{bundle_name}-python3-ujson
Summary: The ujson python module
URL: https://github.com/ultrajson
License: BSD
Version: %{major_version}.%{minor_version}.%{patch_version}
# Release number will be determined by SUSE open build service
Release: 0.0
# =======================
# Build-time requirements
# =======================
BuildRequires: gcc
BuildRequires: vortex-%{bundle_name}-python3
BuildRequires: vortex-%{bundle_name}-python3-setuptools-scm
BuildRequires: vortex-%{bundle_name}-python3-typing-extensions
BuildRequires: vortex-%{bundle_name}-python3-tomli
# =======================
# Source code and patches
# =======================
Source0: ujson-%{version}.tar.gz
# ==========================================
# Descriptions, and metadata for subpackages
# ==========================================
Requires: vortex-%{bundle_name}-python3
%description
Custom Vortex ujson python module build.
# ======================================================
# The prep phase of the build:
# ======================================================
%global debug_package %{nil}
%prep
cd %{_topdir}/BUILD
# % setup -n ultrajson-%{version}
%setup -n ujson-%{version}
# ======================================================
# Configuring and building the code:
# ======================================================
%build
%{install_dir}/bin/python3 setup.py bdist
# ======================================================
# Installing the built code:
# ======================================================
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}
tar -x -f dist/ujson-%{version}.linux-x86_64.tar.gz -C %{buildroot}
%files
# include all files for now
%{install_dir}