From 053d230b513bbaf137602fe1fd3fba6493bfe9c3 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Mon, 27 Jan 2025 21:44:37 -0800 Subject: [PATCH] chore: remove pop-launcher (#3142) (#3153) (cherry picked from commit b3d9f62eec05bb33d6d3edec70e33357607054b5) Co-authored-by: sadlerm4 --- anda/langs/rust/pop-launcher/.gitignore | 5 -- .../0001-Copy-instead-of-symlink.patch | 13 ---- anda/langs/rust/pop-launcher/anda.hcl | 5 -- .../langs/rust/pop-launcher/pop-launcher.spec | 65 ------------------- anda/langs/rust/pop-launcher/prepare.sh | 26 -------- anda/langs/rust/pop-launcher/umpkg.cfg | 9 --- anda/langs/rust/pop-launcher/umpkg.toml | 5 -- anda/langs/rust/pop-launcher/update.rhai | 1 - 8 files changed, 129 deletions(-) delete mode 100644 anda/langs/rust/pop-launcher/.gitignore delete mode 100644 anda/langs/rust/pop-launcher/0001-Copy-instead-of-symlink.patch delete mode 100644 anda/langs/rust/pop-launcher/anda.hcl delete mode 100644 anda/langs/rust/pop-launcher/pop-launcher.spec delete mode 100755 anda/langs/rust/pop-launcher/prepare.sh delete mode 100644 anda/langs/rust/pop-launcher/umpkg.cfg delete mode 100644 anda/langs/rust/pop-launcher/umpkg.toml delete mode 100644 anda/langs/rust/pop-launcher/update.rhai diff --git a/anda/langs/rust/pop-launcher/.gitignore b/anda/langs/rust/pop-launcher/.gitignore deleted file mode 100644 index 1d804f11e5..0000000000 --- a/anda/langs/rust/pop-launcher/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -*.rpm -*.src.rpm -*.log -build/ -*.tar* diff --git a/anda/langs/rust/pop-launcher/0001-Copy-instead-of-symlink.patch b/anda/langs/rust/pop-launcher/0001-Copy-instead-of-symlink.patch deleted file mode 100644 index ffce12203b..0000000000 --- a/anda/langs/rust/pop-launcher/0001-Copy-instead-of-symlink.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/justfile b/justfile -index 06793e9..5b57310 100644 ---- a/justfile -+++ b/justfile -@@ -70,7 +70,7 @@ install-plugins: - dest={{plugin-dir}}${plugin} - mkdir -p ${dest} - install -Dm0644 plugins/src/${plugin}/*.ron ${dest} -- ln -srf {{bin-path}} {{plugin-dir}}${plugin}/$(echo ${plugin} | sed 's/_/-/') -+ cp -af {{bin-path}} {{plugin-dir}}${plugin}/$(echo ${plugin} | sed 's/_/-/') - done - - # Install pop-launcher scripts diff --git a/anda/langs/rust/pop-launcher/anda.hcl b/anda/langs/rust/pop-launcher/anda.hcl deleted file mode 100644 index a7ce998c67..0000000000 --- a/anda/langs/rust/pop-launcher/anda.hcl +++ /dev/null @@ -1,5 +0,0 @@ -project pkg { - rpm { - spec = "pop-launcher.spec" - } -} diff --git a/anda/langs/rust/pop-launcher/pop-launcher.spec b/anda/langs/rust/pop-launcher/pop-launcher.spec deleted file mode 100644 index 50732fbd68..0000000000 --- a/anda/langs/rust/pop-launcher/pop-launcher.spec +++ /dev/null @@ -1,65 +0,0 @@ -%global debug_package %{nil} -%define _disable_source_fetch 0 -%bcond_without check -%global debug_package %{nil} - -%global crate pop-launcher - -Name: %{crate} -Version: 1.2.4 -Release: 1%?dist -Summary: Library for writing plugins and frontends for pop-launcher - -# Upstream license specification: MPL-2.0 -License: MPL-2.0 -URL: https://github.com/pop-os/launcher/ -Source: %{url}/archive/refs/tags/%{version}.tar.gz -Patch: 0001-Copy-instead-of-symlink.patch - -Provides: rust-%{crate} = 1.2.4 - -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging >= 21 -BuildRequires: just -BuildRequires: anda-srpm-macros -BuildRequires: fdupes -BuildRequires: pkgconfig(xkbcommon) -BuildRequires: mold - -Requires: (gnome-shell-extension-pop-shell or cosmic-launcher) - -%global _description %{expand: -Library for writing plugins and frontends for pop-launcher.} - -%description %{_description} - - -%prep -%autosetup -n launcher-%{version_no_tilde} -%cargo_prep_online - -%build -%set_build_flags -just build-release - -%install -just rootdir=%{buildroot} install -chmod +x %buildroot%_prefix/lib/pop-launcher/scripts/{session,system76-power}/*.sh - -%fdupes %buildroot%_prefix/ - -%if %{with check} -%check -%cargo_test -%endif - - -%files -%doc README.md -%license LICENSE -%{_bindir}/pop-launcher -%{_prefix}/lib/pop-launcher/ - -%changelog -%autochangelog diff --git a/anda/langs/rust/pop-launcher/prepare.sh b/anda/langs/rust/pop-launcher/prepare.sh deleted file mode 100755 index 512a46370c..0000000000 --- a/anda/langs/rust/pop-launcher/prepare.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash -set -x -spectool -g pop-launcher.spec || true - -FOLDER="$PWD" - -# Extract the tarball to /tmp/src/ -mkdir -p /tmp/src -tar -xzf ./1.*.tar.gz -C /tmp/src - -pushd /tmp/src/* || exit - -just vendor - -mv -v ./vendor.tar "$FOLDER"/vendor.tar - - -# tarball the .cargo folder - -tar -czf "$FOLDER"/cargo-config.tar.gz .cargo - - -popd || exit - -rm -rf /tmp/src -set +x \ No newline at end of file diff --git a/anda/langs/rust/pop-launcher/umpkg.cfg b/anda/langs/rust/pop-launcher/umpkg.cfg deleted file mode 100644 index 4bb1553770..0000000000 --- a/anda/langs/rust/pop-launcher/umpkg.cfg +++ /dev/null @@ -1,9 +0,0 @@ -[umpkg] -srcdir = $PWD -git_repo = -git_ref = -build_script = -build_mode = local -tag = -spec = - diff --git a/anda/langs/rust/pop-launcher/umpkg.toml b/anda/langs/rust/pop-launcher/umpkg.toml deleted file mode 100644 index 23a4ff4d42..0000000000 --- a/anda/langs/rust/pop-launcher/umpkg.toml +++ /dev/null @@ -1,5 +0,0 @@ -[package] -build_method = "mock" -spec = "pop-launcher.spec" -git_repo = "https://github.com/Ultramarine-Linux/pop-launcher.git" -build_script = "bash prepare.sh" \ No newline at end of file diff --git a/anda/langs/rust/pop-launcher/update.rhai b/anda/langs/rust/pop-launcher/update.rhai deleted file mode 100644 index 9e345dc572..0000000000 --- a/anda/langs/rust/pop-launcher/update.rhai +++ /dev/null @@ -1 +0,0 @@ -rpm.version(gh("pop-os/launcher"));