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 4 |
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 |
|
Patch2: smeserver-manager-jsquery-1.0-Add-Callback-in-dataTable-to-remake-buttons.patch |
14 |
|
|
15 |
BuildRoot: %{_tmppath}/%{name}-buildroot |
BuildRoot: %{_tmppath}/%{name}-buildroot |
16 |
Prefix: %{_prefix} |
Prefix: %{_prefix} |
17 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
25 |
Jsquery and associated plugins plus server-manager (2) specific overrides. |
Jsquery and associated plugins plus server-manager (2) specific overrides. |
26 |
|
|
27 |
%changelog |
%changelog |
28 |
|
* Thu Feb 08 2024 Brian Read <brianr@koozali.org> 1.0-4.sme |
29 |
|
- Add callback in dataTable to setup buttons in rows [SME: 12467] |
30 |
|
- Move dataTable js to seperate file (maybe template it at some point) |
31 |
|
|
32 |
|
* Wed Feb 07 2024 Brian Read <brianr@koozali.org> 1.0-3.sme |
33 |
|
- Add export buttons to table using dataTables plugin [SME: 12466] |
34 |
|
|
35 |
|
* Sun Feb 04 2024 Brian Read <brianr@koozali.org> 1.0-2.sme |
36 |
|
- Fix-css-override-for-dataTables [SME: 12465] |
37 |
|
|
38 |
* Mon Jan 29 2024 <brianr@koozali.org> 1.0-1.sme |
* Mon Jan 29 2024 <brianr@koozali.org> 1.0-1.sme |
39 |
- Initial code - create RPM [SME:12459] |
- Initial code - create RPM [SME:12459] |
40 |
|
|
41 |
%prep |
%prep |
42 |
|
|
43 |
%setup |
%setup |
44 |
|
%patch0 -p1 |
45 |
|
%patch1 -p1 |
46 |
|
%patch2 -p1 |
47 |
|
|
48 |
%build |
%build |
49 |
perl createlinks |
perl createlinks |
72 |
[ -d %{dir_mngr}/themes/default/public/js ] || |
[ -d %{dir_mngr}/themes/default/public/js ] || |
73 |
mkdir -p %{dir_mngr}/themes/default/public/js |
mkdir -p %{dir_mngr}/themes/default/public/js |
74 |
|
|
75 |
[ -h %{dir_mngr}/themes/default/public/js/images ] || |
[ -h %{dir_mngr}/themes/default/public/js/images ] || |
76 |
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 |
77 |
|
|
78 |
|
|
90 |
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 |
91 |
[ -h %{dir_mngr}/themes/default/public/js/jquery-ui.min.css ] || |
[ -h %{dir_mngr}/themes/default/public/js/jquery-ui.min.css ] || |
92 |
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 |
93 |
|
|
94 |
|
[ -h %{dir_mngr}/themes/default/public/js/dataTables.buttons.min.js ] || |
95 |
|
ln -s /usr/share/javascript/dataTables.buttons.min.js %{dir_mngr}/themes/default/public/js/dataTables.buttons.min.js |
96 |
|
|
97 |
|
[ -h %{dir_mngr}/themes/default/public/js/jszip.min.js ] || |
98 |
|
ln -s /usr/share/javascript/jszip/jszip.min.js %{dir_mngr}/themes/default/public/js/jszip.min.js |
99 |
|
|
100 |
|
[ -h %{dir_mngr}/themes/default/public/js/pdfmake.min.js ] || |
101 |
|
ln -s /usr/share/javascript/pdfmake/pdfmake.min.js %{dir_mngr}/themes/default/public/js/pdfmake.min.js |
102 |
|
|
103 |
|
[ -h %{dir_mngr}/themes/default/public/js/vfs_fonts.js ] || |
104 |
|
ln -s /usr/share/javascript/pdfmake/vfs_fonts.js %{dir_mngr}/themes/default/public/js/vfs_fonts.js |
105 |
|
|
106 |
|
[ -h %{dir_mngr}/themes/default/public/js/buttons.html5.min.js ] || |
107 |
|
ln -s /usr/share/javascript/buttons/buttons.html5.min.js %{dir_mngr}/themes/default/public/js/buttons.html5.min.js |
108 |
|
|
109 |
|
[ -h %{dir_mngr}/themes/default/public/js/buttons.print.min.js ] || |
110 |
|
ln -s /usr/share/javascript/buttons/buttons.print.min.js %{dir_mngr}/themes/default/public/js/buttons.print.min.js |
111 |
|
|
112 |
|
|
113 |
fi |
fi |