64gram-bin/64gram-bin.spec

69 lines
1.4 KiB
RPMSpec
Raw Permalink Normal View History

2023-09-15 18:13:38 +03:00
%define debug %nil
%define debug_package %nil
%define oname 64Gram
%define _optdir /opt
Name: 64gram-bin
2023-10-01 16:19:52 +00:00
Version: 1.0.98
2023-09-15 18:13:38 +03:00
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
2023-09-15 23:31:31 +00:00
Source1000: %{name}.rpmlintrc
2023-09-15 18:13:38 +03:00
License: GPLv3
Group: Networking/Instant messaging
2023-09-15 23:40:55 +00:00
ExclusiveArch: x86_64
2023-09-15 18:13:38 +03:00
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