Пакет gpui: Specfile

  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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
%define _unpackaged_files_terminate_build 1

Name: gpui
Version: 0.2.40
Release: alt1

Summary: Group policy editor
License: GPLv2+
Group: Other
Url: https://github.com/august-alt/gpui

BuildRequires: cmake
BuildRequires: rpm-macros-cmake
BuildRequires: cmake-modules
BuildRequires: gcc-c++
BuildRequires: qt5-base-devel
BuildRequires: qt5-declarative-devel
BuildRequires: qt5-tools-devel
BuildRequires: libsmbclient-devel libsmbclient

BuildRequires: samba-devel
BuildRequires: libldap-devel
BuildRequires: libsasl2-devel
BuildRequires: libsmbclient-devel
BuildRequires: libuuid-devel
BuildRequires: glib2-devel
BuildRequires: libpcre-devel
BuildRequires: libkrb5-devel
BuildRequires: libgtest-devel

BuildRequires: qt5-base-common
BuildRequires: doxygen
BuildRequires: libxerces-c-devel
BuildRequires: xsd
BuildRequires: boost-devel-headers

BuildRequires: desktop-file-utils ImageMagick-tools

BuildRequires: libqt-mvvm-devel

BuildRequires: xorg-xvfb xvfb-run

Requires: admx-basealt

Source0: %name-%version.tar

%description
Group policy editor

%prep
%setup -q

%build
%cmake
%cmake_build

%install
%cmakeinstall_std

cd %_cmake__builddir
desktop-file-install --dir=%buildroot%_desktopdir \
                     --set-key Exec --set-value %_bindir/gpui-main \
                     ../setup/gpui.desktop

for size in 48 64 128 256 512; do
    mkdir -p %buildroot%_datadir/icons/hicolor/''${size}x''${size}/apps/
    convert ../setup/logo_1024_1024.png -resize ''${size}x''${size} \
    %buildroot%_datadir/icons/hicolor/''${size}x''${size}/apps/gpui.png
done

install -v -p -m 644 -D ../setup/man/en/gpui.1 %buildroot%_man1dir/gpui.1
install -v -p -m 644 -D ../setup/man/ru/gpui.1 %buildroot%_mandir/ru/man1/gpui.1

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:%_libdir/gpui/plugins/

LD_PRELOAD=%buildroot%_libdir/gpui/plugins/libadministrative-templates-plugin.so

%files
%doc README.md
%doc INSTALL.md
%_bindir/gpui-main

%_libdir/libgpui-core.so
%_libdir/libgpui-gui.so
%_libdir/libgpui-io.so
%_libdir/libgpui-ldap.so

%_libdir/gpui/plugins/libadministrative-templates-plugin.so
%_libdir/gpui/plugins/libpreferences-plugin.so

%_libdir/gpui/plugins/libadml-plugin.so
%_libdir/gpui/plugins/libadmx-plugin.so
%_libdir/gpui/plugins/libcmtl-plugin.so
%_libdir/gpui/plugins/libcmtx-plugin.so
%_libdir/gpui/plugins/libinifile-plugin.so
%_libdir/gpui/plugins/libreg-plugin.so
%_libdir/gpui/plugins/libspol-plugin.so
%_libdir/gpui/plugins/libpol-plugin.so
%_libdir/gpui/plugins/libscripts-plugin.so

%_libdir/gpui/plugins/libsmb-storage-plugin.so

%_datadir/icons/hicolor/48x48/apps/gpui.png
%_datadir/icons/hicolor/64x64/apps/gpui.png
%_datadir/icons/hicolor/128x128/apps/gpui.png
%_datadir/icons/hicolor/256x256/apps/gpui.png
%_datadir/icons/hicolor/512x512/apps/gpui.png

%_desktopdir/gpui.desktop

%_man1dir/gpui.*
%_mandir/ru/man1/gpui.*

%changelog
* Tue Dec 26 2023 Vladimir Rubanov <august@altlinux.org> 0.2.40-alt1
- 0.2.40-alt1
- Fixes:
  + Fix replace path with name in script dialog.

* Mon Dec 25 2023 Vladimir Rubanov <august@altlinux.org> 0.2.39-alt1
- 0.2.39-alt1
- Fixes:
  + Fix add script dialog.
  + Fix script's folder creation.

* Fri Oct 13 2023 Vladimir Rubanov <august@altlinux.org> 0.2.38-alt1
- 0.2.38-alt1
- Fixes:
  + Fix ldap guid path.

* Fri Oct 13 2023 Vladimir Rubanov <august@altlinux.org> 0.2.37-alt1
- 0.2.37-alt1
- Fixes:
  + Fix "both" policy type.
  + Fix extensions guid in gpc.

* Mon Oct 09 2023 Vladimir Rubanov <august@altlinux.org> 0.2.36-alt1
- 0.2.36-alt1
- Fixes:
  + Emergency fix for invalid pol files.

* Thu Oct 05 2023 Vladimir Rubanov <august@altlinux.org> 0.2.35-alt1
- 0.2.35-alt1
- Fixes:
  + Fix subsequent deletion of multiple elements in scripts dialog (Closes: 47553).
  + Fix desktop file entry.
  + Fix add folder name to script path.

* Mon Sep 04 2023 Vladimir Rubanov <august@altlinux.org> 0.2.34-alt1
- 0.2.34-alt1
- Fixes:
  + Fix translations language list (Closes: 47437).
  + Fix translations for comment in administrative templates plugin (Fixes: 109650).
  + Fix scripts encoding to UTF-16LE.
  + Remove browse button from add script widget.

* Fri Sep 01 2023 Vladimir Rubanov <august@altlinux.org> 0.2.33-alt1
- 0.2.33-alt1
- Fixes:
  + Fix translations for path and parameters in scripts plugin (Closes: 47133).
  + Fix show files button in scripts plugin (Closes: 47136).
  + Fix list parameters in administrative templates plugin (Closes: 47137).
- Features:
  + New logging system.

* Fri Jul 21 2023 Vladimir Rubanov <august@altlinux.org> 0.2.32-alt1
- 0.2.32-alt1
- Features:
  + Implement support of platforms in filter dialog.

* Wed Jul 19 2023 Vladimir Rubanov <august@altlinux.org> 0.2.31-alt1
- 0.2.31-alt1
- Fixes:
  + Fix scripts plugin.

* Fri Jul 14 2023 Vladimir Rubanov <august@altlinux.org> 0.2.30-alt1
- 0.2.30-alt1
- Fixes:
  + Fix comments plugin.

* Thu Jul 13 2023 Vladimir Rubanov <august@altlinux.org> 0.2.29-alt1
- 0.2.29-alt1
- Fixes:
  + Add comments support.

* Wed Jun 21 2023 Vladimir Rubanov <august@altlinux.org> 0.2.28-alt1
- 0.2.28-alt1
- Fixes:
  + Fix update of administrative templates filter dialog.

* Tue Jun 20 2023 Vladimir Rubanov <august@altlinux.org> 0.2.27-alt1
- 0.2.27-alt1
- Features:
  + Implement administrative templates filter dialog.

* Wed Jun 07 2023 Vladimir Rubanov <august@altlinux.org> 0.2.26-alt1
- 0.2.26-alt1
- Fixes:
  + Fix policies with value name only. (Closes: 46082).
  + Fix namespaces. (Closes: 46282).

* Fri May 19 2023 Vladimir Rubanov <august@altlinux.org> 0.2.25-alt1
- 0.2.25-alt1
- Fixes:
  + Fix application launch without arguments (Closes: 46189).

* Tue Apr 11 2023 Vladimir Rubanov <august@altlinux.org> 0.2.24-alt1
- 0.2.24-alt1
- Fixes:
  + Fix laguage loading in plugins.
  + Fix tests.

* Wed Apr 05 2023 Vladimir Rubanov <august@altlinux.org> 0.2.23-alt1
- 0.2.23-alt1
- Fixes:
  + Fix support for files without extensions in files preference.

* Wed Mar 29 2023 Vladimir Rubanov <august@altlinux.org> 0.2.22-alt1
- 0.2.22-alt1
- Fixes:
  + Fix policy path in scripts plugin.

* Mon Mar 27 2023 Vladimir Rubanov <august@altlinux.org> 0.2.21-alt1
- 0.2.21-alt1
- Fixes:
  + Add button to clear key sequence in shortcuts widget.
  + Fix typos in folder preferences.
  + Fix writing script to smb shares.

* Sun Mar 05 2023 Vladimir Rubanov <august@altlinux.org> 0.2.20-alt1
- 0.2.20-alt1
- Fixes:
  + Fix policy's key search for lists in administrative templates.

* Sun Mar 05 2023 Vladimir Rubanov <august@altlinux.org> 0.2.19-alt1
- 0.2.19-alt1
- Fixes:
  + Replace std::regex with QRegularExpression in scripts module.

* Thu Jan 19 2023 Vladimir Rubanov <august@altlinux.org> 0.2.18-alt1
- 0.2.18-alt1
- Features:
  + Implement scripts module.

* Thu Jan 19 2023 Vladimir Rubanov <august@altlinux.org> 0.2.17-alt18
- 0.2.17-alt18
- Fixes:
  + Fix input in section field in ini widget on delete action.
  + Fix set default setting to true for user context in user policies.

* Thu Jan 12 2023 Vladimir Rubanov <august@altlinux.org> 0.2.17-alt17
- 0.2.17-alt17
- Fixes:
  + #91098 Fix translations for shortcuts widget on KDE systems.

* Tue Jan 10 2023 Vladimir Rubanov <august@altlinux.org> 0.2.17-alt16
- 0.2.17-alt16
- Fixes:
  + #91098 Fix translations for shortcuts widget.
  + #88126 Implement shortcuts key sequence encoding.

* Wed Dec 28 2022 Vladimir Rubanov <august@altlinux.org> 0.2.17-alt15
- 0.2.17-alt15
- Fixes:
  + #91635 Fix e2k preferences build.
  + #91629 Fix translations on e2kv4.
  + #75874 Change spinbox behaviour to mimic windows behaviour.
  + #89621 Fix typo in ini widget.
  + #91060 Fix OK and Cancel buttons to work in a message box.

* Mon Dec 26 2022 Vladimir Rubanov <august@altlinux.org> 0.2.17-alt14
- 0.2.17-alt14
- Fixes:
  + #91097 Fix names of hidden and archive fields in folder widget.
  + #91237 Remove sorting in table header.
  + #90987 Fix status bar message.
  + #91312 Add translation to '-n' command line option.
  + #91047 Fix segmentation fault in the absence of kerberos tickets.

* Thu Dec 15 2022 Vladimir Rubanov <august@altlinux.org> 0.2.17-alt13
- 0.2.17-alt13
- Fixes:
  + Fix presentation builder to allow build on e2k.

* Thu Dec 15 2022 Vladimir Rubanov <august@altlinux.org> 0.2.17-alt12
- 0.2.17-alt12
- Fixes:
  + Fix e2k build.

* Fri Dec 09 2022 Vladimir Rubanov <august@altlinux.org> 0.2.17-alt11
- 0.2.17-alt11
- Fixes:
  + #89597 Fix message box.
  + #88897 Ask to save changes.
  + #75885 Add sort to drop down list elements.
  +        Fix set correct resource for non existent registry.pol files.
  +        Fix copy policy to copied item.
  + #76835 Fix policy names.
  + #88907 Fix google chrome policies handling.

* Tue Dec 06 2022 Vladimir Rubanov <august@altlinux.org> 0.2.17-alt10
- 0.2.17-alt10
- Fixes:
  + #89553 Switch search to be case insensitive.
  + #89558 Fix translations of shortcuts widget.
  + #89561 Fix russian translations in properties widget.
  + #89621 Fix ini file's widget translations.
  + #89692 Fix translation of shortcuts widget.
  + #89648 Fix russian translation of shares widget.
  + #89648 Fix russian translation of common widget.

* Wed Nov 30 2022 Vladimir Rubanov <august@altlinux.org> 0.2.17-alt9
- 0.2.17-alt9
- Fixes:
  + Fix null pointer in ldap library.
  + Fix invalid drive name.

* Tue Nov 29 2022 Vladimir Rubanov <august@altlinux.org> 0.2.17-alt8
- 0.2.17-alt8
- Fixes:
  + #88602 Fix creation of network share's attributes.
  + #88794 Fix drive map's xml structure.
  + #44378 Allow empty section name in ini widget.
  + #74009 Remove labels in empty widget.
  + #88711 Modify model builder of network shares to write only required fields.
  + #88844 Fix save of admx path setting.

* Wed Nov 16 2022 Vladimir Rubanov <august@altlinux.org> 0.2.17-alt7
- 0.2.17-alt7
- Fixes:
  + #88813 Fix restore dependency on admx-basealt.
  + #88495 Fix translations in environment variable widget.
  + #88226 Fix folder creation.
  + #88143 Fix folder attributes during deletion of folders.
  + #88586 Fix russian translation of mapped drive context menu.

* Wed Nov 16 2022 Vladimir Rubanov <august@altlinux.org> 0.2.17-alt6
- 0.2.17-alt6
  Features:
  + Add mapped drives for computers and network shares for user.

* Wed Nov 16 2022 Vladimir Rubanov <august@altlinux.org> 0.2.17-alt5
- 0.2.17-alt5
- Fixes:
  + #88226 Fix inability to create folders.
  + #88226 Fix inability to create files.
  + Restore n option.

* Fri Nov 11 2022 Vladimir Rubanov <august@altlinux.org> 0.2.17-alt4
- 0.2.17-alt4
- Features:
  + Add custom tree view for preferences.

* Fri Nov 11 2022 Vladimir Rubanov <august@altlinux.org> 0.2.17-alt3
- 0.2.17-alt3
- Fixes:
  + #74208 Fix group policy name.
  + Fix translations in administrative templates plugin.

* Thu Nov 10 2022 Vladimir Rubanov <august@altlinux.org> 0.2.17-alt2
- 0.2.17-alt2

* Thu Nov 03 2022 Vladimir Rubanov <august@altlinux.org> 0.2.17-alt1
- 0.2.17

* Thu Sep 29 2022 Vladimir Rubanov <august@altlinux.org> 0.2.16-alt1
- Fixes:
  + #84127 Fix invalid types for list enums.
  + #76835 Fix message on policy state change.

* Thu Aug 04 2022 Vladimir Rubanov <august@altlinux.org> 0.2.15-alt1
- Fixes:
  + #81760 Fix disabled and enabled list in policies.

* Mon Apr 18 2022 Vladimir Rubanov <august@altlinux.org> 0.2.14-alt1
- Fixes:
  + Vesioning improved.
  + Fixed build on e2k platform.

* Fri Apr 04 2022 Vladimir Rubanov <august@altlinux.org> 0.2.0-alt13
- Fixes:
  + #75065 Add workaround for bug #75065.

* Fri Mar 31 2022 Vladimir Rubanov <august@altlinux.org> 0.2.0-alt12
- Fixes:
  + Fix -n command line option.

* Fri Mar 30 2022 Vladimir Rubanov <august@altlinux.org> 0.2.0-alt11
- Fixes:
  + #74198 Improve ability to detect policy changes and notify user about them.
  + #74149 Fix install/removal of packages through list element.
  + #74217 Add switch between elements through keyboard.
  + #75076 Fix -b option.
  + #75070 Add decimal text box minimum and maximum.
  + #75065 Add message boxes for access errors.
  + Fix several build issues on e2k platform.

* Fri Mar 25 2022 Vladimir Rubanov <august@altlinux.org> 0.2.0-alt10
- Fixes:
  + #74754 Fix ability to generate pol setting for "both" policy type.
  + #74151 Fix generate Chromium/Firefox start page in pol file.
  + #75062 Prevent doubling of items in drop list.
  + #75058 Fix command name in manual.
  + #75062 Remove icons from OK/Cancel buttons.
  + #75035 Set fixed container height for label.

* Fri Mar 18 2022 Vladimir Rubanov <august@altlinux.org> 0.2.0-alt9
- Fixes:
  + Fix segmentation fault on selecting new policy item.
  + Fix translation of message box window.

* Wed Mar 16 2022 Vladimir Rubanov <august@altlinux.org> 0.2.0-alt8
- Fixes:
  + #74163 Fix segmentation fault on selecting item in "security category".
  + #74704 Fix window resize on label resize.
  + #74050 Fix cancel buttons translation.
  + #74050 Man was added.

* Mon Mar 14 2022 Vladimir Rubanov <august@altlinux.org> 0.2.0-alt7
- Fixes:
  + #74215 Add message for the change of policy's state.
  + #74217 Add ability to select policies with keyboard.
  + #74208 Add policy name label.
  + #74172 Make list dialog modal.
  + #74005 Remove empty folders from tree view.
  + #74015 Add ability to resize right frame.
  + #74028 Remove --help-all command argument.
  + #74046 Improve sort order of tree view.
  + #74054 Fix ability to save integer values.

* Tue Mar 01 2022 Vladimir Rubanov <august@altlinux.org> 0.2.0-alt6
- Fixes:
  + #74114 Fix ability to load ADMX bundle.

* Mon Feb 28 2022 Vladimir Rubanov <august@altlinux.org> 0.2.0-alt5
- Fixes:
  + #73976 Correct dialog flags to provide ability to select folders.
  + #73977 Switch to Qt based dialog to add application icon to dialog.
  + #73617 Fix bug with caption in about window.
  + #74027 Fix version command.
  + #74048 Fix English translation of help menu.
  + #74052 Fix remove empty strings from multi-string.
  + #74051 Fix saving of language settings.
  + #74002 Fix saving of admx settings.

* Mon Feb 21 2022 Vladimir Rubanov <august@altlinux.org> 0.2.0-alt4
- Fixes:
  + #73754 Fix translations in open admx dialog.
  + #73747 Fix translation of command line options.
  + #73625 Fix add application icon.
  + #73788 Fix add admx-basealt to spec.
  + #73738 Fix add manual.

* Fri Feb 18 2022 Vladimir Rubanov <august@altlinux.org> 0.2.0-alt3
- Fixes:
  + #73617 Fix difference of about window from that of ADMC.
  + #73627 Fix invalid header of the main window.
  + #73629 Fix absent translation of program icon in start menu.
  + Fix disabling and non configuring policies.

* Wed Feb 17 2022 Vladimir Rubanov <august@altlinux.org> 0.2.0-alt2
- Fixes:
  + Fix string saving to pol file.

* Wed Feb 16 2022 Vladimir Rubanov <august@altlinux.org> 0.2.0-alt1
- 0.2.0
- Features:
  + Implement signal based save system.
  + Introduce policy element types into policy elements.
- Fixes:
  + Fix combo box indices and values.

* Tue Feb 01 2022 Vladimir Rubanov <august@altlinux.org> 0.1.0-alt2
- A first implementation of smb routines.

* Mon Jul 05 2021 Evgeny Sinelnikov <sin@altlinux.org> 0.1.0-alt1
- Initial build