-
Notifications
You must be signed in to change notification settings - Fork 7
/
lxd-ui.spec
60 lines (45 loc) · 1.68 KB
/
lxd-ui.spec
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
53
54
55
56
57
58
59
Name: lxd-ui
Version: 0.8.3
Release: 0.1%{?dist}
Summary: A browser interface for LXD
License: GPLv3
URL: https://github.com/canonical/lxd-ui
# Source0 contains the tagged upstream sources
Source0: https://github.com/canonical/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
# Source1 contains the bundled Node.js dependencies
# Note: In case there were no changes to this tarball, the NVR of this tarball
# lags behind the NVR of this package.
Source1: lxd-ui-vendor-%{version}-1.tar.xz
BuildArch: noarch
Requires: lxd
BuildRequires: nodejs
BuildRequires: nodejs-npm
BuildRequires: yarnpkg
%description
LXD-UI is a browser frontend for LXD. It enables easy and accessible container
and virtual machine management. Targets small and large scale private clouds.
%prep
%setup -q -T -D -b 0
%setup -q -T -D -b 1
yarn --offline config set cache-folder $(pwd)/.cache/yarn/
yarn --offline install --frozen-lockfile
%build
yarn --offline run build
%install
install -d %{buildroot}%{_datadir}/%{name}
cp -a build/ui %{buildroot}%{_datadir}/%{name}
%files
%license LICENSE
%doc README.md ARCHITECTURE.MD
%{_datadir}/%{name}
%changelog
* Sun Nov 03 2024 Reto Gantenbein <[email protected]> 0.8.3-0.1
- Update to 0.8.3.
* Sat Dec 02 2023 Reto Gantenbein <[email protected]> 0.5-0.1
- Update to 0.5.
* Thu Nov 16 2023 Reto Gantenbein <[email protected]> 0.3-0.3
- Use vendored cache instead of node_modules to fix non-x86 builds
* Sun Nov 12 2023 Reto Gantenbein <[email protected]> 0.3-0.2
- Fix typo in doc file reference
* Sun Nov 12 2023 Reto Gantenbein <[email protected]> 0.3-0.1
- Initial package