2020-04-11 22:05:19 +03:00
|
|
|
%define _opt /opt
|
|
|
|
%define oname jitsi-meet
|
|
|
|
%define debug %nil
|
|
|
|
%define debug_package %nil
|
|
|
|
|
|
|
|
Name: %{oname}-electron
|
|
|
|
Version: 2.0.0
|
2020-04-11 22:41:54 +03:00
|
|
|
Release: 2
|
2020-04-11 22:05:19 +03:00
|
|
|
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
|
2020-04-11 22:41:54 +03:00
|
|
|
BuildRequires: git
|
2020-04-11 22:05:19 +03:00
|
|
|
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
|
2020-04-11 22:41:54 +03:00
|
|
|
cd %{_opt}/%{oname}
|
2020-04-11 22:05:19 +03:00
|
|
|
|
|
|
|
./%{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
|