diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7ede818 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/FunctionalPlus-0.2.22.tar.gz diff --git a/fplus.spec b/fplus.spec new file mode 100644 index 0000000..373b061 --- /dev/null +++ b/fplus.spec @@ -0,0 +1,80 @@ +# For testing +# Depends on downloading and being in a git repo +%bcond_with test + +# Header only package +%global debug_package %{nil} + +Summary: Functional Programming Library for C++ +Name: fplus +License: BSL-1.0 +Version: 0.2.22 +Release: 1%{?dist} + +URL: https://github.com/Dobiasd/FunctionalPlus +Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/FunctionalPlus-%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: gcc-c++ + +%description +FunctionalPlus is a small header-only library supporting you in +reducing code noise and in dealing with only one single level +of abstraction at a time. By increasing brevity and maintainability +of your code it can improve productivity (and fun!) in the long +run. It pursues these goals by providing pure and easy-to-use +functions that free you from implementing commonly used flows of +control over and over again. + +%package devel + +Summary: Functional Programming Library for C++ +Provides: %{name}-static = %{version}-%{release} + +%description devel +FunctionalPlus is a small header-only library supporting you in +reducing code noise and in dealing with only one single level +of abstraction at a time. By increasing brevity and maintainability +of your code it can improve productivity (and fun!) in the long +run. It pursues these goals by providing pure and easy-to-use +functions that free you from implementing commonly used flows of +control over and over again. + +%prep +%autosetup -p1 -n FunctionalPlus-%{version} + +# License check flags this as BSD 3-Clause +# api_search not distributed, remove to make license simpler +rm -rf api_search + +%build +%cmake +%cmake_build + +%if %{with test} +%check +%ctest +%endif + +%install +%cmake_install + +%files devel +%dir %_includedir/%{name} +%dir %_includedir/%{name}/internal +%dir %_includedir/%{name}/internal/asserts +%license LICENSE +%doc README.md +%_includedir/%{name}/*_defines +%_includedir/%{name}/*.hpp +%_includedir/%{name}/internal/*.hpp +%_includedir/%{name}/internal/asserts/*.hpp +%_libdir/cmake/FunctionalPlus/ + +%changelog +* Sat Jan 13 2024 Tom Rix - 0.2.22-1 +- Update to 0.2.22 +- Fix summary + +* Fri Dec 15 2023 Tom Rix - 0.2.20-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..2071542 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (FunctionalPlus-0.2.22.tar.gz) = 399ff3012efd49e8617a0ae275e72bf13e87380e830f6ceb56f85fcda948d4ef252c5aa48f48f0a4a015874015d6e8ff442ac9395d523b4c946a01c17f2bd1b9