Accepting request 902767 from devel:languages:javascript

dependency of element-desktop matrix client.
please use same ADI as https://build.opensuse.org/request/show/902766

OBS-URL: https://build.opensuse.org/request/show/902767
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/element-web?expand=0&rev=1
This commit is contained in:
Dominique Leuenberger 2021-06-29 20:42:57 +00:00 committed by Git OBS Bridge
commit 23c779dcb5
7 changed files with 118 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
element-1.7.31.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2902231f8645bfe35c49e73df0c45012230561f1bf89174dcb2dcb1e4d5dd9fa
size 15371960

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f12a563a02fe9be3e3acf22d2d2587c66f345d3cefb57d86cd6727172f656dfc
size 1354034

9
element-web.changes Normal file
View File

@ -0,0 +1,9 @@
-------------------------------------------------------------------
Fri Jun 25 12:47:04 UTC 2021 - Dominik Heidler <dheidler@suse.com>
- Version 1.7.31
-------------------------------------------------------------------
Tue May 18 10:58:48 UTC 2021 - Dominik Heidler <dheidler@suse.com>
- Version 1.7.28

52
element-web.spec Normal file
View File

@ -0,0 +1,52 @@
#
# spec file for package element-web
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: element-web
Version: 1.7.31
Release: 0
Summary: A glossy Matrix collaboration client - web files
License: Apache-2.0
URL: https://github.com/vector-im/element-web
Source0: element-%{version}.tar.gz
Source1: https://github.com/vector-im/element-web/archive/v%{version}.tar.gz#/element-web-%{version}.tar.gz
Source2: prepare_tarball.sh
BuildRequires: nodejs-electron
BuildArch: noarch
%description
A glossy Matrix collaboration client - web files
%prep
%autosetup -n element-%{version}
%build
tar xzvf %{SOURCE1} --strip-components 1 element-web-%{version}/LICENSE
%install
install -d %{buildroot}/{usr/share/webapps,etc/webapps}/element
cp -r * "%{buildroot}%{_datadir}/webapps/element/"
install -Dm644 config.sample.json -t "%{buildroot}%{_sysconfdir}/webapps/element/"
%files
%license LICENSE
%{_datadir}/webapps/element
%{_sysconfdir}/webapps/element
%changelog

27
prepare_tarball.sh Normal file
View File

@ -0,0 +1,27 @@
#!/bin/bash
set -ex
oldwd="$(pwd)"
tmpdir="$(mktemp -d)"
version=$(grep "Version:" element-web.spec | awk '{print $2}')
wget -c https://github.com/vector-im/element-web/archive/v${version}.tar.gz -O element-web-${version}.tar.gz
cp element-web.spec "$tmpdir/"
cd "$tmpdir"
#zypper install yarn cargo gcc-c++ sqlcipher-devel libsecret-devel
rm -rf "element-web-${version}"
wget -c https://github.com/vector-im/element-web/archive/v${version}.tar.gz -O element-web-${version}.tar.gz
tar xzvf element-web-${version}.tar.gz
cd element-web-${version}
yarn install || :
DIST_VERSION=$version ./scripts/package.sh
cp "dist/element-${version}.tar.gz" "$oldwd/"
cd "$oldwd"
rm -rf "$tmpdir"
echo -e "\n\nDONE creating output file 'element-${version}.tar.gz'"