Mageia Bugzilla – Attachment 10405 Details for
Bug 23717
Telegram - A messaging app for the desktop
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Proposal spec file
telegram-desktop.spec (text/x-rpm-spec), 3.13 KB, created by
Kristoffer Grundström
on 2018-10-17 16:03:16 CEST
(
hide
)
Description:
Proposal spec file
Filename:
MIME Type:
Creator:
Kristoffer Grundström
Created:
2018-10-17 16:03:16 CEST
Size:
3.13 KB
patch
obsolete
>Summary: Telegram Desktop official messaging app >Name: telegram-desktop >Version: 1.4.3 >Release: %mkrel 1 >License: GPLv3+ and LGPLv3 >URL: https://github.com/telegramdesktop/tdesktop >Source0: https://github.com/telegramdesktop/tdesktop/archive/v%{version}.tar.gz >Patch0: %{name}-build-fixes.patch >Patch1: %{name}-api-tokens.patch >Recommends: libappindicator-gtk3 >Requires: qt5-qtimageformats >Requires: hicolor-icon-theme >Requires: gtk3 >BuildRequires: libffmpeg-devel >BuildRequires: desktop-file-utils >BuildRequires: gcc-c++ >BuildRequires: cmake >BuildRequires: gcc >BuildRequires: gyp >BuildRequires: libstdc++-devel >BuildRequires: openssl-devel >BuildRequires: libminizip-devel >BuildRequires: libgtk+3.0-devel >BuildRequires: libappstream-glib8 >BuildRequires: guidelines-support-library-devel >BuildRequires: libappindicator-devel >BuildRequires: mapbox-variant-devel >BuildRequires: openal-soft-devel >BuildRequires: qt5-qtbase-devel >BuildRequires: libtgvoip-devel >BuildRequires: range-v3-devel >BuildRequires: opus-devel >BuildRequires: dee-devel >BuildRequires: xz-devel >BuildRequires: python2 > >%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 50,000 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 >%autosetup -n %{name}-%{version} -p1 > >pushd Telegram/ThirdParty > rm -rf crl > tar -xf %{SOURCE1} > mv crl-%{commit1} crl >popd > >%build >pushd Telegram/gyp > gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp --format=cmake >popd > >LEN=$(($(wc -l < out/Release/CMakeLists.txt) - 2)) >sed -i "$LEN r Telegram/gyp/CMakeLists.inj" out/Release/CMakeLists.txt > >pushd out/Release > %cmake . > %make_build >popd > >%install >mkdir -p "%{buildroot}%{_bindir}" >install -m 0755 -p out/Release/Telegram "%{buildroot}%{_bindir}/%{name}" >mv lib/xdg/telegramdesktop.desktop lib/xdg/%{name}.desktop >desktop-file-install --dir="%{buildroot}%{_datadir}/applications" lib/xdg/%{name}.desktop >for size in 16 32 48 64 128 256 512; do > dir="%{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps" > install -d "$dir" > install -m 0644 -p Telegram/Resources/art/icon${size}.png "$dir/%{name}.png" >done >install -d "%{buildroot}%{_datadir}/kde4/services" >install -m 0644 -p lib/xdg/tg.protocol "%{buildroot}%{_datadir}/kde4/services/tg.protocol" >install -d "%{buildroot}%{_datadir}/metainfo" >install -m 0644 -p lib/xdg/telegramdesktop.appdata.xml "%{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml" > >%files >%doc README.md changelog.txt >%license LICENSE LEGAL >%{_bindir}/%{name} >%{_datadir}/applications/%{name}.desktop >%{_datadir}/kde4/services/tg.protocol >%{_datadir}/icons/hicolor/*/apps/%{name}.png >%{_datadir}/metainfo/%{name}.appdata.xml
Summary: Telegram Desktop official messaging app Name: telegram-desktop Version: 1.4.3 Release: %mkrel 1 License: GPLv3+ and LGPLv3 URL: https://github.com/telegramdesktop/tdesktop Source0: https://github.com/telegramdesktop/tdesktop/archive/v%{version}.tar.gz Patch0: %{name}-build-fixes.patch Patch1: %{name}-api-tokens.patch Recommends: libappindicator-gtk3 Requires: qt5-qtimageformats Requires: hicolor-icon-theme Requires: gtk3 BuildRequires: libffmpeg-devel BuildRequires: desktop-file-utils BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: gcc BuildRequires: gyp BuildRequires: libstdc++-devel BuildRequires: openssl-devel BuildRequires: libminizip-devel BuildRequires: libgtk+3.0-devel BuildRequires: libappstream-glib8 BuildRequires: guidelines-support-library-devel BuildRequires: libappindicator-devel BuildRequires: mapbox-variant-devel BuildRequires: openal-soft-devel BuildRequires: qt5-qtbase-devel BuildRequires: libtgvoip-devel BuildRequires: range-v3-devel BuildRequires: opus-devel BuildRequires: dee-devel BuildRequires: xz-devel BuildRequires: python2 %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 50,000 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 %autosetup -n %{name}-%{version} -p1 pushd Telegram/ThirdParty rm -rf crl tar -xf %{SOURCE1} mv crl-%{commit1} crl popd %build pushd Telegram/gyp gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp --format=cmake popd LEN=$(($(wc -l < out/Release/CMakeLists.txt) - 2)) sed -i "$LEN r Telegram/gyp/CMakeLists.inj" out/Release/CMakeLists.txt pushd out/Release %cmake . %make_build popd %install mkdir -p "%{buildroot}%{_bindir}" install -m 0755 -p out/Release/Telegram "%{buildroot}%{_bindir}/%{name}" mv lib/xdg/telegramdesktop.desktop lib/xdg/%{name}.desktop desktop-file-install --dir="%{buildroot}%{_datadir}/applications" lib/xdg/%{name}.desktop for size in 16 32 48 64 128 256 512; do dir="%{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps" install -d "$dir" install -m 0644 -p Telegram/Resources/art/icon${size}.png "$dir/%{name}.png" done install -d "%{buildroot}%{_datadir}/kde4/services" install -m 0644 -p lib/xdg/tg.protocol "%{buildroot}%{_datadir}/kde4/services/tg.protocol" install -d "%{buildroot}%{_datadir}/metainfo" install -m 0644 -p lib/xdg/telegramdesktop.appdata.xml "%{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml" %files %doc README.md changelog.txt %license LICENSE LEGAL %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/kde4/services/tg.protocol %{_datadir}/icons/hicolor/*/apps/%{name}.png %{_datadir}/metainfo/%{name}.appdata.xml
View Attachment As Raw
Actions:
View
Attachments on
bug 23717
: 10405