2024-01-05 18:22:22 +01:00
|
|
|
%define qt_ver 5.6.2
|
2024-01-05 18:22:22 +01:00
|
|
|
%define qt_patchver %(echo %qt_ver | tr . _)
|
|
|
|
%define qt_majver %(echo %qt_ver | cut -d. -f1-2)
|
|
|
|
|
|
|
|
Name: telegram
|
2024-01-05 18:22:22 +01:00
|
|
|
Version: 2.5.7
|
2024-01-05 18:22:22 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 18:22:22 +01:00
|
|
|
Summary: The official desktop client for the Telegram messenger
|
|
|
|
Group: Graphical Desktop/Applications/Internet
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://telegram.org/
|
2024-01-05 18:22:22 +01:00
|
|
|
Source: https://github.com/telegramdesktop/tdesktop/releases/download/v%{version}/tdesktop-%{version}-full.tar.gz
|
|
|
|
#Source: https://github.com/telegramdesktop/tdesktop.git/v%{version}/tdesktop-%{version}.tar.bz2
|
2024-01-05 18:22:22 +01:00
|
|
|
Source1: telegramdesktop.desktop
|
|
|
|
Source2: tg.protocol
|
2024-01-05 18:22:22 +01:00
|
|
|
#Source3: https://github.com/telegramdesktop/libtgvoip.git/tdesktop/libtgvoip-%{version}.tar.bz2
|
|
|
|
#Source4: https://github.com/mapbox/variant.git/master/variant-%{version}.tar.bz2
|
|
|
|
#Source5: https://github.com/philsquared/Catch.git/master/Catch-%{version}.tar.bz2
|
|
|
|
#Source6: https://github.com/Microsoft/GSL.git/master/GSL-%{version}.tar.bz2
|
|
|
|
#Source7: https://github.com/telegramdesktop/crl.git/master/crl-%{version}.tar.bz2
|
|
|
|
#Source8: https://github.com/Cyan4973/xxHash.git/master/xxHash-%{version}.tar.bz2
|
2024-01-05 18:22:22 +01:00
|
|
|
Patch0: telegram-1.5.15-tdesktop.patch
|
|
|
|
Patch1: telegram-1.5.15-no-gtk2.patch
|
|
|
|
Patch2: telegram-1.5.15-libtgvoip.patch
|
2024-01-05 18:22:22 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: ldconfig
|
|
|
|
BuildRequires: libGL-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libX11-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libatk-devel
|
|
|
|
BuildRequires: libatomic-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libavcodec-ffmpeg-devel
|
|
|
|
BuildRequires: libavformat-ffmpeg-devel
|
|
|
|
BuildRequires: libavutil-ffmpeg-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libcairo-devel
|
|
|
|
BuildRequires: libdbusmenu-qt5-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libgcc
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libgdk-pixbuf-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libglib-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libgtk-devel
|
|
|
|
BuildRequires: libharfbuzz-devel
|
|
|
|
BuildRequires: libhunspell-devel
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: liblz4-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: liblzma-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libminizip1-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libopenal-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: libopus-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libpango-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libqt5-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libswresample-ffmpeg-devel
|
|
|
|
BuildRequires: libswscale-ffmpeg-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libxcb-devel
|
|
|
|
BuildRequires: libxcb-keysyms-devel
|
|
|
|
BuildRequires: libxkbcommon-devel
|
|
|
|
BuildRequires: libxxhash-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libz-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 18:22:22 +01:00
|
|
|
#BuildRequires: libbreakpad-devel
|
|
|
|
#BuildRequires: libunity-devel
|
|
|
|
BuildRequires: range-v3-devel >= 0.11.0
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libtg_owt-devel >= 0.0.20210128
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libmicrosoft-gsl-devel
|
|
|
|
BuildRequires: tl-expected-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
Requires: kconfig
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
The official desktop client for the Telegram messenger.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
2024-01-05 18:22:22 +01:00
|
|
|
%setup -q -n tdesktop-%{version}-full
|
2024-01-05 18:22:22 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-05 18:22:22 +01:00
|
|
|
%cmake -d build \
|
|
|
|
-G Ninja \
|
|
|
|
-DTDESKTOP_API_ID=17349 \
|
|
|
|
-DTDESKTOP_API_HASH=344583e45741c457fe1862106095a5eb \
|
|
|
|
-DTDESKTOP_LAUNCHER_BASENAME="telegramdesktop" \
|
|
|
|
-DDESKTOP_APP_SPECIAL_TARGET=""
|
|
|
|
|
2024-01-05 18:22:22 +01:00
|
|
|
ninja %{_smp_mflags}
|
2024-01-05 18:22:22 +01:00
|
|
|
|
2024-01-05 18:22:22 +01:00
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 18:22:22 +01:00
|
|
|
DESTDIR=%{buildroot} ninja -C build install
|
|
|
|
|
|
|
|
install -D -m644 %{SOURCE2} %{buildroot}%{_kde5_servicesdir}/tg.protocol
|
2024-01-05 18:22:22 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 18:22:22 +01:00
|
|
|
%post
|
|
|
|
touch --no-create %{_datadir}/icons/hicolor
|
|
|
|
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
|
|
|
/usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor;
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
|
|
|
%postun
|
|
|
|
touch --no-create %{_datadir}/icons/hicolor
|
|
|
|
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
|
|
|
/usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor;
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
2024-01-05 18:22:22 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/telegram-desktop
|
2024-01-05 18:22:22 +01:00
|
|
|
%{_kde5_servicesdir}/tg.protocol
|
2024-01-05 18:22:22 +01:00
|
|
|
%{_datadir}/applications/telegramdesktop.desktop
|
|
|
|
%{_datadir}/metainfo/telegramdesktop.appdata.xml
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/telegram.png
|
|
|
|
%doc LICENSE LEGAL
|
2024-01-05 18:22:22 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 18:22:22 +01:00
|
|
|
* Thu Jan 28 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.7-1mamba
|
|
|
|
- update to 2.5.7
|
|
|
|
|
2024-01-05 18:22:22 +01:00
|
|
|
* Wed Dec 23 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.1-1mamba
|
|
|
|
- update to 2.5.1
|
|
|
|
|
2024-01-05 18:22:22 +01:00
|
|
|
* Mon Mar 18 2019 Automatic Build System <autodist@mambasoft.it> 1.5.15-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:22:22 +01:00
|
|
|
* Fri Oct 27 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.23-1mamba
|
|
|
|
- update to 1.1.23
|
|
|
|
|
2024-01-05 18:22:22 +01:00
|
|
|
* Tue Sep 13 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.10.6-1mamba
|
|
|
|
- update to 0.10.6
|
|
|
|
|
2024-01-05 18:22:22 +01:00
|
|
|
* Tue Mar 29 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.33-3mamba
|
|
|
|
- rebuilt (for latest ffmpeg deps on x86_64)
|
|
|
|
|
2024-01-05 18:22:22 +01:00
|
|
|
* Wed Mar 16 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.33-2mamba
|
|
|
|
- fix build tree organization
|
|
|
|
|
|
|
|
* Wed Mar 16 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.33-1mamba
|
|
|
|
- update to 0.9.33
|
|
|
|
|
|
|
|
* Tue Mar 15 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.32-1mamba
|
|
|
|
- package created using the webbuild interface
|