You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
3.1 KiB

Name: telegram-desktop
Version: 4.2.4
Release: alt1
Summary: Telegram Desktop messaging app
License: GPLv3 with OpenSSL exception
Group: Networking/Instant messaging
Url: https://telegram.org/
# Source-url: https://github.com/telegramdesktop/tdesktop/releases/download/v%version/tsetup.%version.tar.xz
Source: %name-%version.tar
BuildRequires: rsync
# needs for smiles and emojicons
Requires: qt5-imageformats
# run around https://bugzilla.altlinux.org/show_bug.cgi?id=34665
Requires: libqt5-core
Provides: tdesktop = %version-%release
Obsoletes: tdesktop
Requires: dbus
%set_verify_elf_method skip
%description
Telegram is a messaging app with a focus on speed and security, it's super-fast, simple and free.
You can use Telegram on all your devices at the same time - your messages
sync seamlessly across any number of your phones, tablets or computers.
With Telegram, you can send messages, photos, videos and files of any type (doc, zip, mp3, etc),
as well as create groups for up to 1000 people or channels for broadcasting to unlimited audiences.
You can write to your phone contacts and find people by their usernames.
As a result, Telegram is like SMS and email combined - and can take care of all your personal
or business messaging needs.
%prep
%setup
%build
%install
mv Telegram %name
mkdir -p %buildroot%_bindir
cp %name %buildroot%_bindir/
ln -s %name %buildroot%_bindir/Telegram
ln -s %name %buildroot%_bindir/telegram
ln -s %name %buildroot%_bindir/telegramdesktop
mkdir -p %buildroot%_desktopdir
cp telegramdesktop.desktop %buildroot%_desktopdir/
mkdir -p %buildroot%_datadir/metainfo
cp telegramdesktop.appdata.xml %buildroot%_datadir/metainfo/
mkdir -p %buildroot%_iconsdir/hicolor/16x16/apps %buildroot%_iconsdir/hicolor/32x32/apps %buildroot%_iconsdir/hicolor/48x48/apps %buildroot%_iconsdir/hicolor/64x64/apps
mkdir -p %buildroot%_iconsdir/hicolor/128x128/apps %buildroot%_iconsdir/hicolor/256x256/apps %buildroot%_iconsdir/hicolor/512x512/apps
cp hicolor/telegram16.png %buildroot%_iconsdir/hicolor/16x16/apps/telegram.png
cp hicolor/telegram32.png %buildroot%_iconsdir/hicolor/32x32/apps/telegram.png
cp hicolor/telegram48.png %buildroot%_iconsdir/hicolor/48x48/apps/telegram.png
cp hicolor/telegram64.png %buildroot%_iconsdir/hicolor/64x64/apps/telegram.png
cp hicolor/telegram128.png %buildroot%_iconsdir/hicolor/128x128/apps/telegram.png
cp hicolor/telegram256.png %buildroot%_iconsdir/hicolor/256x256/apps/telegram.png
cp hicolor/telegram512.png %buildroot%_iconsdir/hicolor/512x512/apps/telegram.png
%files
%_bindir/%name
%_bindir/telegramdesktop
%_bindir/Telegram
%_bindir/telegram
%_desktopdir/telegramdesktop.desktop
%_datadir/metainfo/telegramdesktop.appdata.xml
%_iconsdir/hicolor/16x16/apps/telegram.png
%_iconsdir/hicolor/32x32/apps/telegram.png
%_iconsdir/hicolor/48x48/apps/telegram.png
%_iconsdir/hicolor/64x64/apps/telegram.png
%_iconsdir/hicolor/128x128/apps/telegram.png
%_iconsdir/hicolor/256x256/apps/telegram.png
%_iconsdir/hicolor/512x512/apps/telegram.png
%changelog
* Wed Dec 26 2022 Sergey-V Markov <sergey@markow.su> 4.2.4-alt1
- new version 4.2.4 (from pre build files)