From 3fe587906a8ea7d7ec0913b073c9d1ef148a1b92 Mon Sep 17 00:00:00 2001 From: madomado Date: Wed, 26 Jul 2023 02:12:27 +0800 Subject: [PATCH] add: mate-tweak (#651) * add: mate-tweak * oops, forgot anda.hcl * and I need update.rhai * a * Update mate-tweak.spec * fix: mate-tweak * forgot macro as builddep * well turns out we need to pip install distutils-extra-python * intltool-update * fix: debug_package * fix files * a? * a? files * fix files * fix files --- anda/desktops/mate/tweak/anda.hcl | 5 +++ anda/desktops/mate/tweak/mate-tweak.spec | 47 ++++++++++++++++++++++++ anda/desktops/mate/tweak/update.rhai | 1 + 3 files changed, 53 insertions(+) create mode 100644 anda/desktops/mate/tweak/anda.hcl create mode 100644 anda/desktops/mate/tweak/mate-tweak.spec create mode 100644 anda/desktops/mate/tweak/update.rhai diff --git a/anda/desktops/mate/tweak/anda.hcl b/anda/desktops/mate/tweak/anda.hcl new file mode 100644 index 0000000000..202963aea4 --- /dev/null +++ b/anda/desktops/mate/tweak/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "mate-tweak.spec" + } +} diff --git a/anda/desktops/mate/tweak/mate-tweak.spec b/anda/desktops/mate/tweak/mate-tweak.spec new file mode 100644 index 0000000000..69f0099d3b --- /dev/null +++ b/anda/desktops/mate/tweak/mate-tweak.spec @@ -0,0 +1,47 @@ +%define debug_package %nil + +Name: mate-tweak +Version: 22.10.0 +Release: 1%?dist +Summary: Tweak tool for the MATE Desktop +License: GPL-2.0 +URL: https://github.com/ubuntu-mate/mate-tweak +Source0: %url/archive/refs/tags/%version.tar.gz +Requires: python3 +BuildRequires: python3dist(setuptools) rpm_macro(py3_build) intltool desktop-file-utils + +%description +This is MATE Tweak, a fork of mintDesktop. + +%prep +%autosetup +python3 -m ensurepip +python3 -m pip install distutils-extra-python + +%build +%py3_build + +%install +%py3_install + +%check +desktop-file-validate %buildroot%_datadir/applications/*.desktop + +%files +%doc README.md +%license COPYING +%_bindir/%name +%_bindir/marco-{compton,xrender,picom,glx,xr_glx_hybrid,no-composite} +%_prefix/lib/%name/ +%_datadir/locale/*/LC_MESSAGES/%name.mo +%_mandir/man1/marco-{glx,no-composite,xr_glx_hybrid,xrender}.1.gz +%_mandir/man1/%name.1.gz +%_datadir/applications/%name.desktop +%_datadir/applications/marco-{glx,no-composite,xr_glx_hybrid,xrender}.desktop +%_datadir/polkit-1/actions/org.mate.%name.policy +%ghost %_prefix/lib/python3.11/site-packages/__pycache__ +%ghost %_prefix/lib/python3.11/site-packages/setup.py +%ghost %_prefix/lib/python3.11/site-packages/mate_tweak-%version-py%python3_version.egg-info/ + +%changelog +%autochangelog diff --git a/anda/desktops/mate/tweak/update.rhai b/anda/desktops/mate/tweak/update.rhai new file mode 100644 index 0000000000..105f92ae20 --- /dev/null +++ b/anda/desktops/mate/tweak/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("ubuntu-mate/mate-tweak"));