2024-01-05 18:22:22 +01:00
|
|
|
Name: telegram
|
2024-01-05 18:22:22 +01:00
|
|
|
Version: 3.7.3
|
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
|
2024-01-05 18:22:22 +01:00
|
|
|
Source1: telegramdesktop.desktop
|
|
|
|
Source2: tg.protocol
|
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
|
|
|
Patch3: telegram-2.7.4-fix-webview-includes.patch
|
|
|
|
Patch4: telegram-2.7.4-add_missing_include_optional.patch
|
2024-01-05 18:22:22 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libX11-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libXcomposite-devel
|
|
|
|
BuildRequires: libXdamage-devel
|
|
|
|
BuildRequires: libXext-devel
|
|
|
|
BuildRequires: libXfixes-devel
|
|
|
|
BuildRequires: libXrandr-devel
|
|
|
|
BuildRequires: libXtst-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libabseil-cpp-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libavcodec-ffmpeg-devel
|
|
|
|
BuildRequires: libavformat-ffmpeg-devel
|
|
|
|
BuildRequires: libavutil-ffmpeg-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libglib-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libglibmm24-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libhunspell-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libjemalloc-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: liblz4-devel
|
|
|
|
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: libpipewire-devel
|
|
|
|
BuildRequires: librnnoise-devel
|
|
|
|
BuildRequires: libsigc++2-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
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: libvpx-devel
|
|
|
|
BuildRequires: libwayland-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libxcb-devel
|
|
|
|
BuildRequires: libxcb-keysyms-devel
|
|
|
|
BuildRequires: libxxhash-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: libz-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: qt6-qt5compat-devel
|
|
|
|
BuildRequires: qt6-qtbase-devel
|
|
|
|
BuildRequires: qt6-qtsvg-devel
|
|
|
|
BuildRequires: qt6-qtwayland-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 18:22:22 +01:00
|
|
|
#BuildRequires: libbreakpad-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
BuildRequires: range-v3-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
#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
|
|
|
BuildRequires: qt6-qt5compat-devel
|
|
|
|
BuildRequires: librnnoise-devel
|
2024-01-05 18:22:22 +01:00
|
|
|
Requires: kconfig
|
2024-01-05 18:22:22 +01:00
|
|
|
Requires: qt6-qtimageformats
|
2024-01-05 18:22:22 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The official desktop client for the Telegram messenger.
|
|
|
|
|
2024-01-05 18:22:22 +01:00
|
|
|
%ifnarch aarch64 %{ix86}
|
2024-01-05 18:22:22 +01:00
|
|
|
%debug_package
|
2024-01-05 18:22:22 +01:00
|
|
|
%endif
|
2024-01-05 18:22:22 +01:00
|
|
|
|
|
|
|
%prep
|
2024-01-05 18:22:22 +01:00
|
|
|
%setup -q -n tdesktop-%{version}-full
|
2024-01-05 18:22:22 +01:00
|
|
|
#-D -T
|
|
|
|
#:<< _EOF
|
|
|
|
#%patch4 -p1
|
|
|
|
#cd Telegram/lib_webview
|
|
|
|
#%patch3 -p1
|
2024-01-05 18:22:22 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-05 18:22:22 +01:00
|
|
|
#:<< __EOF
|
2024-01-05 18:22:22 +01:00
|
|
|
%cmake -d build \
|
|
|
|
-G Ninja \
|
2024-01-05 18:22:22 +01:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2024-01-05 18:22:22 +01:00
|
|
|
-DTDESKTOP_API_ID=17349 \
|
|
|
|
-DTDESKTOP_API_HASH=344583e45741c457fe1862106095a5eb \
|
|
|
|
-DTDESKTOP_LAUNCHER_BASENAME="telegramdesktop" \
|
2024-01-05 18:22:22 +01:00
|
|
|
-DDESKTOP_APP_SPECIAL_TARGET="" \
|
|
|
|
%ifarch aarch64 %{ix86}
|
|
|
|
-DCMAKE_CXX_FLAGS="%{optflags} -Os -s -Wl,--gc-sections -Wl,--no-keep-memory -fPIC"
|
|
|
|
%endif
|
2024-01-05 18:22:22 +01:00
|
|
|
|
2024-01-05 18:22:22 +01:00
|
|
|
ninja -j2
|
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
|
|
|
|
2024-01-05 18:22:22 +01:00
|
|
|
# FIXME:
|
|
|
|
rm -rf %{buildroot}%{_builddir}/tdesktop*
|
|
|
|
|
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
|
2024-01-05 18:22:22 +01:00
|
|
|
%{_datadir}/metainfo/telegramdesktop.metainfo.xml
|
2024-01-05 18:22:22 +01:00
|
|
|
%{_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
|
|
|
* Sat Jun 04 2022 Automatic Build System <autodist@mambasoft.it> 3.7.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:22:22 +01:00
|
|
|
* Fri Jan 21 2022 Automatic Build System <autodist@mambasoft.it> 3.4.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:22:22 +01:00
|
|
|
* Tue Jan 04 2022 Automatic Build System <autodist@mambasoft.it> 3.4.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Jan 02 2022 Automatic Build System <autodist@mambasoft.it> 3.4.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:22:22 +01:00
|
|
|
* Sat Feb 27 2021 Automatic Build System <autodist@mambasoft.it> 2.6.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
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
|
2024-01-05 18:22:22 +01:00
|
|
|
%{_kde5_servicesdir}/tg.protocol
|