This repository has been archived by the owner on Jun 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
julius.spec
63 lines (42 loc) · 1.6 KB
/
julius.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
60
61
62
63
%global _basename julius
Name: lib%{_basename}
Version: 0.1.2
Release: 1
Summary: The user interface of nCoda.
Group: Applications/Multimedia
License: AGPLv3+
URL: https://goldman.ncodamusic.org/diffusion/JL/
Source0: %{_basename}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: web-assets-devel
BuildRequires: nodejs
Requires: web-assets-filesystem
Requires: fontawesome-fonts
Requires: mozilla-fira-mono-fonts
Requires: mozilla-fira-sans-fonts
%description
The user interface of nCoda.
%prep
%autosetup -n %{_basename}-%{version}
npm install
%build
export NODE_ENV="production"
mkdir build
node_modules/.bin/lessc css/ncoda/main.less build/main.css
node_modules/.bin/browserify js/ncoda-init.js -o build/ncoda.js
%check
npm test
%install
mkdir -p %{buildroot}%{_webassetdir}/%{_basename}
cp build/main.css %{buildroot}%{_webassetdir}/%{_basename}/main.css
cp build/ncoda.js %{buildroot}%{_webassetdir}/%{_basename}/ncoda.js
cp lib/diff_match_patch.js %{buildroot}%{_webassetdir}/%{_basename}/diff_match_patch.js
cp node_modules/codemirror/lib/codemirror.css %{buildroot}%{_webassetdir}/%{_basename}/codemirror.css
cp node_modules/codemirror/addon/merge/merge.css %{buildroot}%{_webassetdir}/%{_basename}/codemirror-merge.css
cp css/lib/vida.css %{buildroot}%{_webassetdir}/%{_basename}/vida.css
cp index-fedora.html %{buildroot}%{_webassetdir}/%{_basename}/index.html
%files
%{_webassetdir}/%{_basename}/
%changelog
* Sat Feb 4 2017 Christopher Antila <[email protected]> - 0.1.2-1
- Initial packaging.