Package libvariant: Specfile

Name: libvariant
Version: 1.1.6
Release: alt3

Summary: C++11/C++14 Variant

Group: Development/C++
License: BSD

Packager: Vitaly Lipatov <>

# Source-url:
Source: %name-%version.tar

BuildRequires: gcc-c++

BuildArch: noarch

An header-only alternative to boost::variant for C++11 and C++14.

%package devel
Group: Development/Other
Summary: Development files for %name

%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.

%__subst "s|-O3|%optflags|" Makefile
%__subst "s|-march=native||" Makefile

%make_build out/unit

make test

mkdir -p %buildroot%_includedir/
cp -a include/mapbox %buildroot%_includedir/

%files devel

* Sat Feb 08 2020 Vitaly Lipatov <> 1.1.6-alt3
- move headers to /usr/include/mapbox

* Mon Oct 21 2019 Vitaly Lipatov <> 1.1.6-alt2
- fix build at ppc64le (s/-march=native/-mcpu=native/)
- make package as noarch

* Tue Jun 11 2019 Vitaly Lipatov <> 1.1.6-alt1
- new version 1.1.6 (with rpmrb script)

* Tue Jun 19 2018 Vitaly Lipatov <> 1.1.5-alt2
- enable check

* Mon Jun 12 2017 Vitaly Lipatov <> 1.1.5-alt1
- initial build for ALT Sisyphus