From 23c779dcb503400cfb6fc08ed8afab69867d2fe88c5ffc00c33c149622ea8291 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 29 Jun 2021 20:42:57 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 +++++++++++++++++ .gitignore | 1 + element-1.7.31.tar.gz | 3 +++ element-web-1.7.31.tar.gz | 3 +++ element-web.changes | 9 +++++++ element-web.spec | 52 +++++++++++++++++++++++++++++++++++++++ prepare_tarball.sh | 27 ++++++++++++++++++++ 7 files changed, 118 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 element-1.7.31.tar.gz create mode 100644 element-web-1.7.31.tar.gz create mode 100644 element-web.changes create mode 100644 element-web.spec create mode 100644 prepare_tarball.sh diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/element-1.7.31.tar.gz b/element-1.7.31.tar.gz new file mode 100644 index 0000000..ef87495 --- /dev/null +++ b/element-1.7.31.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2902231f8645bfe35c49e73df0c45012230561f1bf89174dcb2dcb1e4d5dd9fa +size 15371960 diff --git a/element-web-1.7.31.tar.gz b/element-web-1.7.31.tar.gz new file mode 100644 index 0000000..e818fa2 --- /dev/null +++ b/element-web-1.7.31.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f12a563a02fe9be3e3acf22d2d2587c66f345d3cefb57d86cd6727172f656dfc +size 1354034 diff --git a/element-web.changes b/element-web.changes new file mode 100644 index 0000000..93c0d50 --- /dev/null +++ b/element-web.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Fri Jun 25 12:47:04 UTC 2021 - Dominik Heidler + +- Version 1.7.31 + +------------------------------------------------------------------- +Tue May 18 10:58:48 UTC 2021 - Dominik Heidler + +- Version 1.7.28 diff --git a/element-web.spec b/element-web.spec new file mode 100644 index 0000000..3aedc34 --- /dev/null +++ b/element-web.spec @@ -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 + diff --git a/prepare_tarball.sh b/prepare_tarball.sh new file mode 100644 index 0000000..2c7af36 --- /dev/null +++ b/prepare_tarball.sh @@ -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'"