File protozero.spec of Package protozero

#
# spec file for package osmium
#
# Copyright (c) 2012, 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           protozero
Version:        1.7.1
Release:        0
License:        BSD-2-Clause
URL:            https://github.com/mapbox/protozero
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:	cmake
BuildRequires:  gcc-c++
BuildRequires:  protobuf-devel
Group:          Applications/GIS
Source:         protozero-%{version}.tar.gz
Summary:        Minimalistic protocol buffer decoder and encoder in C++
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:          Applications/GIS

%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

%build
mkdir build
cd build
cmake ..
make

%install
cd build
%make_install
mv %{buildroot}/usr/local/include %{buildroot}/usr/

%files devel
%defattr(0644,root,root,0755)
%license LICENSE.md
%doc README.md
/usr/include/protozero

%changelog
openSUSE Build Service is sponsored by