Files
packages/anda/tools/glasgow/glasgow.spec
T
Gilver 93ea6f3334 chore: Bump out of sync packages (#9513)
* bump(nightly): goofcord-nightly legcord-nightly mpv-nightly winetricks-git ghostty-nightly zed-nightly nim-nightly types-colorama nvidia-patch scx-scheds-nightly glasgow rpi-utils

* bump(nightly): goofcord-nightly legcord-nightly mpv-nightly rasputin rp-appset winetricks-git ghostty-nightly zed-nightly prismlauncher-nightly nim-nightly types-colorama nvidia-patch opentabletdriver-nightly scx-scheds-nightly glasgow qdl rpi-utils spotx-bash

* bump: discord-canary-openasar discord-canary bun-bin gpu-screen-recorder yt-dlp-git

* bump: yt-dlp-git

---------

Co-authored-by: Raboneko <raboneko@fyralabs.com>
2026-01-27 23:11:41 -06:00

72 lines
1.8 KiB
RPMSpec

%global commit 2b3953f1c4bea0fe38f06627fc4ff96f9c40c8ec
%global commit_date 20260128
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global pypi_name glasgow
%global _desc Scots Army Knife for electronics.
# Errors without setting this for some reason
%global _udevrulesdir /usr/lib/udev/rules.d
Name: python-%{pypi_name}
Version: %commit_date.%shortcommit
Release: 1%?dist
Summary: Scots Army Knife for electronics
License: 0BSD AND Apache-2.0
URL: https://github.com/GlasgowEmbedded/glasgow
Source0: %url/archive/%commit/glasgow-%commit.tar.gz
Patch0: remove-dep-versions.patch
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-pip
BuildRequires: python3-build
BuildRequires: python3-pdm-backend
BuildRequires: git
Requires: yosys
Requires: nextpnr
Requires: icestorm
Recommends: python3-aiohttp
Packager: Owen Zimmerman <owen@fyralabs.com>
%description
%_desc
%package -n python3-%{pypi_name}
Summary: %{summary}
Provides: glasgow
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
%_desc
%prep
%autosetup -p1 -n glasgow-%commit
%build
export PDM_BUILD_SCM_VERSION=0.1.0
pushd software
%pyproject_wheel
popd
%install
%pyproject_install
%pyproject_save_files glasgow
install -Dm644 config/70-glasgow.rules %{buildroot}%{_udevrulesdir}/70-glasgow.rules
%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.md CODEOWNERS CODE_OF_CONDUCT.md CONTRIBUTING.md
%license LICENSE-0BSD.txt LICENSE-Apache-2.0.txt
%{_bindir}/glasgow
%{_udevrulesdir}/70-glasgow.rules
%ghost %python3_sitelib/__pycache__/*.cpython-*.pyc
%ghost %python3_sitelib/%{name}/subcommands/__pycache__/*.cpython-*.pyc
%python3_sitelib/glasgow-*.dist-info/*
%changelog
* Mon Sep 29 2025 Owen Zimmerman <owen@fyralabs.com>
- Initial commit