forked from pool/telegram-desktop
Upgrade to 0.9.51
OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=2
This commit is contained in:
parent
2c1dffbf5f
commit
427fefa8f1
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:17a393b57bbb0dad04143a05cad310f6254e88ab70e402781863c1af91aa2846
|
|
||||||
size 11412620
|
|
3
tdesktop-0.9.51.tar.gz
Normal file
3
tdesktop-0.9.51.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:246c321c009f7eeb3b616503b19c270688a790bf691feac838b3d91bfd51c55b
|
||||||
|
size 11482866
|
5
telegram-desktop.changes
Normal file
5
telegram-desktop.changes
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 16 17:40:37 UTC 2016 - i@xuzhao.net
|
||||||
|
|
||||||
|
- 0.9.48 Initial Commit.
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
Name: telegram-desktop
|
Name: telegram-desktop
|
||||||
Summary: A new era of messaging
|
Summary: A new era of messaging
|
||||||
Version: 0.9.48
|
Version: 0.9.51
|
||||||
Release: 1
|
Release: 1
|
||||||
License: GPL-3.0
|
License: GPL-3.0
|
||||||
URL: https://github.com/telegramdesktop/tdesktop
|
URL: https://github.com/telegramdesktop/tdesktop
|
||||||
@ -58,14 +58,16 @@ Requires: jasper
|
|||||||
Telegram Desktop app. A new era of messaging.
|
Telegram Desktop app. A new era of messaging.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n tdesktop-%{version} &>/dev/null
|
%setup -n tdesktop-%{version}
|
||||||
cp %{_sourcedir}/unity.h ./Telegram/SourceFiles/
|
cp %{_sourcedir}/unity.h ./Telegram/SourceFiles/
|
||||||
sed -i 's/CUSTOM_API_ID//g' "./Telegram/Telegram.pro"
|
sed -i 's/CUSTOM_API_ID//g' "./Telegram/Telegram.pro"
|
||||||
sed -i 's,LIBS += /usr/local/lib/libxkbcommon.a,,g' "./Telegram/Telegram.pro"
|
sed -i 's,LIBS += /usr/local/lib/libxkbcommon.a,,g' "./Telegram/Telegram.pro"
|
||||||
sed -i 's,LIBS += /usr/local/lib/libz.a,LIBS += -lz,g' "./Telegram/Telegram.pro"
|
sed -i 's,LIBS += /usr/local/lib/libz.a,LIBS += -lz,g' "./Telegram/Telegram.pro"
|
||||||
sed -i 's,<unity/unity/unity\.h>,"unity.h",g' "./Telegram/SourceFiles/pspecific_linux.cpp"
|
sed -i 's,<unity/unity/unity\.h>,"unity.h",g' "./Telegram/SourceFiles/pspecific_linux.cpp"
|
||||||
sed -i "s,/usr/local/tdesktop/Qt-5.6.0,%{_builddir}/Libraries/QtStatic,g" "./Telegram/Telegram.pro"
|
sed -i 's/c++11/c++14/g' "./Telegram/Telegram.pro"
|
||||||
sed -i "s,5\.6\.0,5.5.1,g" "./Telegram/Telegram.pro"
|
# sed -i "s,/usr/local/tdesktop/Qt-5.6.0,%{_builddir}/Libraries/QtStatic,g" "./Telegram/Telegram.pro"
|
||||||
|
# sed -i "s,5\.6\.0,5.6.0,g" "./Telegram/Telegram.pro"
|
||||||
|
|
||||||
(
|
(
|
||||||
echo "DEFINES += TDESKTOP_DISABLE_AUTOUPDATE"
|
echo "DEFINES += TDESKTOP_DISABLE_AUTOUPDATE"
|
||||||
echo "DEFINES += TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME"
|
echo "DEFINES += TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME"
|
||||||
@ -101,10 +103,13 @@ ln -s %{_builddir}/breakpad-lss ./src/third_party/lss
|
|||||||
make
|
make
|
||||||
|
|
||||||
export PATH="/usr/lib64/libtelegram-qt5/bin/:$PATH"
|
export PATH="/usr/lib64/libtelegram-qt5/bin/:$PATH"
|
||||||
|
|
||||||
# Build codegen_style
|
# Build codegen_style
|
||||||
mkdir -p "%{_builddir}/tdesktop/Linux/obj/codegen_style/Debug"
|
mkdir -p "%{_builddir}/tdesktop/Linux/obj/codegen_style/Debug"
|
||||||
cd %{_builddir}/tdesktop/Linux/obj/codegen_style/Debug
|
cd %{_builddir}/tdesktop/Linux/obj/codegen_style/Debug
|
||||||
qmake QMAKE_CXX="g++-5" QMAKE_LINK="g++-5" \
|
qmake QMAKE_CXX="g++-5" QMAKE_LINK="g++-5" \
|
||||||
|
QT_TDESKTOP_VERSION="5.6.0" \
|
||||||
|
QT_TDESKTOP_PATH="%{_builddir}/Libraries/QtStatic" \
|
||||||
CONFIG+=debug ../../../../Telegram/build/qmake/codegen_style/codegen_style.pro
|
CONFIG+=debug ../../../../Telegram/build/qmake/codegen_style/codegen_style.pro
|
||||||
make
|
make
|
||||||
|
|
||||||
@ -112,6 +117,8 @@ make
|
|||||||
mkdir -p "%{_builddir}/tdesktop/Linux/obj/codegen_numbers/Debug"
|
mkdir -p "%{_builddir}/tdesktop/Linux/obj/codegen_numbers/Debug"
|
||||||
cd %{_builddir}/tdesktop/Linux/obj/codegen_numbers/Debug
|
cd %{_builddir}/tdesktop/Linux/obj/codegen_numbers/Debug
|
||||||
qmake QMAKE_CXX="g++-5" QMAKE_LINK="g++-5" \
|
qmake QMAKE_CXX="g++-5" QMAKE_LINK="g++-5" \
|
||||||
|
QT_TDESKTOP_VERSION="5.6.0" \
|
||||||
|
QT_TDESKTOP_PATH="%{_builddir}/Libraries/QtStatic" \
|
||||||
CONFIG+=debug ../../../../Telegram/build/qmake/codegen_numbers/codegen_numbers.pro
|
CONFIG+=debug ../../../../Telegram/build/qmake/codegen_numbers/codegen_numbers.pro
|
||||||
make
|
make
|
||||||
|
|
||||||
@ -119,6 +126,8 @@ make
|
|||||||
mkdir -p "%{_builddir}/tdesktop/Linux/DebugIntermediateLang"
|
mkdir -p "%{_builddir}/tdesktop/Linux/DebugIntermediateLang"
|
||||||
cd %{_builddir}/tdesktop/Linux/DebugIntermediateLang
|
cd %{_builddir}/tdesktop/Linux/DebugIntermediateLang
|
||||||
qmake QMAKE_CXX="g++-5" QMAKE_LINK="g++-5" \
|
qmake QMAKE_CXX="g++-5" QMAKE_LINK="g++-5" \
|
||||||
|
QT_TDESKTOP_VERSION="5.6.0" \
|
||||||
|
QT_TDESKTOP_PATH="%{_builddir}/Libraries/QtStatic" \
|
||||||
CONFIG+=debug "../../Telegram/MetaLang.pro"
|
CONFIG+=debug "../../Telegram/MetaLang.pro"
|
||||||
make
|
make
|
||||||
|
|
||||||
@ -129,8 +138,10 @@ cd %{_builddir}/tdesktop/Linux/ReleaseIntermediate
|
|||||||
./../codegen/Debug/codegen_numbers "-o./../../Telegram/GeneratedFiles" "./../../Telegram/Resources/numbers.txt"
|
./../codegen/Debug/codegen_numbers "-o./../../Telegram/GeneratedFiles" "./../../Telegram/Resources/numbers.txt"
|
||||||
./../DebugLang/MetaLang -lang_in ./../../Telegram/Resources/langs/lang.strings -lang_out ./../../Telegram/GeneratedFiles/lang_auto
|
./../DebugLang/MetaLang -lang_in ./../../Telegram/Resources/langs/lang.strings -lang_out ./../../Telegram/GeneratedFiles/lang_auto
|
||||||
|
|
||||||
qmake QMAKE_CXX="g++-5" QMAKE_LINK="g++-5" \
|
qmake QMAKE_CXX="g++-5" QMAKE_LINK="g++-5" CONFIG+=release \
|
||||||
CONFIG+=release "../../Telegram/Telegram.pro"
|
QT_TDESKTOP_VERSION="5.6.0" \
|
||||||
|
QT_TDESKTOP_PATH="%{_builddir}/Libraries/QtStatic" \
|
||||||
|
"../../Telegram/Telegram.pro"
|
||||||
make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
Loading…
Reference in New Issue
Block a user