mirror of
https://abf.rosa.ru/djam/64gram-bin.git
synced 2025-02-23 16:12:55 +00:00
68 lines
1.4 KiB
RPMSpec
68 lines
1.4 KiB
RPMSpec
%define debug %nil
|
||
%define debug_package %nil
|
||
%define oname 64Gram
|
||
%define _optdir /opt
|
||
|
||
Name: 64gram-bin
|
||
Version: 1.0.98
|
||
Release: 1
|
||
Summary: 64Gram (unofficial Telegram Desktop)
|
||
URL: https://t.me/tg_x64
|
||
Source0: https://github.com/TDesktop-x64/tdesktop/releases/download/v%{version}/64Gram_%{version}_linux.zip
|
||
Source1000: %{name}.rpmlintrc
|
||
License: GPLv3
|
||
Group: Networking/Instant messaging
|
||
ExclusiveArch: x86_64
|
||
BuildRequires: unzip
|
||
|
||
%description
|
||
64Gram – Based on Telegram Desktop
|
||
|
||
%prep
|
||
%setup -qc %{oname}-%{version}
|
||
|
||
%build
|
||
#none
|
||
|
||
%install
|
||
install -Dm0755 Telegram %{buildroot}%{_optdir}/%{oname}/Telegram
|
||
|
||
pushd %{buildroot}%{_optdir}/%{oname}
|
||
ln -sf Telegram %{name}
|
||
ln -sf Telegram %{oname}
|
||
popd
|
||
|
||
# menu-entry
|
||
install -d %{buildroot}%{_datadir}/applications
|
||
cat >> %{buildroot}%{_datadir}/applications/%{oname}.desktop << EOF
|
||
[Desktop Entry]
|
||
Name=64Gram Desktop
|
||
Comment=Unofficial desktop version of Telegram messaging app
|
||
TryExec=64gram
|
||
Exec=%{_optdir}/%{oname}/%{oname} -- %u
|
||
Icon=telegram
|
||
Terminal=false
|
||
StartupWMClass=64Gram
|
||
Type=Application
|
||
Categories=Chat;Network;InstantMessaging;Qt;
|
||
MimeType=x-scheme-handler/tg;
|
||
Keywords=tg;chat;im;messaging;messenger;sms;tdesktop;
|
||
Actions=quit;
|
||
DBusActivatable=false
|
||
X-SingleMainWindow=true
|
||
X-GNOME-UsesNotifications=true
|
||
X-GNOME-SingleWindow=true
|
||
|
||
[Desktop Action quit]
|
||
Exec=telegram-desktop -quit
|
||
Name=Quit Telegram
|
||
Icon=application-exit
|
||
EOF
|
||
|
||
|
||
|
||
%files
|
||
%{_optdir}/%{oname}/*
|
||
%{_datadir}/applications/%{oname}.desktop
|
||
|
||
|