-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
davinci-helper.spec
107 lines (79 loc) · 3.33 KB
/
davinci-helper.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
97
98
99
100
101
102
103
104
# NAME OF THE APP EXECUTABLE
Name: davinci-helper
# APP VERSION
Version: 2.2.3
# RELEASE AND DISTRIBUTION VERSION
Release: 1
# SHORT SUMMARY OF WHAT THE APP DOES
Summary: The best DaVinci Resolve companion app on Linux
# PUBBLICATION LICENSE
License: GPL-3.0
# WEB ADDRESS OF THE APP GITHUB
URL: https://github.com/H3rz3n/davinci-helper
# COMPILATION SOURCE https://github.com/H3rz3n/davinci-helper/blob/testing/
Source0: %{name}-%{version}.tar.gz
# COMPILATION ARCHITECTURE
BuildArch: noarch
# DEPENDENCIES REQUIRED FOR COMPILATION
BuildRequires: gtk4-devel
BuildRequires: libadwaita-devel
BuildRequires: python3-devel
BuildRequires: python3-pip
BuildRequires: python3-setuptools
BuildRequires: python3-wheel
BuildRequires: pyproject-rpm-macros
# DEPENDENCIES REQUIRED FOR EXECUTION
Requires: gtk4
Requires: libadwaita
# DISABLING THE AUTOMATIC DEPENDENCIES GENERATOR
%undefine __python_requires
%{?python_disable_dependency_generator}
# REMOVING SHEBANG OPTIONS
%undefine _py3_shebang_s
%undefine _py3_shebang_P
# APP FUNCTIONS DESCRIPTION
%description
DaVinci Helper is the ultimate app to help you install and run DaVinci Resolve on Fedora Linux.
# PREPARATION OPERATIONS FOR COMPILATION
%prep
%autosetup
# APP COMPILATION
%build
%pyproject_wheel
# APP INSTALLATION
%install
%pyproject_install
install -Dm644 %{_builddir}/%{name}-%{version}/data/desktop/com.davinci.helper.app.desktop %{buildroot}%{_datadir}/applications/com.davinci.helper.app.desktop
install -Dm644 %{_builddir}/%{name}-%{version}/data/desktop/davinci_helper_icon.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/davinci_helper_icon.svg
install -Dm644 %{_builddir}/%{name}-%{version}/data/desktop/com.davinci.helper.app.metainfo.xml %{buildroot}%{_datadir}/metainfo/com.davinci.helper.app.metainfo.xml
install -Dm644 %{_builddir}/%{name}-%{version}/data/polkit/com.davinci.helper.app.policy %{buildroot}/%{_datadir}/polkit-1/actions/com.davinci.helper.app.policy
install -Dm644 %{_builddir}/%{name}-%{version}/data/polkit/com.davinci.helper.app.rules %{buildroot}/%{_datadir}/polkit-1/rules.d/com.davinci.helper.app.rules
# LIST OF FILES INSTALLED BY THE APP AND THEIR LOCATIONS INSIDE THE SYSTEM
%files
# LIST OF FILES INCLUDED IN THE EQUIPMENT OF THE PACKAGE AND THEIR POSITION
%license LICENSE
%doc README.md
# LIST OF THE INSTALLED DIRECTORY AND THEIR POSITION
%{python3_sitelib}/davinci_helper*
%{_datadir}/davinci-helper/*
# LIST OF THE INSTALLED FILES AND THEIR POSITION
%{_bindir}/%{name}
%{_datadir}/applications/com.davinci.helper.app.desktop
%{_datadir}/icons/hicolor/scalable/apps/davinci_helper_icon.svg
%{_datadir}/metainfo/com.davinci.helper.app.metainfo.xml
%{_datadir}/polkit-1/actions/com.davinci.helper.app.policy
%{_datadir}/polkit-1/rules.d/com.davinci.helper.app.rules
# POST INSTALLATION OPERATIONS
%post
update-desktop-database &> /dev/null || :
sudo systemctl restart polkit
# CHANGELOG OF THE VERSION
%changelog
* Tue Dec 17 2024 Lorenzo Maiuri <[email protected]> - 2.2.3-1
- Added support for AMD iGPU 780M.
* Mon Nov 25 2024 Lorenzo Maiuri <[email protected]> - 2.2.1-1
- Fixed support for AMD iGPUs.
* Sun Nov 24 2024 Lorenzo Maiuri <[email protected]> - 2.2.0-1
- Switched from moviepy to FFPROBE for media info.
- Added support for AMD iGPU 880M and 890M.
- Improved GPU driver installer performance.