mirror of
https://abf.rosa.ru/djam/jitsi-meet-electron.git
synced 2025-02-23 06:13:06 +00:00
Imported from SRPM
This commit is contained in:
commit
d3ba0599d8
3 changed files with 81 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
sources:
|
||||||
|
jitsi-meet-electron-2.0.0.tar.gz: fee1ef7f9053babfc5834dec31daa1620ea523af
|
1
jitsi-meet-electron.rpmlintrc
Normal file
1
jitsi-meet-electron.rpmlintrc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
addFilter("E: dir-or-file-in-opt")
|
78
jitsi-meet-electron.spec
Normal file
78
jitsi-meet-electron.spec
Normal file
|
@ -0,0 +1,78 @@
|
||||||
|
%define _opt /opt
|
||||||
|
%define oname jitsi-meet
|
||||||
|
%define debug %nil
|
||||||
|
%define debug_package %nil
|
||||||
|
|
||||||
|
Name: %{oname}-electron
|
||||||
|
Version: 2.0.0
|
||||||
|
Release: 1
|
||||||
|
Summary: Jitsi Meet desktop application
|
||||||
|
URL: https://github.com/jitsi/jitsi-meet-electron/
|
||||||
|
Source0: https://github.com/jitsi/jitsi-meet-electron/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
Source1000: %{name}.rpmlintrc
|
||||||
|
License: ASL 2.0
|
||||||
|
Group: Networking/Instant messaging
|
||||||
|
BuildRequires: pkgconfig(zlib) >= 1.2.11
|
||||||
|
BuildRequires: npm
|
||||||
|
Prefix: %{_opt}
|
||||||
|
|
||||||
|
%description
|
||||||
|
Desktop application for Jitsi Meet built with Electron
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
|
npm install
|
||||||
|
npm run dist
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -d %{buildroot}%{_opt}/%{oname} %{buildroot}%{_datadir}/applications %{buildroot}%{_bindir}
|
||||||
|
cp -a dist/linux-unpacked/* %{buildroot}%{_opt}/%{oname}/
|
||||||
|
|
||||||
|
# menu-entry
|
||||||
|
cat > %{buildroot}%{_datadir}/applications/%{oname}.desktop <<EOF
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Jitsi Meet
|
||||||
|
Name[ru]=Jitsi Meet
|
||||||
|
GenericName=Jitsi Meet
|
||||||
|
GenericName[ru]=Jitsi Meet
|
||||||
|
Comment=Communication platform
|
||||||
|
Comment[ru]=Jitsi Meet - коммуникационная платформа
|
||||||
|
Exec=%{oname}
|
||||||
|
Icon=%{oname}
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
StartupNotify=true
|
||||||
|
MimeType=x-scheme-handler/meet;x-scheme-handler/jitsi
|
||||||
|
Categories=Network;InstantMessaging;Chat;VideoConference;
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# script start program
|
||||||
|
cat > %{buildroot}%{_bindir}/%{oname} << EOF
|
||||||
|
|
||||||
|
#!/bin/bash
|
||||||
|
cd %{_opt}/%{name}
|
||||||
|
|
||||||
|
./%{oname}
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
|
chmod +x %{buildroot}%{_bindir}/%{oname}
|
||||||
|
|
||||||
|
# install icons
|
||||||
|
cd resources/icons
|
||||||
|
|
||||||
|
for x in 16 32 24 48 64 96 128 256 512; do
|
||||||
|
|
||||||
|
install -Dm0644 icon_${x}x${x}.png %{buildroot}%{_iconsdir}/hicolor/${x}x${x}/apps/%{oname}.png
|
||||||
|
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md LICENSE
|
||||||
|
%{_bindir}/%{oname}
|
||||||
|
%{_opt}/%{oname}
|
||||||
|
%{_iconsdir}/hicolor/*/apps/%{oname}.png
|
||||||
|
%{_datadir}/applications/%{oname}.desktop
|
Loading…
Add table
Reference in a new issue