mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-28 14:28:28 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 739d0ca22d | |||
| b733c978c4 | |||
| 30b4ab6659 |
@@ -8,7 +8,7 @@
|
||||
|
||||
Name: 1password-cli
|
||||
Version: 2.34.1
|
||||
Release: 2%{?dist}
|
||||
Release: 1%{?dist}
|
||||
Summary: 1Password command-line tool
|
||||
|
||||
Packager: Cappy Ishihara <cappy@fyralabs.com>
|
||||
@@ -21,8 +21,6 @@ ExclusiveArch: x86_64 aarch64
|
||||
|
||||
BuildRequires: systemd-rpm-macros
|
||||
BuildRequires: unzip
|
||||
Requires(post): /usr/bin/chown
|
||||
Requires(post): /usr/bin/chmod
|
||||
Recommends: 1password
|
||||
Recommends: polkit
|
||||
|
||||
@@ -42,12 +40,8 @@ install -Dm0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/%{name}.conf
|
||||
%pre
|
||||
%sysusers_create_package %{name} %{SOURCE1}
|
||||
|
||||
%post
|
||||
/usr/bin/chown root:onepassword-cli %{_bindir}/op
|
||||
/usr/bin/chmod 2755 %{_bindir}/op
|
||||
|
||||
%files
|
||||
%{_bindir}/op
|
||||
%attr(2755,root,onepassword-cli) %{_bindir}/op
|
||||
%{_sysusersdir}/%{name}.conf
|
||||
|
||||
%changelog
|
||||
|
||||
@@ -1 +1 @@
|
||||
g onepassword-cli 5013
|
||||
g onepassword-cli -
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
%global arctis_sound_manager_services arctis-manager.service arctis-video-router.service arctis-gui.service
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Version: 1.1.86
|
||||
Version: 1.1.85
|
||||
Release: 1%{?dist}
|
||||
Summary: GUI for SteelSeries Arctis headsets
|
||||
License: GPL-3.0-or-later
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
# GLIBCXX_ASSERTIONS is known to break RPCS3
|
||||
%global build_cflags %(echo "%{__build_flags_lang_c}" | sed 's|-Wp,-D_GLIBCXX_ASSERTIONS ||g') %{?_distro_extra_cflags}
|
||||
%global build_cxxflags %(echo "%{__build_flags_lang_cxx}" | sed 's|-Wp,-D_GLIBCXX_ASSERTIONS ||g') %{?_distro_extra_cflags}
|
||||
%global commit cffd02bb3583aab3ae718b0435bcf80735c9badc
|
||||
%global ver 0.0.41-19517
|
||||
%global commit a7fc31f3212c55bf0b70b45875c52dfc94f6641a
|
||||
%global ver 0.0.41-19515
|
||||
|
||||
Name: rpcs3
|
||||
Version: %(echo %{ver} | sed 's/-/^/g')
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "nmgui.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
%global appid com.github.s-adi-dev.nmgui
|
||||
%global org com.github.s-adi-dev
|
||||
|
||||
Name: nmgui
|
||||
Version: 1.0.0
|
||||
Release: 1%?dist
|
||||
Summary: A simple and lightweight GTK4-based GUI for managing Wi-Fi using NetworkManager (nmcli) under the hood
|
||||
License: GPL-3.0-only
|
||||
URL: https://github.com/s-adi-dev/nmgui
|
||||
Source0: %url/archive/refs/tags/v%version.tar.gz
|
||||
Source1: https://raw.githubusercontent.com/s-adi-dev/nmgui/refs/heads/main/README.md
|
||||
Source2: https://raw.githubusercontent.com/s-adi-dev/nmgui/refs/heads/main/nmgui.desktop
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildArch: noarch
|
||||
Packager: madonuko <mado@fyralabs.com>
|
||||
|
||||
%description
|
||||
%summary.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
cp %{S:1} %{S:2} .
|
||||
cat<<PYEOF > pyproject.toml
|
||||
[build-system]
|
||||
requires = ["setuptools>=64.0"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
[project]
|
||||
name = "%name"
|
||||
version = "%version"
|
||||
description = "%summary"
|
||||
license = "GPL-3.0-only"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.9"
|
||||
dependencies = [
|
||||
"nmcli>=1.5.0",
|
||||
"PyGObject>=3.52.3",
|
||||
"pycairo>=1.28.0",
|
||||
]
|
||||
[project.urls]
|
||||
Homepage = "https://github.com/s-adi-dev/nmgui"
|
||||
[project.scripts]
|
||||
nmgui = "nmgui.main:main"
|
||||
[tool.setuptools.packages.find]
|
||||
include = ["nmgui*"]
|
||||
PYEOF
|
||||
# Add main() entry point function
|
||||
sed -i '/^if __name__ == "__main__":$/c\def main():' app/main.py
|
||||
cat >> app/main.py << 'PYEOF'
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
PYEOF
|
||||
mv app nmgui
|
||||
touch nmgui/__init__.py
|
||||
# Fix intra-package imports to use nmgui. prefix
|
||||
sed -i 's/^from models import/from nmgui.models import/' nmgui/main.py nmgui/network_service.py nmgui/ui/*.py
|
||||
sed -i 's/^from network_service import/from nmgui.network_service import/' nmgui/main.py nmgui/ui/*.py
|
||||
sed -i 's/^from ui\./from nmgui.ui./' nmgui/main.py nmgui/ui/*.py
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%pyproject_save_files %name
|
||||
|
||||
%desktop_file_install nmgui.desktop
|
||||
%terra_appstream
|
||||
|
||||
%files -f %{pyproject_files}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%_bindir/nmgui
|
||||
%_appsdir/nmgui.desktop
|
||||
%_metainfodir/%appid.metainfo.xml
|
||||
|
||||
%changelog
|
||||
* Sun Jun 28 2026 madonuko <mado@fyralabs.com> - 1.0.0-1
|
||||
- Initial package.
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("s-adi-dev/nmgui"));
|
||||
@@ -1,6 +1,6 @@
|
||||
%global commit 80005d2724835db38318f9e6c2275758b961fc99
|
||||
%global commit 3f860bef9b3485a9bc442da2be30a8363c3cb35d
|
||||
%global shortcommit %{sub %{commit} 1 7}
|
||||
%global commit_date 20260628
|
||||
%global commit_date 20260624
|
||||
|
||||
Name: vgmstream
|
||||
Version: 0~%{commit_date}git.%shortcommit
|
||||
|
||||
Reference in New Issue
Block a user