1 |
%define name smeserver-manager-jsquery |
%define name smeserver-manager-jsquery |
2 |
%define version 1.0 |
%define version 1.0 |
3 |
%define release 1 |
%define release 3 |
4 |
Summary: Jsquery and associated plugins plus server-manager (2) specific overrides. |
Summary: Jsquery and associated plugins plus server-manager (2) specific overrides. |
5 |
Name: %{name} |
Name: %{name} |
6 |
Version: %{version} |
Version: %{version} |
8 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
9 |
License: GNU GPL version 2 |
License: GNU GPL version 2 |
10 |
Group: SMEserver/addon |
Group: SMEserver/addon |
11 |
|
Patch0: smeserver-manager-jsquery-1.0-Fix-css-override-for-dataTables.patch |
12 |
|
Patch1: smeserver-manager-jsquery-1.0-Add-Export-Buttons-to-dataTable.patch |
13 |
|
|
14 |
BuildRoot: %{_tmppath}/%{name}-buildroot |
BuildRoot: %{_tmppath}/%{name}-buildroot |
15 |
Prefix: %{_prefix} |
Prefix: %{_prefix} |
16 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
24 |
Jsquery and associated plugins plus server-manager (2) specific overrides. |
Jsquery and associated plugins plus server-manager (2) specific overrides. |
25 |
|
|
26 |
%changelog |
%changelog |
27 |
|
* Wed Feb 07 2024 Brian Read <brianr@koozali.org> 1.0-3.sme |
28 |
|
- Add export buttons to table using dataTables plugin [SME: 12466] |
29 |
|
|
30 |
|
* Sun Feb 04 2024 Brian Read <brianr@koozali.org> 1.0-2.sme |
31 |
|
- Fix-css-override-for-dataTables [SME: 12465] |
32 |
|
|
33 |
* Mon Jan 29 2024 <brianr@koozali.org> 1.0-1.sme |
* Mon Jan 29 2024 <brianr@koozali.org> 1.0-1.sme |
34 |
- Initial code - create RPM [SME:12459] |
- Initial code - create RPM [SME:12459] |
35 |
|
|
36 |
%prep |
%prep |
37 |
|
|
38 |
%setup |
%setup |
39 |
|
%patch0 -p1 |
40 |
|
%patch1 -p1 |
41 |
|
|
42 |
%build |
%build |
43 |
perl createlinks |
perl createlinks |
66 |
[ -d %{dir_mngr}/themes/default/public/js ] || |
[ -d %{dir_mngr}/themes/default/public/js ] || |
67 |
mkdir -p %{dir_mngr}/themes/default/public/js |
mkdir -p %{dir_mngr}/themes/default/public/js |
68 |
|
|
69 |
[ -h %{dir_mngr}/themes/default/public/js/images ] || |
[ -h %{dir_mngr}/themes/default/public/js/images ] || |
70 |
ln -s /usr/share/javascript/jquery-ui/images %{dir_mngr}/themes/default/public/js/images |
ln -s /usr/share/javascript/jquery-ui/images %{dir_mngr}/themes/default/public/js/images |
71 |
|
|
72 |
|
|
84 |
ln -s /usr/share/javascript/jquery-ui/jquery-ui.min.js %{dir_mngr}/themes/default/public/js/jquery-ui.min.js |
ln -s /usr/share/javascript/jquery-ui/jquery-ui.min.js %{dir_mngr}/themes/default/public/js/jquery-ui.min.js |
85 |
[ -h %{dir_mngr}/themes/default/public/js/jquery-ui.min.css ] || |
[ -h %{dir_mngr}/themes/default/public/js/jquery-ui.min.css ] || |
86 |
ln -s /usr/share/javascript/jquery-ui/jquery-ui.min.css %{dir_mngr}/themes/default/public/js/jquery-ui.min.css |
ln -s /usr/share/javascript/jquery-ui/jquery-ui.min.css %{dir_mngr}/themes/default/public/js/jquery-ui.min.css |
87 |
|
|
88 |
|
[ -h %{dir_mngr}/themes/default/public/js/dataTables.buttons.min.js ] || |
89 |
|
ln -s /usr/share/javascript/dataTables.buttons.min.js %{dir_mngr}/themes/default/public/js/dataTables.buttons.min.js |
90 |
|
|
91 |
|
[ -h %{dir_mngr}/themes/default/public/js/jszip.min.js ] || |
92 |
|
ln -s /usr/share/javascript/jszip/jszip.min.js %{dir_mngr}/themes/default/public/js/jszip.min.js |
93 |
|
|
94 |
|
[ -h %{dir_mngr}/themes/default/public/js/pdfmake.min.js ] || |
95 |
|
ln -s /usr/share/javascript/pdfmake/pdfmake.min.js %{dir_mngr}/themes/default/public/js/pdfmake.min.js |
96 |
|
|
97 |
|
[ -h %{dir_mngr}/themes/default/public/js/vfs_fonts.js ] || |
98 |
|
ln -s /usr/share/javascript/pdfmake/vfs_fonts.js %{dir_mngr}/themes/default/public/js/vfs_fonts.js |
99 |
|
|
100 |
|
[ -h %{dir_mngr}/themes/default/public/js/buttons.html5.min.js ] || |
101 |
|
ln -s /usr/share/javascript/buttons/buttons.html5.min.js %{dir_mngr}/themes/default/public/js/buttons.html5.min.js |
102 |
|
|
103 |
|
[ -h %{dir_mngr}/themes/default/public/js/buttons.print.min.js ] || |
104 |
|
ln -s /usr/share/javascript/buttons/buttons.print.min.js %{dir_mngr}/themes/default/public/js/buttons.print.min.js |
105 |
|
|
106 |
|
|
107 |
fi |
fi |