blob: 50864d277a8899500d31b11800b8326067d86374 (
plain)
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
|
%global jsname jquery-ui
Name: js-%{jsname}
Version: 1.13.2
Release: 1
Summary: jQuery user interface
License: MIT
URL: https://jqueryui.com/
Source0: https://github.com/jquery/%{jsname}/archive/%{version}/%{jsname}-%{version}.tar.gz
# We need to bundle build dependencies since they are no
# longer available in Fedora. This uses the same
# technique as the js-jquery package.
Source1: %{jsname}-%{version}-node-modules.tar.gz
# Script to create the above sources
Source2: create-source.sh
BuildArch: noarch
BuildRequires: nodejs >= 1:10
BuildRequires: web-assets-devel
BuildRequires: python3-rcssmin
Requires: js-jquery >= 1.8.0
Requires: web-assets-filesystem
%description
A curated set of user interface interactions, effects, widgets, and
themes built on top of the jQuery JavaScript Library.
%prep
%setup -q -n %{jsname}-%{version} -a 1
rm -rf dist
%build
./node_modules/grunt-cli/bin/grunt -v requirejs:js concat:css uglify:main
# Provide a compressed version of the cascading style sheet
python3 -m rcssmin -b < dist/jquery-ui.css > dist/jquery-ui.min.css
%install
mkdir -p %{buildroot}%{_jsdir}/%{jsname}
install -m 644 -p dist/* %{buildroot}%{_jsdir}/%{jsname}
mkdir -p %{buildroot}%{_jsdir}/%{jsname}/images
install -m 644 -p themes/base/images/* %{buildroot}%{_jsdir}/%{jsname}/images
%files
%{_jsdir}/%{jsname}
%license LICENSE.txt
%doc AUTHORS.txt CONTRIBUTING.md README.md
%changelog
* Wed May 17 2023 lichaoran <pkwarcraft@hotmail.com> - 1.13.2-1
- Init package
|