File cppcodec.spec of Package cppcodec
#
# spec file for package cppcodec
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cppcodec
Version: 0.1
Release: 0
Summary: Header-only C++11 library to encode/decode various encoding formats
License: MIT
Group: Development/Libraries/C and C++
Url: https://github.com/tplgy/cppcodec
Source: %{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: pkgconfig
Provides: %{name}-devel = %{version}-%{release}
BuildArch: noarch
%description
Header-only C++11 library to encode/decode base64, base64url, base32, base32hex
and hex (a.k.a. base16) as specified in RFC 4648, plus Crockford's base32.
MIT licensed with consistent, flexible API. Supports raw pointers, std::string
and (templated) character vectors without unnecessary allocations.
%prep
%setup -q
%build
# disable testing as it tries to use a catch.hpp file
%cmake -DBUILD_TESTING:BOOL=OFF
make %{?_smp_mflags}
%install
%cmake_install
%files
/usr/include/cppcodec/
/usr/share/pkgconfig/cppcodec-1.pc
%changelog