2023-07-14 10:23:00 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package frozen
|
|
|
|
|
#
|
2024-09-02 05:29:40 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2023-07-14 10:23:00 +00:00
|
|
|
#
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
2024-09-02 05:29:40 +00:00
|
|
|
|
2023-07-14 10:23:00 +00:00
|
|
|
Name: frozen
|
2024-09-02 05:29:40 +00:00
|
|
|
Version: 1.2.0
|
2023-07-14 10:23:00 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: A header only, constexpr alternative to gperf for C++14 users
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
URL: https://github.com/serge-sans-paille/%{name}
|
|
|
|
|
Source: %{url}/archive/refs/tags/%{version}.tar.gz#:/%{name}-%{version}.tar.gz
|
2023-08-07 09:53:09 +00:00
|
|
|
Patch0: frozen-cmake.patch
|
|
|
|
|
BuildRequires: cmake
|
2024-09-02 05:29:40 +00:00
|
|
|
BuildRequires: gcc-c++
|
2023-07-14 10:23:00 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Header-only library that provides 0 cost initialization for immutable
|
|
|
|
|
containers, fixed-size containers, and various algorithms.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Header files for frozen, an alternative to gperf
|
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Header-only library that provides 0 cost initialization for immutable
|
|
|
|
|
containers, fixed-size containers, and various algorithms.
|
|
|
|
|
|
|
|
|
|
This package contains the headers.
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-08-07 09:53:09 +00:00
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
|
|
# The previous empty line is allowing buiding on sle12, where autosetup is buggy
|
2023-07-14 10:23:00 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cmake -DBUILD_TESTING=OFF
|
|
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%dir %{_includedir}/%{name}
|
|
|
|
|
%{_includedir}/%{name}/*
|
|
|
|
|
%dir %{_datadir}/cmake/%{name}
|
|
|
|
|
%{_datadir}/cmake/%{name}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|