diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2024-09-29 09:48:03 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2024-09-29 09:48:03 +0000 |
commit | 125c5432c81047c0d03b49cb5a7236b596eb5c0f (patch) | |
tree | 4c3a89a365e0e2945d2ea0d83e91ab564b5812dd | |
parent | dd9e06c5571985503929895a4a32d7a892fbfbd3 (diff) |
automatic import of python3-fx2f41
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python3-fx2.spec | 48 | ||||
-rw-r--r-- | relax-setutools-version.patch | 11 | ||||
-rw-r--r-- | sources | 1 |
4 files changed, 61 insertions, 0 deletions
@@ -0,0 +1 @@ +/python3-fx2-0.13.tar.gz diff --git a/python3-fx2.spec b/python3-fx2.spec new file mode 100644 index 0000000..4334546 --- /dev/null +++ b/python3-fx2.spec @@ -0,0 +1,48 @@ +Name: python3-fx2 +Version: 0.13 +Release: 2%{?dist} +Summary: Chip support package for Cypress EZ-USB FX2 series microcontrollers + +License: 0BSD +URL: https://github.com/whitequark/libfx2 +Source: https://github.com/whitequark/libfx2/archive/v%{version}/%{name}-%{version}.tar.gz + +Patch: relax-setutools-version.patch + +BuildArch: noarch +BuildRequires: python3-devel + +%description +The fx2 Python package allows interacting with Cypress EZ-USB FX2 series +microcontrollers. + +%prep +%autosetup -n libfx2-%{version}/software +mv ../LICENSE-0BSD.txt . + +%generate_buildrequires +export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" +%pyproject_buildrequires -t + +%build +export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files fx2 + +%check +%pyproject_check_import + +# XXX: separate package for `fx2tool` ? +%files -f %{pyproject_files} +%license LICENSE-0BSD.txt +%doc README.rst +%{_bindir}/fx2tool + +%changelog +* Thu Aug 15 2024 Antoine Damhet <antoine.damhet@gmail.com> - 0.13-2 +- Bump for rawhide rebuild (python 3.13 support) +* Sat May 04 2024 Antoine Damhet <antoine.damhet@gmail.com> - 0.13-1 +- Initial package version diff --git a/relax-setutools-version.patch b/relax-setutools-version.patch new file mode 100644 index 0000000..00a5ccd --- /dev/null +++ b/relax-setutools-version.patch @@ -0,0 +1,11 @@ +diff --git a/software/pyproject.toml b/software/pyproject.toml +index 15f0a9d2198e..c4a3019ac9e5 100644 +--- a/software/pyproject.toml ++++ b/software/pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["setuptools~=67.0", "setuptools_scm[toml]>=6.2"] ++requires = ["setuptools>=67.0", "setuptools_scm[toml]>=6.2"] + build-backend = "setuptools.build_meta" + + [project] @@ -0,0 +1 @@ +c592e78b887b75a5b7609205c10de4fc python3-fx2-0.13.tar.gz |