Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[f40] fix: switchboard-plug-tweaks (#1471) #1479

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions anda/desktops/elementary/pantheon-tweaks/anda.hcl

This file was deleted.

37 changes: 0 additions & 37 deletions anda/desktops/elementary/pantheon-tweaks/pantheon-tweaks.spec

This file was deleted.

1 change: 0 additions & 1 deletion anda/desktops/elementary/pantheon-tweaks/update.rhai

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@

%global plug_type personal
%global plug_name pantheon-tweaks
%global app io.github.pantheon_tweaks.pantheon-tweaks

Name: switchboard-plug-tweaks
Summary: Switchboard Tweaks Plug
Version: 2.0.2
Release: 1%?dist
Release: 2%?dist
License: GPL-3.0-or-later

URL: https://github.com/pantheon-tweaks/pantheon-tweaks
Source0: %{url}/archive/%{version}/%{plug_name}-%{version}.tar.gz

Provides: pantheon-tweaks = %version-%release
Obsoletes: pantheon-tweaks < 2.0.2-2

BuildRequires: gcc
BuildRequires: gettext
BuildRequires: libappstream-glib
Expand All @@ -22,7 +26,7 @@ BuildRequires: pkgconfig(gee-0.8)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(granite) >= 6.0.0
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(switchboard-2.0)
BuildRequires: pkgconfig(switchboard-3)

Requires: switchboard%{?_isa}

Expand Down Expand Up @@ -63,28 +67,22 @@ de trabalho.
%install
%meson_install

%find_lang %{plug_name}-plug
%find_lang %{plug_name}

# remove the specified stock icon from metainfo (invalid in libappstream-glib)
sed -i '/icon type="stock"/d' %{buildroot}/%{_datadir}/metainfo/%{plug_name}.metainfo.xml
sed -i '/icon type="stock"/d' %buildroot%_metainfodir/%app.metainfo.xml

%check
appstream-util validate-relax --nonet \
%{buildroot}/%{_datadir}/metainfo/%{plug_name}.metainfo.xml
appstream-util validate-relax --nonet %buildroot%_metainfodir/%app.metainfo.xml


%files -f %{plug_name}-plug.lang
%files -f %{plug_name}.lang
%license COPYING
%doc README.md
%doc AUTHORS
%doc CONTRIBUTORS

%{_libdir}/switchboard/%{plug_type}/lib%{plug_name}.so

%{_datadir}/metainfo/%{plug_name}.metainfo.xml
%{_datadir}/icons/hicolor/*/categories/preferences-*.svg


%changelog
* Sat Oct 15 2022 windowsboy111 <[email protected]>
- Repackaged for Terra
%_bindir/pantheon-tweaks
%_datadir/applications/%app.desktop
%_iconsdir/hicolor/*/apps/%app.svg
%_metainfodir/io.github.pantheon_tweaks.pantheon-tweaks.metainfo.xml
Loading