File libprotozero.spec of Package libprotozero
#
# spec file for package libprotozero
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define basepkgname protozero
Name: lib%{basepkgname}
Version: 1.7.1
Release: 0
Summary: Minimalistic protocol buffer decoder and encoder in C++
License: BSD-2-Clause
Group: Development/Languages/C and C++
URL: https://github.com/mapbox/%{basepkgname}
Source: https://github.com/mapbox/%{basepkgname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# Thanks to @kukuk
Patch0: signal.diff
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: graphviz-gnome
BuildRequires: libprotobuf-devel
BuildArch: noarch
%description
Minimalistic protocol buffer decoder and encoder in C++.
Designed for high performance. Suitable for writing zero copy
parsers and encoders with minimal need for run-time allocation of memory.
%package devel
Summary: Minimalistic protocol buffer decoder and encoder in C++
Group: Development/Languages/C and C++
%description devel
Minimalistic protocol buffer decoder and encoder in C++.
Designed for high performance. Suitable for writing zero copy
parsers and encoders with minimal need for run-time allocation of memory.
%prep
%setup -q -n %{basepkgname}-%{version}
%build
%cmake
%make_jobs
%install
%cmake_install
%files devel
%defattr(0644,root,root,0755)
%license LICENSE.md
%doc README.md
%{_includedir}/%{basepkgname}
%changelog