This repository has been archived by the owner on Nov 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathriot-im.spec
58 lines (49 loc) · 1.48 KB
/
riot-im.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
%global debug_package %{nil}
%global __provides_exclude_from %{buildroot}/opt/Riot/resources/app/node_modules
%global __requires_exclude_from %{buildroot}/opt/Riot/resources/app/node_modules
%global __requires_exclude (npm|libnode|libffmpeg)
Name: riot-im
Version: 0.14.2
Release: 1%{?dist}
Summary: Riot.im - open team collaboration
License: Apache 2.0
URL: https://about.riot.im/
Source0: https://github.com/vector-im/riot-web/archive/v%{version}.tar.gz#/riot-web-%{version}.tar.gz
BuildRequires: rpm
BuildRequires: cpio
BuildRequires: nodejs
BuildRequires: npm
BuildRequires: git
%description
Riot (formerly known as Vector) is a Matrix web client built using
the Matrix React SDK (https://github.com/matrix-org/matrix-react-sdk).
%prep
%autosetup -n riot-web-%{version}
npm install
npm install 7zip-bin-linux
cp config.sample.json config.json
%build
npm run build
npm run install:electron
node_modules/.bin/build -l rpm --x64
%install
rpm2cpio electron_app/dist/riot-web-%{version}.rpm | cpio -idmv -D %{buildroot}
%files
%license LICENSE
%doc CHANGELOG.md
/opt/Riot
/usr/share/applications/riot-web.desktop
/usr/share/icons/hicolor/*/apps/riot-web.png
%changelog
* Sun May 06 2018 dmytr 0.14.2-1
- New version
* Wed Apr 11 2018 dmytr 0.14.0-1
- New version
* Tue Dec 5 2017 dmytr 0.13.3-1
- New version
* Fri Nov 17 2017 dmytr 0.13.1-1
- New version
* Thu Oct 19 2017 dmytr 0.12.7-1
- New version
* Thu Sep 21 2017 dmytr 0.12.4-1
- Initial packaging