mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
* 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:
@@ -2,7 +2,4 @@ project pkg {
|
||||
rpm {
|
||||
spec = "tdlib-nightly.spec"
|
||||
}
|
||||
labels {
|
||||
nightly = "1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user