Репозитории ALT
Последнее обновление в Пт, 24 июля 2020, 14:09:54 +0000 | Пакетов: 24181
en ru
Исходные пакеты в ветвях
свернуть окно
Группа :: Разработка/C++
Исходный пакет: tdlib
Необработанный spec-файл

# TODO: use system sqlite

%def_enable static
# Enable or disable clang compiler...

%def_with clang

Name: tdlib
Version: 1.6.0
Release: alt1

Summary: Cross-platform library for building Telegram clients

License: Boost
Group: Development/C++
Url: https://github.com/tdlib/td

ExcludeArch: %ix86

# Source-url: %url/archive/v%version.tar.gz#/%name-%version.tar.gz

Packager: Vitaly Lipatov <lav at altlinux.ru>

Source: %name-%version.tar

Patch: %name-system-crypto.patch

#BuildRequires(pre): rpm-macros-ninja-build

#BuildRequires: ninja-build

BuildRequires: gperftools-devel
BuildRequires: gperf
BuildRequires: libssl-devel
BuildRequires: gcc-c++
BuildRequires: zlib-devel
BuildRequires: cmake

rpm-build-intro >= 2.1.5

%if_with clang
BuildRequires: clang
BuildRequires: llvm
%remove_optflags -frecord-gcc-switches

# Building with default settings require at least 16 GB of free RAM.

# Builds on ARM and other low-memory architectures are failing.

#ExclusiveArch: %ix86 x86_64

# use no more than system_memory/2300 build procs (see https://bugzilla.altlinux.org/show_bug.cgi?id=35112)

%_tune_parallel_build_by_procsize 6300

TDLib (Telegram Database library) is a cross-platform library for
building Telegram clients. It can be easily used from almost any
programming language.

%package devel
Summary: Development files for %name
Group: Development/C++
Requires: %name = %EVR

%package devel-static
Summary: Static libraries for %name
Group: Development/C++
Requires: %name-devel = %EVR

%description devel

%description devel-static

%patch -p1

%if_with packaged_sqlite
rm -rfv sqlite/

%if_with clang
export CC=clang
export CXX=clang++



%if_disabled static
rm -fv %buildroot%_libdir/*.a


# inet only

#./BUILD/test/run_all_tests --filter -client

%doc LICENSE_1_0.txt

%files devel

%if_enabled static
%files devel-static

* Mon Sep 28 2020 Vitaly Lipatov <lav at altlinux.ru> 1.6.0-alt1
- new version 1.6.0 (with rpmrb script)
- cleanup spec, enable static subpackage
- build with make instead of ninja

* Tue Oct 29 2019 Vitaly Lipatov <lav at altlinux.ru> 1.5.0-alt1
- new version 1.5.0 (with rpmrb script)

* Thu May 02 2019 Vitaly Lipatov <lav at altlinux.ru> 1.4.0-alt1
- new version 1.4.0 (with rpmrb script)

* Sun Dec 16 2018 Vitaly Lipatov <lav at altlinux.ru> 1.3.0-alt2
- build with clang
- disable i586 build

* Mon Dec 10 2018 Vitaly Lipatov <lav at altlinux.ru> 1.3.0-alt1
- initial build for ALT Sisyphus

* Sun Sep 16 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 1.3.0-2
- Fixed issue with crypto policies.

* Sat Sep 15 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 1.3.0-1
- Initial SPEC release.
Проект Geyser основан на коде из проекта Prometheus 2.0, который был доступен по лицензии MIT