-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxt7-player-mpv.spec
246 lines (196 loc) · 8.94 KB
/
xt7-player-mpv.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
%global giturl https://github.com/kokoko3k/xt7-player-mpv
%global commit 1d28e4380f6a9fcebf12b90b51512c2790a39983
%global gitdate 20210120
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global gitrelease .%{gitdate}.git%{shortcommit}
Name: xt7-player-mpv
Version: 0.37.3190
#Release: 0.1%%{?gitrelease}%%{?dist}
Release: 3%{?dist}
Summary: Qt/Gambas gui to mpv media player
License: GPLv3+
URL: http://xt7-player.sourceforge.net/xt7forum/
# Source0: %%{giturl}/archive/%%{commit}/%%{name}-%%{shortcommit}.tar.gz
Source0: %{giturl}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: fix-desktop-file.patch
BuildRequires: libappstream-glib
BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: gambas3-dev-tools
BuildRequires: gambas3-gb-desktop-x11
BuildRequires: gambas3-gb-qt5-wayland
BuildRequires: gambas3-gb-args
BuildRequires: gambas3-gb-compress
BuildRequires: gambas3-gb-db
BuildRequires: gambas3-gb-db-form
BuildRequires: gambas3-gb-dbus
BuildRequires: gambas3-gb-desktop
BuildRequires: gambas3-gb-form
BuildRequires: gambas3-gb-form-dialog
BuildRequires: gambas3-gb-form-mdi
BuildRequires: gambas3-gb-form-stock
BuildRequires: gambas3-gb-gui
BuildRequires: gambas3-gb-image
BuildRequires: gambas3-gb-image-imlib
BuildRequires: gambas3-gb-image-io
BuildRequires: gambas3-gb-net
BuildRequires: gambas3-gb-net-curl
BuildRequires: gambas3-gb-qt5-ext
BuildRequires: gambas3-gb-settings
BuildRequires: gambas3-gb-signal
BuildRequires: gambas3-gb-util-web
BuildRequires: gambas3-gb-web
BuildRequires: gambas3-gb-libxml
BuildRequires: pkgconfig(taglib)
BuildRequires: pkgconfig(taglib_c)
BuildRequires: ImageMagick
Requires: ffmpeg
Requires: gambas3-gb-args
Requires: gambas3-gb-compress
Requires: gambas3-gb-dbus
Requires: gambas3-gb-desktop
Requires: gambas3-gb-form
Requires: gambas3-gb-form-dialog
Requires: gambas3-gb-form-mdi
Requires: gambas3-gb-form-stock
Requires: gambas3-gb-gui
Requires: gambas3-gb-image
Requires: gambas3-gb-net
Requires: gambas3-gb-net-curl
Requires: gambas3-gb-qt5-ext
Requires: gambas3-gb-settings
Requires: gambas3-gb-signal
Requires: gambas3-gb-util-web
Requires: gambas3-gb-web
Requires: gambas3-gb-libxml
Requires: gambas3-runtime >= 3.8.4
Requires: hicolor-icon-theme
Requires: mpv >= 0.14.0
Requires: wget
Requires: youtube-dl
BuildArch: noarch
%description
Aims to be an (in)complete graphical interface to mpv, focused on
usability. It also provides extra features like youtube and shoutcast
integration, dvbt, media tagging, library and playlist managment and a lot
more.
%prep
%autosetup -p1 -n %{name}-%{version}
#%%autosetup -p1 -n %%{name}-%%{?commit}%%{?!commit:%%{version}}
sed -i '/project_group/d' xt7-player-mpv.appdata.xml
%build
gbc3 -e -a -g -t -f public-module -f public-control
gba3
%install
# executable
mkdir -p %{buildroot}%{_bindir}
# install -m755 %%{name}-%%{commit}.gambas %%{buildroot}%%{_bindir}/%%{name}.gambas
install -m755 %{name}-%{version}.gambas %{buildroot}%{_bindir}/%{name}.gambas
#icons
for size in 256 48 32 16; do
install -d %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps
convert %{name}.png -resize ${size} %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/%{name}.png
done
#menu entry
desktop-file-install %{name}.desktop\
--dir %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/{applications,metainfo}
install -Dm 0644 xt7-player-mpv.appdata.xml %{buildroot}%{_metainfodir}/xt7-player-mpv.appdata.xml
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.appdata.xml
%files
%doc CHANGELOG_GIT
%license LICENSE.TXT
%{_bindir}/%{name}.gambas
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_metainfodir}/%{name}*.xml
%changelog
* Wed Jan 29 2025 RPM Fusion Release Engineering <[email protected]> - 0.37.3190-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Fri Aug 02 2024 RPM Fusion Release Engineering <[email protected]> - 0.37.3190-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Mon Jun 24 2024 Martin Gansser <[email protected]> - 0.37.3190-1
- Update to 0.37.3190
* Sun Feb 04 2024 RPM Fusion Release Engineering <[email protected]> - 0.34.3172-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Aug 02 2023 RPM Fusion Release Engineering <[email protected]> - 0.34.3172-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Nov 17 2022 Vitaly Zaitsev <[email protected]> - 0.34.3172-4
- Rebuilt due to mpv update.
* Thu Aug 18 2022 Martin Gansser <[email protected]> - 0.34.3172-3
- Fixed gbc3 build command
- Add fix-desktop-file.patch
- Add fix-project-Component.patch
* Mon Aug 08 2022 RPM Fusion Release Engineering <[email protected]> - 0.34.3172-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
5.1
* Wed Jun 22 2022 Martin Gansser <[email protected]> - 0.34.3172-1
- Update to 0.34.3172
* Wed Apr 13 2022 Martin Gansser <[email protected]> - 0.34.3170-1
- Update to 0.34.3170
* Wed Feb 09 2022 RPM Fusion Release Engineering <[email protected]> - 0.33.3162-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Tue Aug 31 2021 Martin Gansser <[email protected]> - 0.33.3162-1
- Update to 0.33.3162
* Tue Aug 03 2021 RPM Fusion Release Engineering <[email protected]> - 0.33.3152-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri May 21 2021 Martin Gansser <[email protected]> - 0.33.3152-4
- Add BR gambas3-gb-qt5-wayland
* Thu May 20 2021 Martin Gansser <[email protected]> - 0.33.3152-1
- Update to 0.33.3152
- Add BR gambas3-dev-tools
- Add BR gambas3-gb-desktop-x11
* Thu Feb 04 2021 RPM Fusion Release Engineering <[email protected]> - 0.31.3143-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Aug 19 2020 RPM Fusion Release Engineering <[email protected]> - 0.31.3143-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jan 29 2020 Martin Gansser <[email protected]> - 0.31.3143-1
- Update to 0.31.3143
* Fri Nov 22 2019 Martin Gansser <[email protected]> - 0.30.3140-0.1.20191030.git6e211df
- Update to 0.30.3140-0.1.20191030.git6e211df
* Sun Oct 27 2019 Leigh Scott <[email protected]> - 0.29.3142-0.1.20191016.git3fac617
- Update to the latest git snapshot to fix compatibility with new mpv
* Fri Aug 09 2019 RPM Fusion Release Engineering <[email protected]> - 0.29.3122-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Tue Mar 05 2019 RPM Fusion Release Engineering <[email protected]> - 0.29.3122-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Mon Feb 25 2019 Martin Gansser <[email protected]> - 0.29.3122-1
- Update to 0.29.3122
* Sun Aug 19 2018 Leigh Scott <[email protected]> - 0.28.3100-3
- Rebuilt for Fedora 29 Mass Rebuild binutils issue
* Fri Jul 27 2018 RPM Fusion Release Engineering <[email protected]> - 0.28.3100-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed May 16 2018 Martin Gansser <[email protected]> - 0.28.3100-1
- Update to 0.28.3100
- Remove scriptlets
* Thu Mar 01 2018 RPM Fusion Release Engineering <[email protected]> - 0.27.392-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Tue Sep 19 2017 Martin Gansser <[email protected]> - 0.27.392-1
- Update to 27-392
* Thu Jul 20 2017 Martin Gansser <[email protected]> - 0.26.392-1
- Update to 26-392
* Mon May 01 2017 Martin Gansser <[email protected]> - 0.25.392-1
- Update to 25-392
* Tue Mar 21 2017 RPM Fusion Release Engineering <[email protected]> - 0.24.392-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Tue Feb 14 2017 Martin Gansser <[email protected]> - 0.24.392-1
- Update to 24-392
* Wed Nov 23 2016 Martin Gansser <[email protected]> - 0.22.391-1
- Update to 0.22.391
- Update license tag to GPLv3+
* Thu Nov 03 2016 Martin Gansser <[email protected]> - 0.21.384-1
- Update to 0.21.384
- remove gambas3-gb-qt4-ext
- Add gambas3-gb-qt5-ext
* Thu Sep 01 2016 Martin Gansser <[email protected]> - 0.20.384-1
- Update to 0.20.384
* Mon Jul 25 2016 Martin Gansser <[email protected]> - 0.18.1384-1
- Update to 0.18.1384
* Wed Jun 29 2016 Martin Gansser <[email protected]> - 0.18.384-1
- Update to 0.18.384
* Sun Apr 03 2016 Martin Gansser <[email protected]> - 0.17.384-1
- Update to 0.17.384
* Thu Mar 03 2016 Martin Gansser <[email protected]> - 0.14.384-1
- Initial release