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
|
2023-01-18 15:52:55 +03:00
|
|
|
Version: 2023.1.0
|
2020-04-17 20:07:46 +03:00
|
|
|
Release: 1
|
2020-04-11 22:05:19 +03:00
|
|
|
Summary: Jitsi Meet desktop application
|
2021-12-01 18:09:52 +03:00
|
|
|
URL: https://github.com/jitsi/jitsi-meet-electron
|
|
|
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
2020-04-11 22:05:19 +03:00
|
|
|
Source1000: %{name}.rpmlintrc
|
2021-12-04 23:40:53 +03:00
|
|
|
Patch0: %{oname}_package.patch
|
2020-04-11 22:05:19 +03:00
|
|
|
License: ASL 2.0
|
|
|
|
Group: Networking/Instant messaging
|
2021-06-26 16:52:23 +03:00
|
|
|
ExclusiveArch: x86_64
|
2021-12-04 23:40:53 +03:00
|
|
|
BuildRequires: nodejs14
|
|
|
|
BuildRequires: yarn
|
2020-04-11 22:05:19 +03:00
|
|
|
BuildRequires: pkgconfig(zlib) >= 1.2.11
|
2021-03-05 17:27:00 +03:00
|
|
|
BuildRequires: imagemagick
|
|
|
|
BuildRequires: git-core
|
2020-04-11 22:54:38 +03:00
|
|
|
BuildRequires: pkgconfig(x11)
|
2020-04-11 23:02:45 +03:00
|
|
|
BuildRequires: pkgconfig(xtst)
|
2020-04-11 23:27:51 +03:00
|
|
|
BuildRequires: pkgconfig(libpng)
|
2021-12-04 23:40:53 +03:00
|
|
|
BuildRequires: pkgconfig(nss)
|
2020-04-11 22:05:19 +03:00
|
|
|
Prefix: %{_opt}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Desktop application for Jitsi Meet built with Electron
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2022-12-11 13:30:33 +03:00
|
|
|
%patch -p1
|
2020-04-11 22:05:19 +03:00
|
|
|
|
|
|
|
%build
|
2021-09-14 23:50:15 +03:00
|
|
|
export PATH=$PATH:/opt/nodejs14/bin
|
|
|
|
|
2021-12-04 23:40:53 +03:00
|
|
|
yarn
|
|
|
|
yarn run build
|
|
|
|
yarn run electron-builder --dir
|
2020-04-11 22:05:19 +03:00
|
|
|
|
|
|
|
%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
|
2021-03-05 17:27:00 +03:00
|
|
|
cd resources
|
2020-04-11 22:05:19 +03:00
|
|
|
|
|
|
|
for x in 16 32 24 48 64 96 128 256 512; do
|
|
|
|
|
2021-03-05 17:27:00 +03:00
|
|
|
install -d %{buildroot}%{_iconsdir}/hicolor/${x}x${x}/apps/
|
|
|
|
convert -resize ${x}x${x} icon.png %{buildroot}%{_iconsdir}/hicolor/${x}x${x}/apps/%{oname}.png
|
2020-04-11 22:05:19 +03:00
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md LICENSE
|
|
|
|
%{_bindir}/%{oname}
|
|
|
|
%{_opt}/%{oname}
|
|
|
|
%{_iconsdir}/hicolor/*/apps/%{oname}.png
|
|
|
|
%{_datadir}/applications/%{oname}.desktop
|