-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathumu-launcher.spec
96 lines (76 loc) · 2.5 KB
/
umu-launcher.spec
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
86
87
88
89
90
91
92
93
94
95
96
# Tag is auto-inserted by workflow
%global tag 1.2.5
# Manual commit is auto-inserted by workflow
%global commit a11540cbf2221a5671c4ced97c0bf7e61c98d21e
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global build_timestamp %(date +"%Y%m%d")
%global rel_build 1.%{build_timestamp}.%{shortcommit}%{?dist}
# F41 doesn't ship urllib3 >= 2.0 needed
%global urllib3 2.3.0
Name: umu-launcher
Version: %{tag}
Release: %{rel_build}
Summary: A tool for launching non-steam games with proton
License: GPLv3
URL: https://github.com/Open-Wine-Components/umu-launcher
Source0: %{url}/archive/refs/tags/%{tag}.tar.gz#/%{name}-%{tag}.tar.gz
Source1: https://github.com/urllib3/urllib3/releases/download/%{urllib3}/urllib3-%{urllib3}.tar.gz
BuildArch: x86_64
BuildRequires: meson >= 0.54.0
BuildRequires: ninja-build
BuildRequires: cmake
BuildRequires: g++
BuildRequires: gcc-c++
BuildRequires: scdoc
BuildRequires: git
BuildRequires: python3-devel
BuildRequires: python3-build
BuildRequires: python3-installer
BuildRequires: python3-hatchling
BuildRequires: python
BuildRequires: python3
BuildRequires: python3-pip
BuildRequires: libzstd-devel
BuildRequires: python3-hatch-vcs
BuildRequires: python3-wheel
BuildRequires: python3-xlib
BuildRequires: python3-pyzstd
BuildRequires: cargo
# Can't use these yet, F41 doesn't ship urllib3 >= 2.0 needed
#BuildRequires: python3-urllib3
Requires: python
Requires: python3
Requires: python3-xlib
Requires: python3-filelock
Requires: python3-pyzstd
# Can't use these yet, F41 doesn't ship urllib3 >= 2.0 needed
#Requires: python3-urllib3
Recommends: python3-cbor2
Recommends: python3-xxhash
Recommends: libzstd
# We need this for now to allow umu's builtin urllib3 version to be used.
# Can be removed when python3-urllib3 version is bumped >= 2.0
AutoReqProv: no
%description
%{name} A tool for launching non-steam games with proton
%prep
%autosetup -p 1
if ! find subprojects/urllib3/ -mindepth 1 -maxdepth 1 | read; then
# Directory is empty, perform action
mv %{SOURCE1} .
tar -xf urllib3-%{urllib3}.tar.gz
rm *.tar.gz
mv urllib3-%{urllib3}/* subprojects/urllib3/
fi
%build
# Update this when fedora ships urllib3 >= 2.0
#./configure.sh --prefix=/usr --use-system-pyzstd --use-system-urllib
./configure.sh --prefix=/usr --use-system-pyzstd
make
%install
make DESTDIR=%{buildroot} PYTHONDIR=%{python3_sitelib} install
%files
%{_bindir}/umu-run
%{_datadir}/man/*
%{python3_sitelib}/umu*
%changelog