This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bryce Larson
committed
May 26, 2021
1 parent
b53c692
commit c2c71c8
Showing
11 changed files
with
262 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{% import "setup/amazon/map.jinja" as buildcfg %} | ||
{% import "setup/macros.jinja" as macros with context %} | ||
{% set pkg_data = salt["pillar.get"]("pkgbuild_registry:" ~ buildcfg.build_release, {}) %} | ||
{% set force = salt["pillar.get"]("pkgbuild_force.all", False) or salt["pillar.get"]("pkgbuild_force." ~ slspath, False) %} | ||
{% set sls_name = "python-contextvars" %} | ||
{% set pypi_name = "contextvars" %} | ||
{% set pkg_info = pkg_data.get(sls_name, {}) %} | ||
{% if "version" in pkg_info %} | ||
{% set pkg_name = pkg_info.get("name", sls_name) %} | ||
{% set version, release = pkg_info["version"].split("-", 1) %} | ||
{% if pkg_info.get("noarch", False) %} | ||
{% set arch = "noarch" %} | ||
{% else %} | ||
{% set arch = buildcfg.build_arch %} | ||
{% endif %} | ||
{{ macros.includes(sls_name, pkg_data) }} | ||
{{sls_name}}-{{version}}: | ||
pkgbuild.built: | ||
- runas: {{buildcfg.build_runas}} | ||
- force: {{force}} | ||
{{ macros.results(sls_name, pkg_data) }} | ||
- dest_dir: {{buildcfg.build_dest_dir}} | ||
- spec: salt://{{slspath}}/spec/{{pkg_name}}.spec | ||
- template: jinja | ||
- tgt: {{buildcfg.build_tgt}} | ||
{{ macros.build_deps(sls_name, pkg_data) }} | ||
{{ macros.requires(sls_name, pkg_data) }} | ||
- sources: | ||
- {{ macros.pypi_source(pypi_name, version) }} | ||
{% endif %} |
Binary file added
BIN
+9.35 KB
file_roots/pkg/python-contextvars/2_4/amzn2/sources/contextvars-2.4.tar.gz
Binary file not shown.
47 changes: 47 additions & 0 deletions
47
file_roots/pkg/python-contextvars/2_4/amzn2/spec/python-contextvars.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
%{!?python3_pkgversion:%global python3_pkgversion 3} | ||
|
||
Name: python-contextvars | ||
Version: 2.4 | ||
Release: 1%{?dist} | ||
Summary: python-contextvars | ||
License: ASL 2.0 | ||
URL: https://github.com/MagicStack/contextvars | ||
Source0: https://pypi.org/packages/source/c/contextvars/contextvars-%{version}.tar.gz | ||
|
||
BuildArch: noarch | ||
BuildRequires: python%{python3_pkgversion}-setuptools | ||
#BuildRequires: epel-rpm-macros | ||
BuildRequires: python3-rpm-macros | ||
#BuildRequires: python3-rpm-generators | ||
|
||
%description | ||
Python Contextvars Backport | ||
|
||
%package -n python%{python3_pkgversion}-contextvars | ||
Summary: python-contextvars | ||
Requires: python%{python3_pkgversion} | ||
Requires: python%{python3_pkgversion}-immutables | ||
%{?python_provide:%python_provide python%{python3_pkgversion}-contextvars} | ||
|
||
%description -n python%{python3_pkgversion}-contextvars | ||
|
||
|
||
%prep | ||
%autosetup -n contextvars-2.4 | ||
|
||
%build | ||
#%%py3_build | ||
CFLAGS="%{optflags}" %{__python3} setup.py %{?py_setup_args} build --executable="%{__python3} %{py3_shbang_opts}" %{?*} | ||
sleep 1 | ||
|
||
|
||
%install | ||
#%%py3_install | ||
CFLAGS="%{optflags}" %{__python3} setup.py %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?*} | ||
|
||
|
||
%files -n python%{python3_pkgversion}-contextvars | ||
%license LICENSE | ||
%doc README.rst | ||
%{python3_sitelib}/contextvars-*.egg-info/ | ||
%{python3_sitelib}/contextvars/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{% import "setup/amazon/map.jinja" as buildcfg %} | ||
{% import "setup/macros.jinja" as macros with context %} | ||
{% set pkg_data = salt["pillar.get"]("pkgbuild_registry:" ~ buildcfg.build_release, {}) %} | ||
{% set force = salt["pillar.get"]("pkgbuild_force.all", False) or salt["pillar.get"]("pkgbuild_force." ~ slspath, False) %} | ||
{% set sls_name = "python-immutables" %} | ||
{% set pypi_name = "immutables" %} | ||
{% set pkg_info = pkg_data.get(sls_name, {}) %} | ||
{% if "version" in pkg_info %} | ||
{% set pkg_name = pkg_info.get("name", sls_name) %} | ||
{% set version, release = pkg_info["version"].split("-", 1) %} | ||
{% if pkg_info.get("noarch", False) %} | ||
{% set arch = "noarch" %} | ||
{% else %} | ||
{% set arch = buildcfg.build_arch %} | ||
{% endif %} | ||
{{ macros.includes(sls_name, pkg_data) }} | ||
{{sls_name}}-{{version}}: | ||
pkgbuild.built: | ||
- runas: {{buildcfg.build_runas}} | ||
- force: {{force}} | ||
{{ macros.results(sls_name, pkg_data) }} | ||
- dest_dir: {{buildcfg.build_dest_dir}} | ||
- spec: salt://{{slspath}}/spec/{{pkg_name}}.spec | ||
- template: jinja | ||
- tgt: {{buildcfg.build_tgt}} | ||
{{ macros.build_deps(sls_name, pkg_data) }} | ||
{{ macros.requires(sls_name, pkg_data) }} | ||
- sources: | ||
- {{ macros.pypi_source(pypi_name, version) }} | ||
{% endif %} |
Binary file added
BIN
+42 KB
file_roots/pkg/python-immutables/0_14/amzn2/sources/immutables-0.14.tar.gz
Binary file not shown.
43 changes: 43 additions & 0 deletions
43
file_roots/pkg/python-immutables/0_14/amzn2/spec/python-immutables.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
%{!?python3_pkgversion:%global python3_pkgversion 3} | ||
|
||
Name: python-immutables | ||
Version: 0.14 | ||
Release: 1%{?dist} | ||
Summary: python-immutables | ||
License: ASL 2.0 | ||
URL: https://github.com/MagicStack/immutables | ||
Source0: https://pypi.org/packages/source/i/immutables/immutables-%{version}.tar.gz | ||
|
||
BuildRequires: gcc | ||
BuildRequires: python%{python3_pkgversion}-devel | ||
BuildRequires: python%{python3_pkgversion}-setuptools | ||
#BuildRequires: epel-rpm-macros | ||
BuildRequires: python3-rpm-macros | ||
#BuildRequires: python3-rpm-generators | ||
|
||
%description | ||
Python Immutables Backport | ||
|
||
%package -n python%{python3_pkgversion}-immutables | ||
Summary: python-immutables | ||
Requires: python%{python3_pkgversion} | ||
%{?python_provide:%python_provide python%{python3_pkgversion}-immutables} | ||
|
||
%description -n python%{python3_pkgversion}-immutables | ||
|
||
|
||
%prep | ||
%autosetup -n immutables-0.14 | ||
|
||
%build | ||
CFLAGS="%{optflags}" %{__python3} setup.py %{?py_setup_args} build --executable="%{__python3} %{py3_shbang_opts}" %{?*} | ||
|
||
%install | ||
CFLAGS="%{optflags}" %{__python3} setup.py %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?*} | ||
|
||
|
||
%files -n python%{python3_pkgversion}-immutables | ||
%license LICENSE | ||
%doc README.rst | ||
%{python3_sitearch}/immutables-*.egg-info/ | ||
%{python3_sitearch}/immutables/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.