Compare commits

..

22 Commits

Author SHA1 Message Date
madomado a42d1b8892 Merge branch 'f38' into p/rustdesk 2024-03-25 22:21:47 +08:00
madomado eb206aede2 Update rustdesk.spec
Signed-off-by: madomado <madonuko@outlook.com>
2023-12-04 19:45:44 +08:00
madomado 1dbe7b2f08 Update rustdesk.spec
Signed-off-by: madomado <madonuko@outlook.com>
2023-12-03 23:13:50 +08:00
madomado 16db6e4603 Update rustdesk.spec
Signed-off-by: madomado <madonuko@outlook.com>
2023-12-03 23:09:23 +08:00
madomado c9759df23b Update rustdesk.spec
Signed-off-by: madomado <madonuko@outlook.com>
2023-12-03 20:50:21 +08:00
madomado 247d2cf88c Update rustdesk.spec
Signed-off-by: madomado <madonuko@outlook.com>
2023-10-30 22:12:14 +08:00
Cappy Ishihara 09d9f61ae9 Update rustdesk.spec
Signed-off-by: Cappy Ishihara <cappy@cappuchino.xyz>
2023-10-30 21:10:53 +07:00
madomado 283914c2a3 Update rustdesk.spec
Signed-off-by: madomado <madonuko@outlook.com>
2023-10-30 20:40:55 +08:00
madomado c1508b7e34 add files
Signed-off-by: madomado <madonuko@outlook.com>
2023-10-30 00:07:10 +08:00
madomado 240daf4bb7 add patches for rustdesk 2023-10-29 22:31:40 +08:00
Cappy Ishihara 75f598918d create dirs before install 2023-10-23 21:24:05 +07:00
Cappy Ishihara 9c83a0b3c9 fix funny copies 2023-10-23 20:27:59 +07:00
Cappy Ishihara b7f0f01b25 there is no pycache in ba sing se 2023-10-23 20:26:19 +07:00
Cappy Ishihara 841a7dec99 funny 2023-10-23 17:05:10 +07:00
Cappy Ishihara d8da0ba726 build all features 2023-10-23 16:55:58 +07:00
Cappy Ishihara f4301a93e6 maybe not all features, also pam 2023-10-23 16:40:07 +07:00
Cappy Ishihara 9b460cb0ec set features 2023-10-23 16:06:25 +07:00
Cappy Ishihara b0429a6fcc wtf 2023-10-23 15:47:08 +07:00
Cappy Ishihara 189563adbf add gstreamer-app 2023-10-23 15:36:23 +07:00
Cappy Ishihara f3760d0ecc add rustdesk package 2023-10-23 15:20:40 +07:00
Cappy Ishihara a6d81ba1ed add build deps 2023-10-01 22:48:50 +07:00
Cappy Ishihara 0b20f0bf6d add rustdesk-selinux 2023-10-01 22:38:55 +07:00
99 changed files with 507 additions and 727 deletions
-9
View File
@@ -1,9 +0,0 @@
{
"repoOwner": "terrapkg",
"repoName": "packages",
"resetAuthor": true,
"targetBranchChoices": ["f38", "f39", "f40", "frawhide"],
"branchLabelMapping": {
"^sync-(.+)$": "$1"
}
}
+7
View File
@@ -54,6 +54,13 @@ jobs:
- name: Set up git repository
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Cache buildroot
id: br-cache
uses: actions/cache@v3
with:
path: /var/cache
key: ${{ runner.os }}-br-${{ matrix.version }}-${{ matrix.pkg.arch }}
- name: Include custom build template instead of package default
run: |
cp -v anda/terra/mock-configs/terra.tpl /etc/mock/templates/terra.tpl
-37
View File
@@ -1,37 +0,0 @@
name: Automatic backport/sync action
on:
pull_request_target:
types: ["labeled", "closed"]
jobs:
backport:
name: Backport/sync PR
runs-on: ubuntu-latest
if: github.event.pull_request.merged
steps:
- name: Install SSH signing key
run: |
mkdir -p ${{ runner.temp }}
echo "${{ secrets.SSH_SIGNING_KEY }}" > ${{ runner.temp }}/signing_key
chmod 0700 ${{ runner.temp }}/signing_key
- name: Setup Raboneko Signing
run: |
git config --global gpg.format "ssh"
git config --global user.signingkey "${{ runner.temp }}/signing_key"
git config --global commit.gpgsign true
- name: Backport Action
uses: sorenlouv/backport-github-action@v9.3.0
with:
github_token: ${{ secrets.RABONEKO_BACKPORT_GITHUB_TOKEN }}
auto_backport_label_prefix: sync-
- name: Info log
if: ${{ success() }}
run: cat ~/.backport/backport.info.log
- name: Debug log
if: ${{ failure() }}
run: cat ~/.backport/backport.debug.log
+2 -2
View File
@@ -1,6 +1,6 @@
Name: anki-bin
Version: 24.04.1
Release: 1%?dist
Version: 23.12.1
Release: 1%{?dist}
Summary: Flashcard program for using space repetition learning (Installed with wheel)
License: AGPL-3.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-or-later AND MIT AND BSD-3-Clause AND CC-BY-SA-3.0 AND CC-BY-3.0 AND Apache-2.0 AND CC-BY-2.5
URL: https://apps.ankiweb.net/
+2 -2
View File
@@ -1,6 +1,6 @@
Name: anki-qt5
Version: 24.04.1
Release: 1%?dist
Version: 23.12.1
Release: 1%{?dist}
Summary: Flashcard program for using space repetition learning
License: AGPL-3.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-or-later AND MIT AND BSD-3-Clause AND CC-BY-SA-3.0 AND CC-BY-3.0 AND Apache-2.0 AND CC-BY-2.5
URL: https://apps.ankiweb.net/
+2 -2
View File
@@ -1,6 +1,6 @@
Name: anki
Version: 24.04.1
Release: 1%?dist
Version: 23.12.1
Release: 1%{?dist}
Summary: Flashcard program for using space repetition learning
License: AGPL-3.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-or-later AND MIT AND BSD-3-Clause AND CC-BY-SA-3.0 AND CC-BY-3.0 AND Apache-2.0 AND CC-BY-2.5
URL: https://apps.ankiweb.net/
@@ -6,7 +6,7 @@
%global __provides_exclude_from %{_datadir}/%{name}/.*\\.so
Name: discord-canary-openasar
Version: 0.0.346
Version: 0.0.324
Release: 1%?dist
Summary: A snappier Discord rewrite with features like further customization and theming
License: MIT AND https://discord.com/terms
+1 -1
View File
@@ -6,7 +6,7 @@
%global __provides_exclude_from %{_datadir}/%{name}/.*\\.so
Name: discord-canary
Version: 0.0.346
Version: 0.0.324
Release: 1%?dist
Summary: Free Voice and Text Chat for Gamers
URL: discord.com
@@ -6,7 +6,7 @@
%global __provides_exclude_from %{_datadir}/%{name}/.*\\.so
Name: discord-openasar
Version: 0.0.52
Version: 0.0.46
Release: 1%?dist
Summary: A snappier Discord rewrite with features like further customization and theming
License: MIT AND https://discord.com/terms
@@ -6,7 +6,7 @@
%global __provides_exclude_from %{_datadir}/%{name}/.*\\.so
Name: discord-ptb-openasar
Version: 0.0.81
Version: 0.0.76
Release: 1%?dist
Summary: A snappier Discord rewrite with features like further customization and theming
License: MIT AND https://discord.com/terms
+1 -1
View File
@@ -6,7 +6,7 @@
%global __provides_exclude_from %{_datadir}/%{name}/.*\\.so
Name: discord-ptb
Version: 0.0.81
Version: 0.0.76
Release: 1%?dist
Summary: Free Voice and Text Chat for Gamers.
URL: https://discord.com
+1 -1
View File
@@ -6,7 +6,7 @@
%global __provides_exclude_from %{_datadir}/%{name}/.*\\.so
Name: discord
Version: 0.0.52
Version: 0.0.46
Release: 1%?dist
Summary: Free Voice and Text Chat for Gamers
URL: https://discord.com
+2 -2
View File
@@ -1,6 +1,6 @@
%global commit a46ce9e28cd97f7280c085649a79f85aa1d0fe70
%global commit 27fb4c474f5ca850470cd07dfc789ba8bf94b35c
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commit_date 20240325
%global commit_date 20240312
%global ver v0.37.0
Name: mpv-nightly
+2 -2
View File
@@ -13,8 +13,8 @@
%global crate sccache
Name: rust-sccache
Version: 0.8.0
Release: 1%?dist
Version: 0.7.7
Release: 1%{?dist}
Summary: Ccache-like tool
License: Apache-2.0
@@ -6,7 +6,7 @@
Name: vencord-desktop
Provides: VencordDesktop = %{version}-%{release}
Version: 1.5.2.alpha.1
Version: 1.5.1
Release: 1%?dist
License: GPL-3.0
Summary: Vesktop is a cross platform desktop app aiming to give you a snappier Discord experience with Vencord pre-installed
+3 -3
View File
@@ -1,6 +1,6 @@
%global nodev 20.12.2
%global npmv 10.5.0
%global ver 0.19.1
%global nodev 18.13.0
%global npmv 8.19.3
%global ver 0.18.0
%define debug_package %nil
%global _build_id_links none
+1 -1
View File
@@ -1,4 +1,4 @@
%define _ubuntu_rel 22.10.20220822-0ubuntu12
%define _ubuntu_rel 22.10.20220822-0ubuntu11
%global _hardened_build 0
Name: compiz9
@@ -9,7 +9,6 @@ Summary: Stylish top panel
Version: 3.0.5
Release: 1%{?dist}
License: GPL-2.0-or-later
Epoch: 1
URL: https://github.com/elementary/wingpanel
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
@@ -1,5 +1,5 @@
%global forgeurl https://gitlab.com/ubports/development/core/lomiri-app-launch
%global commit 11bddd982b3643aacdf052cf339ae1ca1873fbb2
%global commit 86e830265b067a239aca6d18094ece43f5a549b7
%forgemeta
Name: lomiri-app-launch
@@ -1,5 +1,5 @@
%global forgeurl https://gitlab.com/ubports/development/core/lomiri-system-settings
%global commit aacd2e4704112468b44332e8c8b1f7445651b8da
%global commit bac3baa2876c61fe2963ad5e861f574d4b9c4402
%forgemeta
Name: lomiri-system-settings
@@ -1,4 +1,4 @@
%global rn 4
%global rn 3
Name: unity-greeter
Version: 23.10.1
@@ -1,4 +1,4 @@
%define _ubuntu_rel 1ubuntu4
%define _ubuntu_rel 1ubuntu1
Name: unity-session
Summary: Lightdm profile for Unity 7
@@ -1,4 +1,4 @@
%define archive unity_7.7.0+23.04.20230222.2-0ubuntu7.tar.xz
%define archive unity_7.7.0+23.04.20230222.2-0ubuntu6.tar.xz
Name: unity-shell
Version: 7.7.0
@@ -1,7 +1,7 @@
Name: ayatana-indicator-notifications
Summary: Ayatana Indicator Notifications Applet
Version: 23.10.1
Release: 1%?dist
Version: 23.10.0
Release: 1%{?dist}
License: GPL-3.0
URL: https://github.com/AyatanaIndicators/ayatana-indicator-notifications
Source0: %{url}/archive/refs/tags/%{version}.tar.gz
@@ -1,7 +1,7 @@
Name: ayatana-indicator-sound
Summary: Ayatana Indicator Sound Applet
Version: 24.4.0
Release: 1%?dist
Version: 23.10.3
Release: 1%{?dist}
License: GPLv3
URL: https://github.com/AyatanaIndicators/ayatana-indicator-sound
Source0: %{url}/archive/refs/tags/%{version}.tar.gz
+1 -1
View File
@@ -12,7 +12,7 @@
%endif
Name: codium
Version: 1.88.1.24104
Version: 1.87.2.24072
Release: 1%?dist
Summary: Code editing. Redefined.
License: MIT
+1 -1
View File
@@ -1,5 +1,5 @@
Name: flutter
Version: 3.19.6
Version: 3.19.4
Release: 1%?dist
Summary: SDK for crafting beautiful, fast user experiences from a single codebase
License: BSD-3-Clause
+1 -1
View File
@@ -7,7 +7,7 @@
# https://github.com/containerd/containerd
%global goipath github.com/containerd/containerd
Version: 1.7.16
Version: 1.7.14
%gometa
+1 -1
View File
@@ -1,7 +1,7 @@
%define debug_package %nil
Name: moby-buildx
Version: 0.14.0
Version: 0.13.1
Release: 1%?dist
Summary: Docker CLI plugin for extended build capabilities with BuildKit
+1 -1
View File
@@ -1,7 +1,7 @@
%define debug_package %{nil}
Name: moby-compose
Version: 2.27.0
Version: 2.26.0
Release: 1%?dist
Summary: Define and run multi-container applications with Docker
@@ -2,7 +2,7 @@
%global debug_package %{nil}
Name: iosevka-fusion-fonts
Version: 29.2.0
Version: 29.0.4
Release: 1%?dist
Summary: A custom font based on iosevka
+2 -2
View File
@@ -4,8 +4,8 @@ Nerd Fonts is a project that patches developer targeted fonts with a high
number of glyphs (icons).}
Name: nerd-fonts
Version: 3.2.1
Release: 1%?dist
Version: 3.1.1
Release: 1%{?dist}
URL: https://nerdfonts.com/
Source0: https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v%version/readme.md
Source1: https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v%version/LICENSE
@@ -1,5 +1,5 @@
Name: sarasa-gothic-fonts
Version: 1.0.10
Version: 1.0.8
Release: 1%?dist
URL: https://github.com/be5invis/Sarasa-Gothic
Source0: %url/releases/download/v%version/Sarasa-TTC-%version.7z
+2 -2
View File
@@ -1,9 +1,9 @@
%define osuresver 2024.410.0
%define osuresver 2024.321.0
%global debug_package %{nil}
%define __strip /bin/true
Name: osu-lazer
Version: 2024.412.1
Version: 2024.312.1
Release: 1%?dist
Summary: The future of osu! and the beginning of an open era! Commonly known by the codename osu!lazer. Pew pew.
ExclusiveArch: x86_64
@@ -1,13 +1,13 @@
%global real_name prismlauncher
%global nice_name PrismLauncher
%global commit df0280f52b68f4352d8da711136609c16ce4db7b
%global commit 3b0564f098c49be2fd3082928c91440c73df4d80
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global libnbtplusplus_commit a5e8fd52b8bf4ab5d5bcc042b2a247867589985f
%global quazip_commit 6117161af08e366c37499895b00ef62f93adc345
%global tomlplusplus_commit 7eb2ffcc09f8e9890dc0b77ff8ab00fc53b1f2b8
%global commit_date 20240325
%global commit_date 20240311
%global snapshot_info %{commit_date}.%{shortcommit}
%bcond_without qt6
@@ -76,9 +76,8 @@ Requires(postun): desktop-file-utils
Requires: qt%{qt_version}-qtimageformats
Requires: qt%{qt_version}-qtsvg
Requires: javapackages-filesystem
Recommends: java-21-openjdk
Recommends: java-17-openjdk
Suggests: java-1.8.0-openjdk
Requires: java-17-openjdk
Requires: java-1.8.0-openjdk
# xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128
Recommends: xrandr
@@ -1,13 +1,13 @@
%global real_name prismlauncher
%global nice_name PrismLauncher
%global commit df0280f52b68f4352d8da711136609c16ce4db7b
%global commit 3b0564f098c49be2fd3082928c91440c73df4d80
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global libnbtplusplus_commit a5e8fd52b8bf4ab5d5bcc042b2a247867589985f
%global quazip_commit 6117161af08e366c37499895b00ef62f93adc345
%global tomlplusplus_commit 7eb2ffcc09f8e9890dc0b77ff8ab00fc53b1f2b8
%global commit_date 20240325
%global commit_date 20240311
%global snapshot_info %{commit_date}.%{shortcommit}
%bcond_with qt6
@@ -76,9 +76,8 @@ Requires(postun): desktop-file-utils
Requires: qt%{qt_version}-qtimageformats
Requires: qt%{qt_version}-qtsvg
Requires: javapackages-filesystem
Recommends: java-21-openjdk
Recommends: java-17-openjdk
Suggests: java-1.8.0-openjdk
Requires: java-17-openjdk
Requires: java-1.8.0-openjdk
# xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128
Recommends: xrandr
@@ -23,7 +23,7 @@ Name: prismlauncher
Name: prismlauncher-qt5
%endif
Version: 8.2
Release: 2%?dist
Release: 1%?dist
Summary: Minecraft launcher with ability to manage multiple instances
# see COPYING.md for more information
# each file in the source also contains a SPDX-License-Identifier header that declares its license
@@ -61,9 +61,8 @@ Requires(postun): desktop-file-utils
Requires: qt%{qt_version}-qtimageformats
Requires: qt%{qt_version}-qtsvg
Requires: javapackages-filesystem
Recommends: java-21-openjdk
Recommends: java-17-openjdk
Suggests: java-1.8.0-openjdk
Requires: java-17-openjdk
Requires: java-1.8.0-openjdk
# xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128
Recommends: xrandr
@@ -132,9 +131,6 @@ sed -i "s|\$ORIGIN/||" CMakeLists.txt
%changelog
* Wed Apr 03 2024 seth <getchoo at tuta dot io> - 8.2-2
- move JREs to weak deps, add java 21 for snapshots
* Wed Jul 26 2023 seth <getchoo at tuta dot io> - 7.2-2
- remove terra-fractureiser-detector from recommends, use proper build platform
+3 -7
View File
@@ -22,7 +22,7 @@ Name: prismlauncher
%else
Name: prismlauncher-qt5
%endif
Version: 8.3
Version: 8.2
Release: 1%?dist
Summary: Minecraft launcher with ability to manage multiple instances
# see COPYING.md for more information
@@ -61,9 +61,8 @@ Requires(postun): desktop-file-utils
Requires: qt%{qt_version}-qtimageformats
Requires: qt%{qt_version}-qtsvg
Requires: javapackages-filesystem
Recommends: java-21-openjdk
Recommends: java-17-openjdk
Suggests: java-1.8.0-openjdk
Requires: java-17-openjdk
Requires: java-1.8.0-openjdk
# xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128
Recommends: xrandr
@@ -132,9 +131,6 @@ sed -i "s|\$ORIGIN/||" CMakeLists.txt
%changelog
* Wed Apr 03 2024 seth <getchoo at tuta dot io> - 8.2-2
- move JREs to weak deps, add java 21 for snapshots
* Wed Jul 26 2023 seth <getchoo at tuta dot io> - 7.2-2
- remove terra-fractureiser-detector from recommends, use proper build platform
+1 -1
View File
@@ -1,7 +1,7 @@
%define debug_package %{nil}
Name: dart
Version: 3.3.4
Version: 3.3.2
Release: 1%?dist
Summary: The Dart Language
License: BSD-3-Clause
@@ -1,5 +1,5 @@
Name: groovy-docs
Version: 4.0.21
Version: 4.0.20
Release: 1%?dist
Summary: Documentation for the Groovy programming language
URL: https://groovy-lang.org/
+1 -1
View File
@@ -1,5 +1,5 @@
Name: groovy
Version: 4.0.21
Version: 4.0.20
Release: 1%?dist
Summary: A multi-faceted language for the Java platform
BuildArch: noarch
+16 -39
View File
@@ -1,13 +1,12 @@
%global csrc_commit 561b417c65791cd8356b5f73620914ceff845d10
%global commit 33902d9dbb65fbfdfbd6e3b2a34c6e19eccb762f
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commit 78c834dd76f273d8813247647531005a1f7db1a6
%global ver 2.1.1
%global commit_date 20240322
%global commit_date 20240312
%global debug_package %nil
Name: nim-nightly
Version: %ver^%commit_date.%shortcommit
Release: 2%?dist
Name: nim-nighlty
Version: %ver^%commit_date.%commit
Release: 1%?dist
Summary: Imperative, multi-paradigm, compiled programming language
License: MIT and BSD
URL: https://nim-lang.org
@@ -19,9 +18,6 @@ Source4: nimsuggest.1
BuildRequires: gcc mold git gcc-c++ nodejs openssl-devel pkgconfig(bash-completion) gc-devel pcre pcre-devel
Requires: redhat-rpm-config gcc
Conflicts: choosenim
# somehow wrong name and never noticed
Provides: nim-nightly = %version-%release
Obsoletes: nim-nighlty < 2.1.1^20240404.9e1b170-2
%description
@@ -32,9 +28,6 @@ order of priority).
%package tools
Summary: Tools for Nim programming language
Provides: nim-nightly-tools = %version-%release
Obsoletes: nim-nighlty-tools < 2.1.1^20240404.9e1b170-2
%description tools
Nim is a compiled, garbage-collected systems programming language with a
design that focuses on efficiency, expressiveness, and elegance (in that
@@ -43,12 +36,9 @@ order of priority).
This package provides various tools, which help Nim programmers.
%ifarch x86_64
%package doc
Summary: Documentation for Nim programming language
BuildArch: noarch
Provides: nim-nightly-doc = %version-%release
Obsoletes: nim-nighlty-doc < 2.1.1^20240404.9e1b170-2
%description doc
Nim is a compiled, garbage-collected systems programming language with a
design that focuses on efficiency, expressiveness, and elegance (in that
@@ -56,15 +46,12 @@ order of priority).
This package provides documentation and reference manual for the language
and its standard library.
%endif
%prep
%autosetup -n Nim-%commit
# hack
cp /usr/bin/mold /usr/bin/ld
%build
export CFLAGS="${CFLAGS} -Ofast"
export CXXFLAGS="${CXXFLAGS} -Ofast"
@@ -79,18 +66,13 @@ nimBuildCsourcesIfNeeded CFLAGS="${CFLAGS} -Ic_code -w -O3 -fno-strict-aliasing
nim c --noNimblePath --skipUserCfg --skipParentCfg --hints:off -d:danger koch.nim
koch boot -d:release -d:nimStrictMode --lib:lib
%ifarch x86_64
koch docs &
%endif
(cd lib; nim c --app:lib -d:danger -d:createNimRtl -t:-fPIE -l:-pie nimrtl.nim) &
koch tools --skipUserCfg --skipParentCfg --hints:off -d:release -t:-fPIE -l:-pie &
nim c -d:danger -t:-fPIE -l:-pie nimsuggest/nimsuggest.nim &
wait
%ifarch x86_64
sed -i '/<link.*fonts.googleapis.com/d' doc/html/*.html
%endif
%install
export PATH="$(pwd):$(pwd)/bin:${PATH}"
@@ -100,28 +82,24 @@ mold -run bin/nim cc -d:nimCallDepthLimit=10000 -r tools/niminst/niminst --var:v
sh ./install.sh %buildroot/usr/bin
mkdir -p %buildroot/%_bindir %buildroot/%_datadir/bash-completion/completions %buildroot/usr/lib/nim
mkdir -p %buildroot/%_bindir %buildroot/%_datadir/bash-completion/completions
install -Dpm755 bin/nim{grep,suggest,pretty} %buildroot/%_bindir
install -Dpm644 tools/nim.bash-completion %buildroot/%_datadir/bash-completion/completions/nim
install -Dpm644 dist/nimble/nimble.bash-completion %buildroot/%_datadir/bash-completion/completions/nimble
install -Dpm644 -t%buildroot/%_mandir/man1 %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4
%ifarch x86_64
mkdir -p %buildroot/%_docdir/%name/html
mkdir -p %buildroot/%_docdir/%name/html %buildroot/usr/lib/nim
cp -a doc/html/*.html %buildroot/%_docdir/%name/html/
cp tools/dochack/dochack.js %buildroot/%_docdir/%name/
%endif
cp -r lib/* %buildroot%_prefix/lib/nim/
cp -a compiler %buildroot%_prefix/lib/nim/
install -Dm644 nim.nimble %buildroot%_prefix/lib/nim/compiler
install -Dm644 config/* -t %buildroot/etc/nim
install -d %buildroot%_includedir || true
cp -a %buildroot%_prefix/lib/nim/lib/*.h %buildroot%_includedir || true
ln -s %_prefix/lib/nim %buildroot%_prefix/lib/nim/lib || true
rm -rf %buildroot/nim || true
rm %buildroot%_bindir/*.bat || true
#check
# export PATH=$PATH:$(realpath ./bin)
# for cat in manyloc gc threads nimble-all lib io async rodfiles debugger examples dll flags
# do
# ./koch tests --pedantic category $cat -d:nimCoroutines || (echo "$cat test category failed" && exit 1)
# done
%files
%license copying.txt dist/nimble/license.txt
@@ -130,17 +108,16 @@ rm %buildroot%_bindir/*.bat || true
%_mandir/man1/nim{,ble}.1*
%_datadir/bash-completion/completions/nim{,ble}
%_prefix/lib/nim/
%_sysconfdir/nim/
%files tools
%license copying.txt
%_bindir/nim{grep,suggest,pretty}
%_mandir/man1/nim{grep,suggest}.1*
%ifarch x86_64
%files doc
%doc %_docdir/%name
%endif
%changelog
%autochangelog
* Mon Jan 9 2023 windowsboy111 <windowsboy111@fyralabs.com> - 1.9.3^fcc383d89994241f1b73fe4f85ef38528c135e2e-1
- Initial Package.
+23 -24
View File
@@ -2,8 +2,8 @@
%global debug_package %{nil}
Name: nim
Version: 2.0.4
Release: 1%?dist
Version: 2.0.2
Release: 2%{?dist}
Summary: Imperative, multi-paradigm, compiled programming language
License: MIT and BSD
URL: https://nim-lang.org
@@ -13,7 +13,8 @@ Source2: nimgrep.1
Source3: nimble.1
Source4: nimsuggest.1
BuildRequires: gcc mold git gcc-c++ nodejs openssl-devel pkgconfig(bash-completion) gc-devel pcre-devel
Requires: gcc
Requires: redhat-rpm-config gcc
Conflicts: choosenim
%description
@@ -31,7 +32,7 @@ order of priority).
This package provides various tools, which help Nim programmers.
%ifarch x86_64
%package doc
Summary: Documentation for Nim programming language
BuildArch: noarch
@@ -42,13 +43,10 @@ order of priority).
This package provides documentation and reference manual for the language
and its standard library.
%endif
%prep
%autosetup -n nim-%{version}
%build
export CFLAGS="${CFLAGS} -Ofast"
export CXXFLAGS="${CXXFLAGS} -Ofast"
@@ -60,24 +58,20 @@ export PATH="$(pwd):$(pwd)/bin:${PATH}"
mold -run nim c -d:danger koch.nim
mold -run koch boot -d:useLinenoise -t:-fPIE -l:-pie -d:release -d:nativeStacktrace -d:useGnuReadline
%ifarch x86_64
mold -run koch docs &
%endif
(cd lib && nim c --app:lib -d:createNimRtl -d:release nimrtl.nim) &
mold -run koch tools -t:-fPIE -l:-pie &
mold -run nim c -t:-fPIE -l:-pie -d:release nimsuggest/nimsuggest.nim &
wait
%ifarch x86_64
sed -i '/<link.*fonts.googleapis.com/d' doc/html/*.html
%endif
%install
export PATH="$(pwd):$(pwd)/bin:${PATH}"
sh install.sh %{buildroot}usr/bin
mkdir -p %buildroot{%_bindir,%_prefix/lib/nim}
mkdir -p %buildroot{%_bindir,%_docdir/%name/html,%_prefix/lib/nim}
install -Dp -m755 bin/nim{,ble,grep,suggest,pretty} %buildroot/%_bindir
install -Dp -m644 dist/nimble/nimble.bash-completion %{buildroot}%{bashcompdir}/nimble
install -Dp -m644 -t%{buildroot}%{_mandir}/man1 %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4
@@ -89,27 +83,34 @@ for comp in tools/*.zsh-completion; do
install -Dm644 $comp %zshcompdir/_$(basename "${comp/.zsh-completion}")
done
%ifarch x86_64
mkdir -p %buildroot%_docdir/%name/html
cp -a doc/html/*.html %buildroot%_docdir/%name/html/
cp tools/dochack/dochack.js %{buildroot}%{_docdir}/%{name}/
ln -s %_datadir/nim/doc %buildroot%_prefix/lib/nim/doc
%endif
cp -a lib %buildroot%_prefix/lib/
mv %buildroot%_prefix/lib/{lib,nim}
cp -a lib %buildroot%_prefix/lib/nim
cp -a compiler %buildroot%_prefix/lib/nim
install -Dm644 nim.nimble %buildroot%_prefix/lib/nim/compiler
install -m755 lib/libnimrtl.so %buildroot%_prefix/lib/libnimrtl.so # compiler needs
ls **
ls %buildroot%_prefix/lib/nim/*
install -m755 lib/libnimrtl.so %buildroot%_prefix/lib/libnimrtl.so
install -Dm644 config/* -t %buildroot/etc/nim
install -Dm755 bin/* -t %buildroot%_bindir
install -d %buildroot%_includedir
cp -a %buildroot%_prefix/lib/nim/lib/*.h %buildroot%_includedir
ln -s %_prefix/lib/nim %buildroot%_prefix/lib/nim/lib # compiler needs lib from here
ln -s %_prefix/lib/nim/system.nim %_prefix/lib/system.nim # nimsuggest bug
ln -s %_datadir/nim/doc %buildroot%_prefix/lib/nim/doc
ln -s %_prefix/lib/nim %buildroot%_prefix/lib/nim/lib
rm -rf %buildroot/nim || true
rm %buildroot%_bindir/*.bat || true
%check
# export PATH=$PATH:$(realpath ./bin)
# for cat in manyloc gc threads nimble-all lib io async rodfiles debugger examples dll flags
# do
# ./koch tests --pedantic category $cat -d:nimCoroutines || (echo "$cat test category failed" && exit 1)
# done
%files
%license copying.txt dist/nimble/license.txt
@@ -132,10 +133,8 @@ rm %buildroot%_bindir/*.bat || true
%{_bindir}/nim{grep,suggest,pretty}
%{_mandir}/man1/nim{grep,suggest}.1*
%ifarch x86_64
%files doc
%doc %{_docdir}/nim
%endif
%changelog
%autochangelog
+2 -2
View File
@@ -1,8 +1,8 @@
%define debug_package %nil
Name: python3-mpv
Version: 1.0.6
Release: 1%?dist
Version: 1.0.5
Release: 1%{?dist}
Summary: Python interface to the awesome mpv media player
License: GPL-2.0+ OR LGPL-2.1+
URL: https://github.com/jaseg/python-mpv
@@ -2,7 +2,7 @@
%global pypi_name protobuf
Name: python-%{pypi_name}
Version: 5.26.1
Version: 5.26.0
Release: 1%?dist
Summary: Protocol Buffers
+1 -1
View File
@@ -1,7 +1,7 @@
%define debug_package %{nil}
Name: python3-ruff
Version: 0.4.2
Version: 0.3.4
Release: 1%?dist
Summary: An extremely fast Python linter, written in Rust
License: MIT
+2 -2
View File
@@ -2,8 +2,8 @@
%global crate felix
Name: rust-felix
Version: 2.13.0
Release: 1%?dist
Version: 2.12.1
Release: 1%{?dist}
Summary: Tui file manager with vim-like key mapping
License: MIT
+1 -1
View File
@@ -4,7 +4,7 @@
%global crate gitoxide
Name: rust-gitoxide
Version: 0.35.0
Version: 0.33.0
Release: 1%?dist
Summary: Command-line application for interacting with git repositories
+1 -1
View File
@@ -1,5 +1,5 @@
Name: nushell
Version: 0.92.2
Version: 0.91.0
Release: 1%?dist
Summary: A new type of shell
License: MIT
+2 -2
View File
@@ -4,8 +4,8 @@
%global crate oxipng
Name: rust-oxipng
Version: 9.1.1
Release: 1%?dist
Version: 9.0.0
Release: %autorelease
Summary: Lossless PNG compression optimizer
License: MIT
+1 -1
View File
@@ -1,5 +1,5 @@
Name: rnote
Version: 0.10.2
Version: 0.10.1
Release: 1%?dist
Summary: Sketch and take handwritten notes.
License: GPL-3.0
+2 -2
View File
@@ -5,8 +5,8 @@
%global crate zellij
Name: rust-zellij
Version: 0.40.0
Release: 1%?dist
Version: 0.39.2
Release: 1%{?dist}
Summary: Terminal workspace with batteries included
License: MIT
@@ -1,9 +1,9 @@
%global real_name vala-language-server
%global commit 0b020298aa3dafacd2f6633533ca91fba5698340
%global commit 3b5fe941bea6ecd5c8fcb84930c40b8582eea165
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commit_date 20240323
%global commit_date 240218
%global snapshot_info %{commit_date}.%{shortcommit}
%global verrel 0.48.7
@@ -3,7 +3,7 @@
%global commit 8ae2bb65fe66458263d94711ae4ddd978faece00
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commit_date 20240218
%global commit_date 240218
%global snapshot_info %{commit_date}.%{shortcommit}
Name: vala-lint-nightly
@@ -7,7 +7,7 @@
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global repo https://gitlab.gnome.org/GNOME/%{real_name}.git
%global commit_date 20240218
%global commit_date 240218
%global snapshot_info %{commit_date}.%{shortcommit}
Name: vala-nightly
@@ -1,5 +1,5 @@
%global forgeurl https://gitlab.com/vala-panel-project/vala-panel-appmenu
%global commit a819ab7b36a449c2d5d0104b896c04115f875d05
%global commit 241873e2e795be03a4bf38f7c8d3bb3b5bb10e23
%forgemeta
Name: vala-panel-appmenu
@@ -21,7 +21,6 @@ BuildRequires: vala
BuildRequires: systemd-rpm-macros
BuildRequires: pkgconfig(libxfce4panel-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: java-devel
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libxfconf-0)
BuildRequires: pkgconfig(budgie-1.0)
@@ -83,13 +82,6 @@ Summary: Gtk3MenuShell D-Bus exporter
%description -n vala-panel-appmenu-gtk-module
GTK (2, 3) module that exports GtkMenuShells over D-Bus.
%package -n vala-panel-appmenu-jayatana-module
Summary: Vala appmenu support for Java Swing applications
%description -n vala-panel-appmenu-jayatana-module
Vala appmenu support for Java Swing applications.
%prep
%forgeautosetup
@@ -131,11 +123,6 @@ Vala appmenu support for Java Swing applications.
%{_libdir}/gtk-3.0/modules/libappmenu-gtk-module.so
%{_datadir}/glib-2.0/schemas/org.appmenu.gtk-module.gschema.xml
%files -n vala-panel-appmenu-jayatana-module
%{_datadir}/java/*.jar
%dir %{_libdir}/jayatana
%{_libdir}/jayatana/*.so
%files -n xfce4-vala-panel-appmenu-plugin
%{_libdir}/xfce4/panel/plugins/libappmenu-xfce.so
%{_datadir}/xfce4/panel/plugins/appmenu.desktop
+35 -112
View File
@@ -1,36 +1,29 @@
# ref: https://src.fedoraproject.org/rpms/openh264
# ref: https://src.fedoraproject.org/rpms/openh264/blob/rawhide/f/openh264.spec
# To get the gmp-api commit to use, run:
# rm -rf gmp-api;make gmp-bootstrap;cd gmp-api;git rev-parse HEAD
%global commit1 e7d30b921df736a1121a0c8e0cf3ab1ce5b8a4b7
%global shortcommit1 %(c=%{commit1}; echo ${c:0:7})
%global openh264_version 2.4.0
%global gst_version 1.23.2
# Filter out soname provides for the mozilla plugin
%global __provides_exclude_from ^%{_libdir}/mozilla/plugins/
Name: openh264
Version: %{openh264_version}
# Also bump the Release tag for gstreamer1-plugin-openh264 down below
Release: 1%{?dist}
Version: 2.4.1
Release: 2%{?dist}
Summary: H.264 codec library
License: BSD
License: BSD-2-Clause
URL: https://www.openh264.org/
Source0: https://github.com/cisco/openh264/archive/v%{openh264_version}/openh264-%{openh264_version}.tar.gz
Source0: https://github.com/cisco/openh264/archive/v%{version}/openh264-%{version}.tar.gz
Source1: https://github.com/mozilla/gmp-api/archive/%{commit1}/gmp-api-%{shortcommit1}.tar.gz
# The source is:
# http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-%%{gst_version}.tar.xz
# modified with gst-p-bad-cleanup.sh from SOURCE3
Source2: gst-plugins-bad-openh264-%{gst_version}.tar.xz
Source3: gst-p-bad-cleanup.sh
# Don't use pkg-config for finding openh264 as we are building against an in-tree copy
Patch2: hardcode-openh264-dep.patch
BuildRequires: gcc-c++
BuildRequires: gstreamer1-devel >= %{gst_version}
BuildRequires: gstreamer1-plugins-base-devel >= %{gst_version}
BuildRequires: make
BuildRequires: meson
BuildRequires: nasm
# Replace the stub package
Obsoletes: noopenh264 < 1:0
%description
OpenH264 is a codec library which supports H.264 encoding and decoding. It is
suitable for use in real time applications such as WebRTC.
@@ -38,7 +31,9 @@ suitable for use in real time applications such as WebRTC.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{openh264_version}-%{release}
Requires: %{name}%{?_isa} = %{version}-%{release}
# Replace the stub package
Obsoletes: noopenh264-devel < 1:0
%description devel
The %{name}-devel package contains libraries and header files for
@@ -47,7 +42,7 @@ developing applications that use %{name}.
%package -n mozilla-openh264
Summary: H.264 codec support for Mozilla browsers
Requires: %{name}%{?_isa} = %{openh264_version}-%{release}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: mozilla-filesystem%{?_isa}
%description -n mozilla-openh264
@@ -55,18 +50,6 @@ The mozilla-openh264 package contains a H.264 codec plugin for Mozilla
browsers.
%package -n gstreamer1-plugin-openh264
Version: %{gst_version}
Release: 2%{?dist}
Summary: GStreamer H.264 plugin
%description -n gstreamer1-plugin-openh264
GStreamer is a streaming media framework, based on graphs of elements which
operate on media data.
This package contains the H.264 plugin.
%prep
%setup -q
@@ -74,12 +57,6 @@ This package contains the H.264 plugin.
tar -xf %{S:1}
mv gmp-api-%{commit1} gmp-api
# Extract gst-plugins-bad-free archive
tar -xf %{S:2}
pushd gst-plugins-bad-%{gst_version}
%patch2 -p1
popd
%build
# Update the makefile with our build options
@@ -96,20 +73,6 @@ make %{?_smp_mflags}
# ... then build the mozilla plugin
make plugin %{?_smp_mflags}
# ... and finally build the gstreamer plugin against the previously built
# openh264 libraries
pushd gst-plugins-bad-%{gst_version}
CFLAGS="%{build_cflags} -I`pwd`/../codec/api" \
CXXFLAGS="%{build_cflags} -I`pwd`/../codec/api" \
LDFLAGS="%{build_ldflags} -L`pwd`/.." \
%meson \
--auto-features=disabled \
-D package-name="Fedora gstreamer1-plugin-openh264 package" \
-D package-origin="http://www.openh264.org/" \
-D openh264=enabled
%meson_build
popd
%install
%make_install
@@ -125,71 +88,32 @@ pref("media.gmp-gmpopenh264.version", "system-installed");
EOF
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
cat > $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/gmpopenh264.sh << EOF
MOZ_GMP_PATH="${MOZ_GMP_PATH}${MOZ_GMP_PATH:+:}%{_libdir}/mozilla/plugins/gmp-gmpopenh264/system-installed"
export MOZ_GMP_PATH
cat > $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/gmpopenh264.sh << 'EOF'
if [[ ":$MOZ_GMP_PATH:" != *":%{_libdir}/mozilla/plugins/gmp-gmpopenh264/system-installed:"* ]]; then
MOZ_GMP_PATH="${MOZ_GMP_PATH}${MOZ_GMP_PATH:+:}%{_libdir}/mozilla/plugins/gmp-gmpopenh264/system-installed"
export MOZ_GMP_PATH
fi
EOF
mkdir -p $RPM_BUILD_ROOT%{_datadir}/fish/vendor_conf.d
cat > $RPM_BUILD_ROOT%{_datadir}/fish/vendor_conf.d/gmpopenh264.fish << 'EOF'
set -x --path MOZ_GMP_PATH $MOZ_GMP_PATH
set dir %{_libdir}/mozilla/plugins/gmp-gmpopenh264/system-installed
if not contains $dir $MOZ_GMP_PATH
set -p MOZ_GMP_PATH $dir
end
set -e dir
EOF
# Remove static libraries
rm $RPM_BUILD_ROOT%{_libdir}/*.a
# Install the gstreamer plugin
pushd gst-plugins-bad-%{gst_version}
%meson_install
# Register as an AppStream component to be visible in the software center
#
# NOTE: It would be *awesome* if this file was maintained by the upstream
# project, translated and installed into the right place during `make install`.
#
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
#
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/gstreamer-openh264.appdata.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2015 Kalev Lember <klember@redhat.com> -->
<component type="codec">
<id>gstreamer-openh264</id>
<metadata_license>CC0-1.0</metadata_license>
<name>GStreamer Multimedia Codecs - H.264</name>
<summary>Multimedia playback for H.264</summary>
<description>
<p>
This addon includes a codec for H.264 playback and encoding.
</p>
<p>
These codecs can be used to encode and decode media files where the
format is not patent encumbered.
</p>
<p>
A codec decodes audio and video for playback or editing and is also
used for transmission or storage.
Different codecs are used in video-conferencing, streaming media and
video editing applications.
</p>
</description>
<url type="homepage">http://gstreamer.freedesktop.org/</url>
<url type="bugtracker">https://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer</url>
<url type="help">http://gstreamer.freedesktop.org/documentation/</url>
<url type="donation">http://www.gnome.org/friends/</url>
<update_contact><!-- upstream-contact_at_email.com --></update_contact>
</component>
EOF
# Remove unwanted gst-plugins-bad files
rm -rf $RPM_BUILD_ROOT%{_bindir}/gst-transcoder-1.0
rm -rf $RPM_BUILD_ROOT%{_includedir}/gstreamer-1.0/
rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gstreamer-*.pc
rm -rf $RPM_BUILD_ROOT%{_libdir}/libgst*.so*
rm -rf $RPM_BUILD_ROOT%{_datadir}/gstreamer-1.0/
popd
%files
%license LICENSE
%doc README.md
%{_libdir}/libopenh264.so.7
%{_libdir}/libopenh264.so.%{openh264_version}
%{_libdir}/libopenh264.so.%{version}
%files devel
%{_includedir}/wels/
@@ -203,10 +127,9 @@ popd
%dir %{_libdir}/firefox/defaults/pref
%{_libdir}/firefox/defaults/pref/gmpopenh264.js
%{_libdir}/mozilla/plugins/gmp-gmpopenh264/
%files -n gstreamer1-plugin-openh264
%{_datadir}/appdata/*.appdata.xml
%{_libdir}/gstreamer-1.0/libgstopenh264.so
%dir %{_datadir}/fish
%dir %{_datadir}/fish/vendor_conf.d
%{_datadir}/fish/vendor_conf.d/gmpopenh264.fish
%changelog
-3
View File
@@ -2,7 +2,4 @@ project pkg {
rpm {
spec = "pqmarble.spec"
}
labels {
nightly = "1"
}
}
+1 -3
View File
@@ -1,10 +1,8 @@
%global commit f240b2ec7d5cdacb8fdcc553703420dc5101ffdb
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commit_date 20240310
%global ver 2.0.0
Name: pqmarble
Version: %ver^%commit_date.%shortcommit
Version: %ver^%commit
Release: 1%{?dist}
Summary: My GTK library
License: GPL-3.0
+4 -8
View File
@@ -1,8 +1,4 @@
if filters.contains("nightly") {
rpm.global("commit", gitlab_commit("gitlab.gnome.org", "20662", "master"));
if rpm.changed() {
let meson = get("https://gitlab.gnome.org/raggesilver/marble/-/raw/master/meson.build");
rpm.global("ver", find("(?m)^\\s+version:\\s*'(.+)',$", meson, 1));
rpm.global("commit_date", date());
}
}
let req = get("https://gitlab.gnome.org/api/v4/projects/20662/repository/branches/master").json();
rpm.global("commit", req.commit.id);
let meson = get("https://gitlab.gnome.org/raggesilver/marble/-/raw/master/meson.build");
rpm.global("ver", find("(?m)^\\s+version:\\s*'(.+)',$", meson, 1));
+4 -6
View File
@@ -1,10 +1,8 @@
%global commit 586bc784138042d2710168cd0b29f5dd6d415f45
%global ver 1.8.26
%global commit_date 20240219
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commit d0ff90bb19a235d9357f0874b0a62306e40d90b8
%global ver 1.8.25
%global commit_date 240219
Name: tdlib-nightly
Version: %ver^%commit_date.%shortcommit
Version: %ver^%commit_date.%commit
Release: 1%?dist
License: BSL-1.0
URL: https://github.com/tdlib/td
+1 -1
View File
@@ -1,7 +1,7 @@
if filters.contains("nightly") {
rpm.global("commit", gh_commit("tdlib/td"));
if rpm.changed() {
let v = find("\nproject\\(TDLib\\s+VERSION\\s+([\\d.]+)\\s+", gh_rawfile("tdlib/td", "master", "CMakeLists.txt"), 1);
let v = find("\nproject\\(TDLib\\s+VERSION\\s+([\\d.]+)\\s+", gh_rawfile("tdlib/td", "master", "CMakeLists.txt")), 1);
rpm.global("ver", v);
rpm.release();
}
+2 -2
View File
@@ -1,8 +1,8 @@
%define debug_package %nil
Name: alsa-ucm-cros
Version: 0.5
Release: 1%?dist
Version: 0.4
Release: 1%{?dist}
Summary: ALSA Use Case Manager configuration
License: BSD-3-Clause
URL: https://github.com/WeirdTreeThing/alsa-ucm-conf-cros/tree/standalone
@@ -1,31 +0,0 @@
From db29e1ce9f1a2b6b2ac3ef9df8b8b8524ab895f9 Mon Sep 17 00:00:00 2001
From: madomado <madonuko@outlook.com>
Date: Mon, 29 Apr 2024 21:29:01 +0800
Subject: [PATCH] fix: support esbuild
---
src/process/index.js | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/process/index.js b/src/process/index.js
index 97ea651..f5486ca 100644
--- a/src/process/index.js
+++ b/src/process/index.js
@@ -1,13 +1,7 @@
const rgb = (r, g, b, msg) => `\x1b[38;2;${r};${g};${b}m${msg}\x1b[0m`;
const log = (...args) => console.log(`[${rgb(88, 101, 242, 'arRPC')} > ${rgb(237, 66, 69, 'process')}]`, ...args);
-import fs from 'node:fs';
-import { dirname, join } from 'path';
-import { fileURLToPath } from 'url';
-
-const __dirname = dirname(fileURLToPath(import.meta.url));
-const DetectableDB = JSON.parse(fs.readFileSync(join(__dirname, 'detectable.json'), 'utf8'));
-
+import DetectableDB from './detectable.json' with { type: "json" };
import * as Natives from './native/index.js';
const Native = Natives[process.platform];
--
2.44.0
+7 -9
View File
@@ -1,16 +1,14 @@
%define debug_package %nil
%define __strip /bin/true
%global commit cca93db585dedf8acc1423f5e2db215de95c4c3b
%global commit c6e23e7eb733ad396d3eebc328404cc656fed581
Name: arrpc
Version: 3.4.0
Release: 2%?dist
Version: 3.3.1
Release: 1%?dist
Summary: Open Discord RPC server for atypical setups
License: MIT
URL: https://arrpc.openasar.dev
Source0: https://github.com/OpenAsar/arrpc/archive/%commit.tar.gz
Source1: arrpc.service
Patch0: 0001-fix-support-esbuild.patch
Requires: glibc
BuildRequires: nodejs-npm systemd-rpm-macros
@@ -22,15 +20,15 @@ server which messages the JSON of exactly what to dispatch with in the client wi
allowing small and simple mods or plugins. arRPC is experimental and a work in progress, so expect bugs, etc.
%prep
%autosetup -n arrpc-%commit -p1
%autosetup -n arrpc-%commit
# patch for using esbuild
sed -i -E 's@const server[^\n]+;@async function main() {\0@' src/index.js
sed -i -E 's@server\.on[^\n]+;@\0}\nmain();@' src/index.js
%build
npm i esbuild @yao-pkg/pkg
npx esbuild --bundle --platform=node --target=node20 --outdir=dist ./src/index.js
npx pkg -t node20-linux-x64 -o arrpc ./dist/index.js
npm i esbuild pkg
npx esbuild --bundle --platform=node --target=node18 --outdir=dist ./src/index.js
npx pkg -t node18-linux-x64 -o arrpc ./dist/index.js
%install
install -D -m755 arrpc %buildroot%_bindir/arrpc
+1 -1
View File
@@ -4,7 +4,7 @@
%define _build_id_links none
Name: sass
Version: 1.75.0
Version: 1.72.0
Release: 1%?dist
Summary: The reference implementation of Sass, written in Dart
License: MIT
+2 -2
View File
@@ -1,6 +1,6 @@
Name: uxplay
Version: 1.68.3
Release: 1%?dist
Version: 1.68.2
Release: 1%{?dist}
Summary: AirPlay Unix mirroring server
License: GPL-3.0
URL: https://github.com/FDH2/UxPlay
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "rustdesk-selinux.spec"
}
}
@@ -0,0 +1,69 @@
# vim: sw=4:ts=4:et
# Rustdesk will be added later, but for now this supplements the
# external rustdesk package
%define relabel_files() \
restorecon -R /usr/lib/rustdesk/rustdesk; \
%define selinux_policyver 38.28-1
Name: rustdesk-selinux
Version: 1.0
Release: 1%{?dist}
Summary: SELinux policy module for rustdesk
Group: System Environment/Base
License: GPLv2+
URL: http://rustdesk.com
Source0: rustdesk.te
Requires: policycoreutils, libselinux-utils
BuildRequires: policycoreutils, libselinux-utils, checkpolicy
Supplements: rustdesk
Enhances: rustdesk
Requires(post): selinux-policy-base >= %{selinux_policyver}, policycoreutils
Requires(postun): policycoreutils
BuildArch: noarch
%description
This package installs and sets up the SELinux policy security module for rustdesk.
%build
checkmodule -M -m -o rustdesk.mod %{SOURCE0}
semodule_package -o rustdesk.pp -m rustdesk.mod
%install
install -d %{buildroot}%{_datadir}/selinux/packages
install -m 644 rustdesk.pp %{buildroot}%{_datadir}/selinux/packages
%post
semodule -n -i %{_datadir}/selinux/packages/rustdesk.pp
if /usr/sbin/selinuxenabled ; then
/usr/sbin/load_policy
%relabel_files
fi;
exit 0
%postun
if [ $1 -eq 0 ]; then
semodule -n -r rustdesk
if /usr/sbin/selinuxenabled ; then
/usr/sbin/load_policy
%relabel_files
fi;
fi;
exit 0
%files
%attr(0600,root,root) %{_datadir}/selinux/packages/rustdesk.pp
%changelog
* Sun Oct 1 2023 Cappy Ishihara <cappy@fyralabs.com> 1.0-1
- Initial version
+44
View File
@@ -0,0 +1,44 @@
module rustdesk 1.0;
require {
type xdm_t;
type sudo_exec_t;
type cache_home_t;
type chronyc_t;
type xserver_misc_device_t;
type xserver_t;
type chronyd_restricted_t;
type device_t;
type unreserved_port_t;
type xserver_port_t;
type event_device_t;
type init_t;
type speech_dispatcher_t;
class capability dac_override;
class dir create;
class unix_dgram_socket sendto;
class unix_stream_socket connectto;
class tcp_socket name_connect;
class chr_file { getattr open read write };
class file execute;
}
#============= chronyc_t ==============
allow chronyc_t chronyd_restricted_t:unix_dgram_socket sendto;
#============= init_t ==============
allow init_t event_device_t:chr_file open;
allow init_t sudo_exec_t:file execute;
#!!!! This avc can be allowed using the boolean 'nis_enabled'
allow init_t unreserved_port_t:tcp_socket name_connect;
allow init_t xserver_misc_device_t:chr_file { read write };
allow init_t xserver_port_t:tcp_socket name_connect;
allow init_t xserver_t:unix_stream_socket connectto;
#============= speech_dispatcher_t ==============
allow speech_dispatcher_t cache_home_t:dir create;
allow speech_dispatcher_t self:capability dac_override;
#============= xdm_t ==============
allow xdm_t device_t:chr_file getattr;
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "rustdesk.spec"
}
}
+13
View File
@@ -0,0 +1,13 @@
diff --git a/Cargo.toml b/Cargo.toml
index be7e2aef..1f0c1eac 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,7 +17,7 @@ travis-ci = { repository = "1wilkens/pam" }
[dependencies]
libc = "^0.2"
-pam-sys = "^0.5"
+pam-sys = { version = "1.0.0-alpha4", path = "./pam-sys" }
users = "^0.8"
[dev-dependencies]
+23
View File
@@ -0,0 +1,23 @@
From df8080b8b813f33963e8a169f157bff1607d54f4 Mon Sep 17 00:00:00 2001
From: David Johnson <davidjohnson@rivosinc.com>
Date: Tue, 5 Sep 2023 10:29:20 -0700
Subject: [PATCH] Added __gnuc_va_list to the list of blocked types since this
type exists on at least some Linux platforms, and prevents pam-sys from
compiling without this exclusion.
---
build.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/build.rs b/build.rs
index 7ac5cf3..cf44cde 100644
--- a/build.rs
+++ b/build.rs
@@ -29,6 +29,7 @@ fn main() {
.blocklist_type("va_list")
.blocklist_type("__va_list")
.blocklist_type("__builtin_va_list")
+ .blocklist_type("__gnuc_va_list")
.blocklist_type("__va_list_tag")
.blocklist_function("pam_v.*")
.blocklist_function("pam_syslog")
+13
View File
@@ -0,0 +1,13 @@
diff --git a/Cargo.toml b/Cargo.toml
index 9e8224fc..8fbbe54c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -127,7 +127,7 @@ mouce = { git="https://github.com/fufesou/mouce.git" }
evdev = { git="https://github.com/fufesou/evdev" }
dbus = "0.9"
dbus-crossroads = "0.5"
-pam = { git="https://github.com/fufesou/pam", optional = true }
+pam = { path = "./pam", optional = true }
users = { version = "0.11" }
[target.'cfg(target_os = "android")'.dependencies]
+137
View File
@@ -0,0 +1,137 @@
#global pamsys_ver v1.0.0-alpha5
#global pamsys 1.0.0-alpha5
#global pam_ver v0.7.0
#global pam 0.7.0
%ifarch x86_64
%global scarch x64
%else
%ifarch aarch64
%global scarch arm64
%endif
%endif
Name: rustdesk
Version: 1.2.3
Release: 1%{?dist}
Summary: An open-source remote desktop, and alternative to TeamViewer.
Group: System Environment/Base
License: GPLv2+
URL: http://rustdesk.com
Source0: https://github.com/rustdesk/rustdesk/archive/refs/tags/%{version}.tar.gz
Source1: https://github.com/c-smile/sciter-sdk/raw/master/bin.lnx/%{scarch}/libsciter-gtk.so
%dnl Source2: https://github.com/fufesou/pam/archive/refs/tags/%{pam_ver}.tar.gz
%dnl Source3: https://github.com/1wilkens/pam-sys/archive/refs/tags/%{pamsys_ver}.tar.gz
%dnl Patch0: pam-deps.diff
%dnl Patch1: pam-sys-build.patch
%dnl Patch2: rustdesk-deps.diff
BuildRequires: rust-packaging anda-srpm-macros gcc-c++ git curl wget nasm yasm gcc gtk3-devel clang libxcb-devel libxdo-devel libXfixes-devel pulseaudio-libs-devel cmake alsa-lib-devel
BuildRequires: gstreamer1-devel rust-gstreamer-devel pkgconfig(gstreamer-app-1.0)
BuildRequires: libvpx-devel opus-devel libyuv-devel libaom-devel pam-devel clang-devel
Requires: gtk3 libxcb libxdo libXfixes alsa-lib libappindicator libvdpau1 libva2 pam gstreamer1-plugins-base
%description
The best open-source remote desktop client software, written in Rust.
%prep
%setup -q -n rustdesk-%version
%{dnl:
%patch 2 -p1
tar xf %SOURCE2
mv pam-%pam pam
cd pam
git apply %PATCH0
tar xf %SOURCE3
mv pam-sys-%pamsys pam-sys
cd pam-sys
git apply %PATCH1
cd ../..
}
%cargo_prep_online
%build
%cargo_build -a
%global __python %{__python3}
%install
%cargo_install -a
mkdir -p %buildroot/usr/lib/rustdesk/
mkdir -p %buildroot%_datadir/rustdesk/files/
mkdir -p %buildroot%_datadir/icons/hicolor/{256x256,scalable}/apps/
install %SOURCE1 %buildroot/usr/lib/rustdesk/libsciter-gtk.so
install res/rustdesk.service %buildroot%_datadir/rustdesk/files/
install res/128x128@2x.png %buildroot%_datadir/icons/hicolor/256x256/apps/rustdesk.png
install res/scalable.svg %buildroot%_datadir/icons/hicolor/scalable/apps/rustdesk.svg
install res/rustdesk.desktop %buildroot%_datadir/rustdesk/files/
install res/rustdesk-link.desktop %buildroot%_datadir/rustdesk/files/
install -d %buildroot%_datadir/applications/
install res/rustdesk.desktop %buildroot%_datadir/applications/
install res/rustdesk-link.desktop %buildroot%_datadir/applications/
install -d %buildroot%_unitdir
install res/rustdesk.service %buildroot%_unitdir/rustdesk.service
%files
%_bindir/rustdesk
%_bindir/naming
/usr/lib/rustdesk/libsciter-gtk.so
%_datadir/rustdesk/files/rustdesk.service
%_datadir/icons/hicolor/256x256/apps/rustdesk.png
%_datadir/icons/hicolor/scalable/apps/rustdesk.svg
%_datadir/rustdesk/files/rustdesk.desktop
%_datadir/rustdesk/files/rustdesk-link.desktop
%_datadir/applications/rustdesk.desktop
%_datadir/applications/rustdesk-link.desktop
%_unitdir/rustdesk.service
%pre
# can do something for centos7
case "$1" in
1)
# for install
;;
2)
# for upgrade
systemctl stop rustdesk || true
;;
esac
%post
systemctl daemon-reload
systemctl enable rustdesk
systemctl start rustdesk
update-desktop-database
%preun
case "$1" in
0)
# for uninstall
systemctl stop rustdesk || true
systemctl disable rustdesk || true
;;
1)
# for upgrade
;;
esac
%postun
case "$1" in
0)
# for uninstall
update-desktop-database
;;
1)
# for upgrade
;;
esac
%changelog
%autochangelog
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("rustdesk/rustdesk"));
+1 -1
View File
@@ -1,5 +1,5 @@
%global commit 7cb289b6466b662fdf9f7d7ccc9f3c08a7dc0cac
%global commit_date 20240219
%global commit_date 240219
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global debug_package %{nil}
%define __os_install_post %{nil}
+2 -2
View File
@@ -1,10 +1,10 @@
Name: limine
Version: 7.4.1
Version: 7.2.0
Release: 1%?dist
Summary: Modern, advanced, portable, multiprotocol bootloader
License: BSD-2-Clause
URL: https://limine-bootloader.org
Source0: https://github.com/limine-bootloader/limine/releases/download/v%version/limine-%version.tar.gz
Source0: https://github.com/limine-bootloader/limine/releases/download/v%version/limine-%version.tar.xz
BuildRequires: nasm mtools llvm lld clang make
%description
+1 -1
View File
@@ -1,7 +1,7 @@
%global debug_package %{nil}
%global commit 564c0661a942f7163cb2cfa6cb1b14b4bcff3a30
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commit_date 20240218
%global commit_date 240218
%global patches %{_datadir}/src/nvidia-patch
@@ -1,7 +1,7 @@
%global coreutils_ver 9.3
Name: uutils-coreutils
Version: 0.0.26
Version: 0.0.25
Release: 1%?dist
Summary: Cross-platform Rust rewrite of the GNU coreutils
License: MIT
-6
View File
@@ -1,6 +0,0 @@
project pkg {
arches = ["x86_64"]
rpm {
spec = "wineasio.spec"
}
}
-1
View File
@@ -1 +0,0 @@
rpm.global("tag", gh("wineasio/wineasio"))
-74
View File
@@ -1,74 +0,0 @@
Name: wineasio
%global tag v1.2.0
# macro to remove the v from version
%global version_tag %(echo %{tag} | sed 's/^v//')
%global forgeurl https://github.com/wineasio/%{name}
# While this package should have debug headers, we have build issues with them
%define debug_package %{nil}
Version: %{version_tag}
Release: %autorelease
Summary: Wine ASIO driver
License: GPL-2.0-or-later AND LGPL-2.1-or-later
URL: %{forgeurl}
Source: %{forgeurl}/releases/download/%{tag}/wineasio-%{version_tag}.tar.gz
BuildRequires: make
BuildRequires: pkgconfig
BuildRequires: pkgconfig(alsa)
BuildRequires: gcc-c++
BuildRequires: gcc
BuildRequires: pkgconfig(jack)
BuildRequires: wine-devel
ExclusiveArch: x86_64
%description
WineASIO provides an ASIO to JACK driver for WINE.
ASIO is the most common Windows low-latency driver, so is commonly used in audio workstation programs.
You can, for example, use with FLStudio under GNU/Linux systems (together with JACK).
%prep
%autosetup
%build
# remove all cflags because it builds just fine without them, causes issues with asm when the default ones are
# present though
export CFLAGS=""
make clean
make 64
%install
install -Dm755 build64/wineasio64.dll.so %{buildroot}%{_libdir}/wine/%{_arch}-unix/wineasio64.dll.so
install -Dm755 build64/wineasio64.dll %{buildroot}%{_libdir}/wine/%{_arch}-windows/wineasio64.dll
install -Dm755 wineasio-register %{buildroot}%{_bindir}/wineasio-register
pushd gui
%make_install
popd
%files
%license COPYING.LIB COPYING.GUI
%doc README.md
%{_libdir}/wine/%{_arch}-unix/wineasio64.dll.so
%{_libdir}/wine/%{_arch}-windows/wineasio64.dll
%{_bindir}/wineasio-register
%{_bindir}/wineasio-settings
%{_datadir}/wineasio/
%changelog
* Thu Apr 11 2024 Cappy Ishihara <cappy@cappuchino.xyz>
- Initial Release
+1 -1
View File
@@ -4,7 +4,7 @@ Version: 38
# The dist number is the version here, it is intentionally not repeated in the release
%global dist %nil
Release: 2
Release: %autorelease
Summary: A package to obsolete retired packages, based on Fedora's equivalent package
License: LicenseRef-Fedora-Public-Domain
+3 -3
View File
@@ -1,8 +1,8 @@
%global tag 2024-04-28
%global tag 2023-06-20
Name: fluent-theme
Version: 20240428
Release: 1%?dist
Version: 20230620
Release: 1%{?dist}
Summary: Fluent design theme for GNOME/GTK based desktop environments
License: GPL-3.0
+2 -2
View File
@@ -1,8 +1,8 @@
%define debug_package %nil
Name: katsu
Version: 0.2.1
Release: 1%?dist
Version: 0.2.0
Release: 1%{?dist}
Summary: The vicious image builder
License: MIT
URL: https://github.com/FyraLabs/katsu
+1 -1
View File
@@ -12,7 +12,7 @@
%global __provides_exclude_from %{_libdir}/%{name}/.*\\.so
Name: electron
Version: 29.3.0
Version: 29.1.5
Release: 1%?dist
Summary: Build cross platform desktop apps with web technologies
License: MIT
-5
View File
@@ -1,5 +0,0 @@
project pkg {
rpm {
spec = "espanso-wayland.spec"
}
}
@@ -1,43 +0,0 @@
Name: espanso-wayland
Version: 2.2.1
Release: 2%?dist
Summary: Cross-platform Text Expander written in Rust for Wayland
License: GPL-3.0
URL: https://espanso.org
Source0: https://github.com/espanso/espanso/archive/refs/tags/v%version.tar.gz
Requires: libxkbcommon dbus libnotify wxGTK wl-clipboard
Conflicts: espanso-x11
BuildRequires: anda-srpm-macros cargo-rpm-macros gcc gcc-c++
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xtst)
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: wxGTK-devel
BuildRequires: openssl-devel
%description
A cross-platform Text Expander written in Rust. A text expander is a program
that detects when you type a specific keyword and replaces it with something
else.
This package includes the Wayland version of espanso.
%prep
%autosetup -n espanso-%version
cd espanso
%cargo_prep_online
%build
cd espanso
%cargo_build -n -f vendored-tls,"wayland" -- --package={espanso,espanso-clipboard,espanso-config,espanso-detect,espanso-engine,espanso-info,espanso-inject,espanso-ipc,espanso-kvs,espanso-mac-utils,espanso-match,espanso-migrate,espanso-modulo,espanso-package,espanso-path,espanso-render,espanso-ui}
%install
mkdir -p %buildroot%_bindir
install -Dm755 target/rpm/espanso %buildroot%_bindir
%files
%caps(cap_dac_override=pe) %_bindir/espanso
%changelog
%autochangelog
-1
View File
@@ -1 +0,0 @@
rpm.version(gh("espanso/espanso"));
-5
View File
@@ -1,5 +0,0 @@
project pkg {
rpm {
spec = "espanso-x11.spec"
}
}
-43
View File
@@ -1,43 +0,0 @@
Name: espanso-x11
Version: 2.2.1
Release: 2%?dist
Summary: Cross-platform Text Expander written in Rust for X11
License: GPL-3.0
URL: https://espanso.org
Source0: https://github.com/espanso/espanso/archive/refs/tags/v%version.tar.gz
Requires: libxkbcommon dbus libnotify wxGTK xdotool xclip libxcb
Conflicts: espanso-wayland
BuildRequires: anda-srpm-macros cargo-rpm-macros gcc gcc-c++
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xtst)
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: wxGTK-devel
BuildRequires: openssl-devel
%description
A cross-platform Text Expander written in Rust. A text expander is a program
that detects when you type a specific keyword and replaces it with something
else.
This package includes the X11 version of espanso.
%prep
%autosetup -n espanso-%version
cd espanso
%cargo_prep_online
%build
cd espanso
%cargo_build -n -f vendored-tls,"default" -- --package={espanso,espanso-clipboard,espanso-config,espanso-detect,espanso-engine,espanso-info,espanso-inject,espanso-ipc,espanso-kvs,espanso-mac-utils,espanso-match,espanso-migrate,espanso-modulo,espanso-package,espanso-path,espanso-render,espanso-ui}
%install
mkdir -p %buildroot%_bindir
install -Dm755 target/rpm/espanso %buildroot%_bindir
%files
%caps(cap_dac_override=pe) %_bindir/espanso
%changelog
%autochangelog
-1
View File
@@ -1 +0,0 @@
rpm.version(gh("espanso/espanso"));
+2 -2
View File
@@ -1,8 +1,8 @@
%global debug_package %{nil}
Name: fuc
Version: 2.1.0
Release: 1%?dist
Version: 2.0.0
Release: 1%{?dist}
Summary: Modern, performance focused unix commands
URL: https://github.com/SUPERCILEX/fuc
Source0: https://raw.githubusercontent.com/SUPERCILEX/fuc/%{version}/README.md
+2 -2
View File
@@ -6,9 +6,9 @@
%global forgeurl https://github.com/GitCredentialManager/git-credential-manager
Name: gcm-core
Version: 2.5.0
Version: 2.4.1
%forgemeta
Release: 1%?dist
Release: 1%{?dist}
Summary: Secure, cross-platform Git credential storage
License: MIT
+2 -2
View File
@@ -3,10 +3,10 @@
%global pypi_version 0.0.3
Name: python-%{pypi_name}
Version: 0.2.0
Version: 0.0.3
Provides: python3-%{pypi_name} = %{version}-%{release}
Provides: %{pypi_name} = %{version}-%{release}
Release: 1%?dist
Release: 1%{?dist}
Summary: Ultramarine Quickstart Tool
License: None
-8
View File
@@ -1,8 +0,0 @@
project pkg {
rpm {
spec = "yt-dlp-nightly.spec"
}
labels {
nightly = "1"
}
}
-8
View File
@@ -1,8 +0,0 @@
if filters.contains("nightly") {
rpm.global("commit", gh_commit("yt-dlp/yt-dlp"));
if rpm.changed() {
rpm.global("ver", gh("yt-dlp/yt-dlp"));
rpm.global("commit_date", date());
rpm.release();
}
}
-127
View File
@@ -1,127 +0,0 @@
#bcond_without tests
%global commit e5d4f11104ce7ea1717a90eea82c0f7d230ea5d5
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commit_date 20240325
%global ver 2024.03.10
Name: yt-dlp-nightly
Version: %ver^%commit_date.%shortcommit
Release: 1%?dist
Summary: A command-line program to download videos from online video platforms
License: Unlicense
URL: https://github.com/yt-dlp/yt-dlp
Source: %url/archive/%commit.tar.gz
# License of the specfile
Source: https://src.fedoraproject.org/rpms/yt-dlp/raw/rawhide/f/yt-dlp.spec.license
BuildArch: noarch
BuildRequires: python3-devel
%if %{with tests}
# Needed for %%check
BuildRequires: %{py3_dist pytest}
%endif
# Needed for docs
BuildRequires: pandoc
BuildRequires: make
# ffmpeg-free is now available in Fedora.
Recommends: /usr/bin/ffmpeg
Recommends: /usr/bin/ffprobe
Provides: yt-dlp
Conflicts: yt-dlp
Suggests: python3dist(keyring)
%global _description %{expand:
yt-dlp is a command-line program to download videos from many different online
video platforms, such as youtube.com. The project is a fork of youtube-dl with
additional features and fixes.}
%description %{_description}
%package bash-completion
Summary: Bash completion for yt-dlp
Requires: %{name} = %{version}-%{release}
Requires: bash-completion
Supplements: (%{name} and bash-completion)
Provides: yt-dlp-bash-completion
Conflicts: yt-dlp-bash-completion
%description bash-completion
Bash command line completion support for %{name}.
%package zsh-completion
Summary: Zsh completion for %{name}
Requires: %{name} = %{version}-%{release}
Requires: zsh
Supplements: (%{name} and zsh)
Provides: yt-dlp-zsh-completion
Conflicts: yt-dlp-zsh-completion
%description zsh-completion
Zsh command line completion support for %{name}.
%package fish-completion
Summary: Fish completion for %{name}
Requires: %{name} = %{version}-%{release}
Requires: fish
Supplements: (%{name} and fish)
Provides: yt-dlp-fish-completion
Conflicts: yt-dlp-fish-completion
%description fish-completion
Fish command line completion support for %{name}.
%prep
%autosetup -n yt-dlp-%commit
# Remove unnecessary shebangs
find -type f ! -executable -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' +
# Relax version constraints
sed -i 's@"\(requests\|urllib3\|websockets\)>=.*"@"\1"@' pyproject.toml
%generate_buildrequires
%pyproject_buildrequires -r
%build
# Docs and shell completions
make yt-dlp.1 completion-bash completion-zsh completion-fish
# Docs and shell completions are also included in the wheel.
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files yt_dlp
%check
%if %{with tests}
# See https://github.com/yt-dlp/yt-dlp/blob/master/devscripts/run_tests.sh
%pytest -m 'not download'
%endif
%files -f %{pyproject_files}
%{_bindir}/yt-dlp
%{_mandir}/man1/yt-dlp.1*
%doc README.md
%license LICENSE
%files bash-completion
%{bash_completions_dir}/yt-dlp
%files zsh-completion
%{zsh_completions_dir}/_yt-dlp
%files fish-completion
%{fish_completions_dir}/yt-dlp.fish
%changelog
%autochangelog