chore(tdlib): backport #3196 and bump version (#3296)

* fix: tdlib (#3196)

* fix: tdlib

* remove nightly label

* cp examples folder instead of install

* remove stray merge conflict text

* missing space

* bump: tdlib

---------

Co-authored-by: Raboneko <raboneko@fyralabs.com>
This commit is contained in:
sadlerm4
2025-02-13 02:04:05 +11:00
committed by GitHub
parent 8c3b70aedf
commit efb4f12884
3 changed files with 22 additions and 22 deletions
-3
View File
@@ -2,7 +2,4 @@ project pkg {
rpm {
spec = "tdlib-nightly.spec"
}
labels {
nightly = "1"
}
}
+16 -12
View File
@@ -1,15 +1,15 @@
%global commit 2be9e799a2bc523550d4f83f4d2d66d41c9573b9
%global ver 1.8.42
%global commit_date 20240219
%global commit 8e29c4d7d21db3ab2c7a88c384626e95ef789f61
%global ver 1.8.45
%global commit_date 20250212
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: tdlib-nightly
Version: %ver^%commit_date.%shortcommit
Release: 2%?dist
License: BSL-1.0
URL: https://github.com/tdlib/td
Summary: Cross-platform library for building Telegram clients
Source0: %url/archive/%commit/tdlib-%commit.tar.gz
Name: tdlib-nightly
Version: %ver^%commit_date.%shortcommit
Release: 1%?dist
License: BSL-1.0
URL: https://github.com/tdlib/td
Summary: Cross-platform library for building Telegram clients
Source0: %url/archive/%commit/tdlib-%commit.tar.gz
BuildRequires: gperftools-devel
BuildRequires: openssl-devel
@@ -20,7 +20,7 @@ BuildRequires: gperf
BuildRequires: cmake
BuildRequires: gcc
Provides: bundled(sqlite) = 3.31.0
Provides: bundled(sqlite) = 3.31.0
%description
TDLib (Telegram Database library) is a cross-platform library for
@@ -62,14 +62,18 @@ sed -e 's/"DEFAULT"/"PROFILE=SYSTEM"/g' -i tdnet/td/net/SslStream.cpp
%install
%cmake_install
mv LICENSE_1_0.txt *.md ..
mv LICENSE_1_0.txt *.md example ..
rm -rf *
mv ../LICENSE_1_0.txt ../*.md .
mkdir -p %buildroot%_datadir/%{name}
cp -r ../example %buildroot%_datadir/%{name}
%files
%license LICENSE_1_0.txt
%doc README.md CHANGELOG.md
%_libdir/libtd*.so.%ver
%_datadir/%{name}/example/*
%files devel
%_includedir/td
+6 -7
View File
@@ -1,8 +1,7 @@
if filters.contains("nightly") {
rpm.global("commit", gh_commit("tdlib/td"));
if rpm.changed() {
let v = find("\nproject\\(TDLib\\s+VERSION\\s+([\\d.]+)\\s+", gh_rawfile("tdlib/td", "master", "CMakeLists.txt"), 1);
rpm.global("ver", v);
rpm.release();
}
rpm.global("commit", gh_commit("tdlib/td"));
if rpm.changed() {
let v = find("\nproject\\(TDLib\\s+VERSION\\s+([\\d.]+)\\s+", gh_rawfile("tdlib/td", "master", "CMakeLists.txt"), 1);
rpm.global("ver", v);
rpm.release();
rpm.global("commit_date", date());
}