/[smecontribs]/rpms/smeserver-manager-jsquery/contribs10/smeserver-manager-jsquery.spec
ViewVC logotype

Annotation of /rpms/smeserver-manager-jsquery/contribs10/smeserver-manager-jsquery.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download)
Wed Feb 7 10:25:49 2024 UTC (9 months, 3 weeks ago) by brianr
Branch: MAIN
CVS Tags: smeserver-manager-jsquery-1_0-3_el7_sme
Changes since 1.2: +25 -2 lines
* Wed Feb 07 2024 Brian Read <brianr@koozali.org> 1.0-3.sme
- Add export buttons to table using dataTables plugin [SME: 12466]

1 brianr 1.1 %define name smeserver-manager-jsquery
2     %define version 1.0
3 brianr 1.3 %define release 3
4 brianr 1.1 Summary: Jsquery and associated plugins plus server-manager (2) specific overrides.
5     Name: %{name}
6     Version: %{version}
7     Release: %{release}%{?dist}
8     Source: %{name}-%{version}.tar.gz
9     License: GNU GPL version 2
10     Group: SMEserver/addon
11 brianr 1.2 Patch0: smeserver-manager-jsquery-1.0-Fix-css-override-for-dataTables.patch
12 brianr 1.3 Patch1: smeserver-manager-jsquery-1.0-Add-Export-Buttons-to-dataTable.patch
13 brianr 1.2
14 brianr 1.1 BuildRoot: %{_tmppath}/%{name}-buildroot
15     Prefix: %{_prefix}
16     BuildArchitectures: noarch
17     BuildRequires: e-smith-devtools
18     Requires: e-smith-release >= 10.0
19     AutoReqProv: no
20    
21     %define dir_mngr /usr/share/smanager
22    
23     %description
24     Jsquery and associated plugins plus server-manager (2) specific overrides.
25    
26     %changelog
27 brianr 1.3 * 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 brianr 1.2 * Sun Feb 04 2024 Brian Read <brianr@koozali.org> 1.0-2.sme
31     - Fix-css-override-for-dataTables [SME: 12465]
32    
33 brianr 1.1 * Mon Jan 29 2024 <brianr@koozali.org> 1.0-1.sme
34     - Initial code - create RPM [SME:12459]
35    
36     %prep
37    
38     %setup
39 brianr 1.2 %patch0 -p1
40 brianr 1.3 %patch1 -p1
41 brianr 1.1
42     %build
43     perl createlinks
44    
45     %install
46     rm -rf RPM_BUILD_ROOT
47     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
48     rm -f %{name}-%{version}-filelist
49     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
50     > %{name}-%{version}-filelist
51     #echo "%doc COPYING" >> %{name}-%{version}-filelist
52     #--dir <dir> 'attr(755,user,grp)' \
53     #--file <file> 'attr(755,root,root)' \
54    
55     %clean
56     cd ..
57     rm -rf %{name}-%{version}
58    
59     %pre
60    
61     %preun
62    
63     %post
64     if [ -f /usr/share/javascript/jquery/latest/jquery.min.js ]
65     then
66     [ -d %{dir_mngr}/themes/default/public/js ] ||
67     mkdir -p %{dir_mngr}/themes/default/public/js
68    
69 brianr 1.3 [ -h %{dir_mngr}/themes/default/public/js/images ] ||
70 brianr 1.1 ln -s /usr/share/javascript/jquery-ui/images %{dir_mngr}/themes/default/public/js/images
71    
72    
73     [ -h %{dir_mngr}/themes/default/public/js/jquery.min.js ] ||
74     ln -s /usr/share/javascript/jquery/latest/jquery.min.js %{dir_mngr}/themes/default/public/js/jquery.min.js
75     [ -h %{dir_mngr}/themes/default/public/js/jquery.min.map ] ||
76     ln -s /usr/share/javascript/jquery/latest/jquery.min.map %{dir_mngr}/themes/default/public/js/jquery.min.map
77    
78     [ -h %{dir_mngr}/themes/default/public/js/datatables.min.js ] ||
79     ln -s /usr/share/javascript/datatables.min.js %{dir_mngr}/themes/default/public/js/datatables.min.js
80     [ -h %{dir_mngr}/themes/default/public/js/datatables.min.css ] ||
81     ln -s /usr/share/javascript/datatables.min.css %{dir_mngr}/themes/default/public/js/datatables.min.css
82    
83     [ -h %{dir_mngr}/themes/default/public/js/jquery-ui.min.js ] ||
84     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 ] ||
86     ln -s /usr/share/javascript/jquery-ui/jquery-ui.min.css %{dir_mngr}/themes/default/public/js/jquery-ui.min.css
87 brianr 1.3
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 brianr 1.1
106    
107     fi
108     true
109    
110    
111     %postun
112     #uninstall
113     %files -f %{name}-%{version}-filelist
114     %defattr(-,root,root)

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed