mirror of
https://abf.rosa.ru/djam/mapbox-variant.git
synced 2025-02-24 11:03:01 +00:00
40 lines
1.1 KiB
RPMSpec
40 lines
1.1 KiB
RPMSpec
%global debug_package %{nil}
|
|
|
|
Name: mapbox-variant
|
|
Version: 1.1.6
|
|
Release: 1
|
|
Summary: A header-only alternative to boost::variant for C++11 and C++14
|
|
|
|
License: Boost and BSD
|
|
URL: https://github.com/mapbox/variant
|
|
Source0: https://github.com/mapbox/variant/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
%description
|
|
Mapbox variant has the same speedy performance of boost::variant but is
|
|
faster to compile, results in smaller binaries, and has no dependencies.
|
|
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
|
|
%description devel
|
|
Mapbox variant has the same speedy performance of boost::variant but is
|
|
faster to compile, results in smaller binaries, and has no dependencies.
|
|
|
|
|
|
%prep
|
|
%setup -n variant-%{version}
|
|
%autopatch -p1
|
|
sed -i -e 's/-Werror //' Makefile
|
|
sed -i -e 's/-march=native //' Makefile
|
|
rm -f test/include/catch.hpp
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_includedir}
|
|
cp -pr include/mapbox %{buildroot}%{_includedir}
|
|
|
|
%files devel
|
|
%{_includedir}/mapbox
|