Package cctz

Download cctz.spec
%define _unpackaged_files_terminate_build 1

%global soname 2

Name: cctz
Version: 2.3
Release: alt3
License: Apache-2.0
Summary: Translating between absolute and civil times using time zone rules
Group: Development/C++

Source: %name-%version.tar

Patch0: cctz-2.3-debian-compile-library-as-shared.patch

Patch1: cctz-2.3-upstream-updates.patch

BuildRequires: tzdata
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: ctest
BuildRequires: make
BuildRequires: libgtest-devel
BuildRequires: libgmock-devel
BuildRequires: libbenchmark-devel

Requires: tzdata

CCTZ contains two libraries that cooperate with <chrono> to give C++
programmers all the necessary tools for computing with dates, times, and time
zones in a simple and correct manner. The libraries in CCTZ are:
  * The Civil-Time Library - This is a header-only library that supports
    computing with human-scale time, such as dates (which are represented by
    the cctz::civil_day class).
  * The Time-Zone Library - This library uses the IANA time zone database that
    is installed on the system to convert between absolute time and civil time.

%package devel
Summary: %summary
Group: Development/C++
Requires: %name = %EVR
Requires: cmake

%description devel
Development files for %name library.

%patch0 -p1
%patch1 -p1

%cmake -DVERSION=%version -DSOVERSION=%soname


cd %_cmake__builddir

%doc LICENSE.txt

%files devel
%doc examples

* Tue Jun 08 2021 Aleksei Nikiforov <> 2.3-alt3
- Applied changes from upstream needed by clickhouse.
- Cleaned up spec.

* Tue Apr 27 2021 Arseny Maslennikov <> 2.3-alt2.1
- NMU: spec: adapted to new cmake macros.

* Sat Feb 27 2021 Anton Farygin <> 2.3-alt2
- run tests with tzdata, distributed with cctz

* Thu Jun 20 2019 Anton Farygin <> 2.3-alt1
- first build for ALT
Back to Top