## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec %global forgeurl https://github.com/BenHanson/lexertl14 %global commit 2ea71b87d482be7172fd064d27e80ace69b3bee0 Name: lexertl14 Summary: C++14 version of lexertl Version: 0.1.0 %forgemeta Release: %autorelease URL: %{forgeurl} License: Boost Source0: %{forgesource} BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: dos2unix # No compiled binaries are installed, so this would be empty. %global debug_package %{nil} %global common_description %{expand: lexertl is a header-only library for writing lexical analysers. With lexertl you can: • Build lexical analysers at runtime • Scan Unicode and ASCII input • Scan from files or memory • Generate C++ code or even write your own code generator} %description %{common_description} %package devel Summary: %{summary} # Header-only library: Provides: lexertl14-static = %{version}-%{release} %description devel %{common_description} %package examples Summary: Examples for lexertl14 BuildArch: noarch %description examples %{summary}. %prep %forgeautosetup # Adapt to multilib: sed -r -i 's@(DESTINATION )lib\b@\1%{_libdir}@' CMakeLists.txt # Fix line terminations (particularly for files that may be installed) find . -type f -exec file '{}' '+' | grep -E '\bCRLF\b' | cut -d ':' -f 1 | xargs -r dos2unix %build %cmake -DBUILD_TESTING=on %cmake_build %install %cmake_install %check %ctest %files devel %license include/lexertl/licence_1_0.txt %doc README.md %{_includedir}/lexertl %{_libdir}/cmake/lexertl %files examples %license include/lexertl/licence_1_0.txt %doc examples/* %changelog * mer. déc. 22 2021 Benjamin A. Beasley 0.1.0-4 - Update to 2ea71b8 * mar. déc. 14 2021 Benjamin A. Beasley 0.1.0-3 - Dep. on cmake-filesystem is now auto-generated * ven. nov. 19 2021 Benjamin A. Beasley 0.1.0-2 - Update to commit 488602f * mer. août 25 2021 Benjamin A. Beasley 0.1.0-1 - Initial package