2024-01-29 16:37:24 +01:00
|
|
|
%define name smeserver-manager-jsquery
|
2024-03-23 13:11:54 +01:00
|
|
|
%define version 11.0.0
|
2024-04-29 12:10:21 +02:00
|
|
|
%define release 4
|
2024-01-29 16:37:24 +01:00
|
|
|
Summary: Jsquery and associated plugins plus server-manager (2) specific overrides.
|
|
|
|
Name: %{name}
|
|
|
|
Version: %{version}
|
|
|
|
Release: %{release}%{?dist}
|
|
|
|
Source: %{name}-%{version}.tar.gz
|
|
|
|
License: GNU GPL version 2
|
|
|
|
Group: SMEserver/addon
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-buildroot
|
|
|
|
Prefix: %{_prefix}
|
|
|
|
BuildArchitectures: noarch
|
2024-03-23 17:25:53 +01:00
|
|
|
BuildRequires: smeserver-devtools
|
|
|
|
Requires: smeserver-release >= 10.0
|
2024-04-29 12:10:21 +02:00
|
|
|
Requires: smeserver-manager >= 11.0
|
2024-01-29 16:37:24 +01:00
|
|
|
AutoReqProv: no
|
|
|
|
|
2024-01-30 13:36:01 +01:00
|
|
|
%define dir_mngr /usr/share/smanager
|
|
|
|
|
2024-01-29 16:37:24 +01:00
|
|
|
%description
|
|
|
|
Jsquery and associated plugins plus server-manager (2) specific overrides.
|
|
|
|
|
|
|
|
%changelog
|
2024-04-29 12:10:21 +02:00
|
|
|
* Fri Apr 26 2024 Brian Read <brianr@koozali.org> 11.0.0-4.sme
|
|
|
|
- Move link creation to createlinks, add REquires smeserver-manager [SME: 12539]
|
|
|
|
|
2024-04-04 12:22:42 +02:00
|
|
|
* Thu Apr 04 2024 Brian Read <brianr@koozali.org> 11.0.0-3.sme
|
|
|
|
- Set license file to GPL2.0 [SME: 12577]
|
|
|
|
|
2024-03-23 17:25:53 +01:00
|
|
|
* Sat Mar 23 2024 Brian Read <brianr@koozali.org>11.0.0-2.sme
|
|
|
|
- Change Requires: e-smith- to Requires:smeserver-
|
|
|
|
|
2024-03-23 13:11:54 +01:00
|
|
|
* Sat Mar 23 2024 Brian Read <brianr@koozali.org>11.0.0-1.sme
|
|
|
|
- Update Release and Version to base version and 1st release for SME11 [SME: 12518]
|
|
|
|
|
2024-01-29 16:49:27 +01:00
|
|
|
* Mon Jan 29 2024 <brianr@koozali.org> 1.0-1.sme
|
2024-01-29 20:41:19 +01:00
|
|
|
- Initial code - create RPM [SME:12459]
|
2024-01-29 16:37:24 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%setup
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl createlinks
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf RPM_BUILD_ROOT
|
|
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
|
|
|
|
rm -f %{name}-%{version}-filelist
|
|
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
|
|
|
|
> %{name}-%{version}-filelist
|
|
|
|
#echo "%doc COPYING" >> %{name}-%{version}-filelist
|
|
|
|
#--dir <dir> 'attr(755,user,grp)' \
|
|
|
|
#--file <file> 'attr(755,root,root)' \
|
|
|
|
|
|
|
|
%clean
|
|
|
|
cd ..
|
|
|
|
rm -rf %{name}-%{version}
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
|
|
%post
|
2024-04-29 12:10:21 +02:00
|
|
|
#if [ -f /usr/share/javascript/jquery/latest/jquery.min.js ]
|
|
|
|
#then
|
|
|
|
# [ -d %{dir_mngr}/themes/default/public/js ] ||
|
|
|
|
# mkdir %{dir_mngr}/themes/default/public/js
|
|
|
|
# [ -h %{dir_mngr}/themes/default/public/js/jquery.min.js ] ||
|
|
|
|
# ln -s /usr/share/javascript/jquery/latest/jquery.min.js %{dir_mngr}/themes/default/public/js/jquery.min.js
|
|
|
|
# [ -h %{dir_mngr}/themes/default/public/js/jquery.min.map ] ||
|
|
|
|
# ln -s /usr/share/javascript/jquery/latest/jquery.min.map %{dir_mngr}/themes/default/public/js/jquery.min.map
|
|
|
|
#
|
|
|
|
# [ -h %{dir_mngr}/themes/default/public/js/datatables.min.js ] ||
|
|
|
|
# ln -s /usr/share/javascript/datatables.min.js %{dir_mngr}/themes/default/public/js/datatables.min.js
|
|
|
|
# [ -h %{dir_mngr}/themes/default/public/js/datatables.min.css ] ||
|
|
|
|
# ln -s /usr/share/javascript/datatables.min.css %{dir_mngr}/themes/default/public/js/datatables.min.css
|
|
|
|
#
|
|
|
|
# [ -h %{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
|
|
|
|
# [ -h %{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
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#fi
|
|
|
|
#true
|
2024-01-29 20:41:19 +01:00
|
|
|
|
2024-01-29 16:37:24 +01:00
|
|
|
|
|
|
|
%postun
|
|
|
|
#uninstall
|
|
|
|
%files -f %{name}-%{version}-filelist
|
|
|
|
%defattr(-,root,root)
|