mirror of
https://abf.rosa.ru/djam/jitsi-meet-electron.git
synced 2025-02-23 14:22:57 +00:00
91 lines
2.1 KiB
RPMSpec
91 lines
2.1 KiB
RPMSpec
%define _opt /opt
|
|
%define oname jitsi-meet
|
|
%define debug %nil
|
|
%define debug_package %nil
|
|
|
|
Name: %{oname}-electron
|
|
Version: 2022.4.1
|
|
Release: 1
|
|
Summary: Jitsi Meet desktop application
|
|
URL: https://github.com/jitsi/jitsi-meet-electron
|
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
Source1000: %{name}.rpmlintrc
|
|
Patch0: %{oname}_package.patch
|
|
License: ASL 2.0
|
|
Group: Networking/Instant messaging
|
|
ExclusiveArch: x86_64
|
|
BuildRequires: nodejs14
|
|
BuildRequires: yarn
|
|
BuildRequires: pkgconfig(zlib) >= 1.2.11
|
|
BuildRequires: imagemagick
|
|
BuildRequires: git-core
|
|
BuildRequires: pkgconfig(x11)
|
|
BuildRequires: pkgconfig(xtst)
|
|
BuildRequires: pkgconfig(libpng)
|
|
BuildRequires: pkgconfig(nss)
|
|
Prefix: %{_opt}
|
|
|
|
%description
|
|
Desktop application for Jitsi Meet built with Electron
|
|
|
|
%prep
|
|
%setup -q
|
|
#patch -p0
|
|
|
|
%build
|
|
export PATH=$PATH:/opt/nodejs14/bin
|
|
|
|
yarn
|
|
yarn run build
|
|
yarn run electron-builder --dir
|
|
|
|
%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}/%{oname}
|
|
|
|
./%{oname}
|
|
|
|
EOF
|
|
|
|
chmod +x %{buildroot}%{_bindir}/%{oname}
|
|
|
|
# install icons
|
|
cd resources
|
|
|
|
for x in 16 32 24 48 64 96 128 256 512; do
|
|
|
|
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
|
|
|
|
done
|
|
|
|
|
|
%files
|
|
%doc README.md LICENSE
|
|
%{_bindir}/%{oname}
|
|
%{_opt}/%{oname}
|
|
%{_iconsdir}/hicolor/*/apps/%{oname}.png
|
|
%{_datadir}/applications/%{oname}.desktop
|