-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprotonplus.spec
More file actions
85 lines (68 loc) · 2.2 KB
/
Copy pathprotonplus.spec
File metadata and controls
85 lines (68 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-FileCopyrightText: 2023-2025 Wesley Gimenes <wehagy@proton.me>
# SPDX-Comment: See LICENSE for the full license text
##### Variable macros
%global tag v0.5.21
# BuildRequires dependencies
%global meson_version 1.0.0
%global libadwaita_version 1.6
##### Constant macros
%global app_id com.vysp3r.ProtonPlus
%global forgeurl https://github.com/vysp3r/ProtonPlus
# forgemeta macro need to be after forgeurl and tag macros
%forgemeta
# unset weird prefix set by forgemeta (.gitvX.X.X)
%undefine distprefix
Name: protonplus
Version: %{fileref}
Release: %autorelease
Summary: A modern compatibility tools manager
ExclusiveArch: x86_64
License: GPL-3.0-or-later
URL: https://protonplus.vysp3r.com
Source0: %{forgesource}
# license of the spec file
Source1: LICENSE
Source2: %{name}.rpmlintrc
##### Build dependencies
BuildRequires: gettext
BuildRequires: meson >= %{meson_version}
BuildRequires: vala
BuildRequires: pkgconfig(gee-0.8)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk4)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(libadwaita-1) >= %{libadwaita_version}
BuildRequires: pkgconfig(libarchive)
BuildRequires: pkgconfig(libsoup-3.0)
##### Check dependencies
# desktop-file-validate command
BuildRequires: desktop-file-utils
# appstream-util command
BuildRequires: libappstream-glib
##### Runtime dependencies
# fix: Directories without known owners: /usr/share/icons/hicolor/*
Requires: hicolor-icon-theme
%description
ProtonPlus allows you to easily manage and update various compatibility tools
like Proton, Wine, DXVK, and VKD3D across different launchers.
%prep
%forgeautosetup
%build
%meson
%meson_build
%install
%meson_install
%find_lang %{app_id}
%check
%meson_test
%files -f %{app_id}.lang
%license LICENSE.md
%doc README.md CONTRIBUTING.md CODE_OF_CONDUCT.md SECURITY.md
%{_bindir}/%{name}
%{_datadir}/applications/%{app_id}.desktop
%{_datadir}/glib-2.0/schemas/%{app_id}.gschema.xml
%{_datadir}/icons/hicolor/*/apps/%{app_id}.png
%{_metainfodir}/%{app_id}.metainfo.xml
%changelog
%autochangelog