[packages/gcem] - new

qboosh qboosh at pld-linux.org
Sun Dec 28 19:32:46 CET 2025


commit 9b097f229cf4703f225b8918008cea97b8346f05
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Dec 28 19:33:10 2025 +0100

    - new

 gcem.spec | 143 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 143 insertions(+)
---
diff --git a/gcem.spec b/gcem.spec
new file mode 100644
index 0000000..fc648bc
--- /dev/null
+++ b/gcem.spec
@@ -0,0 +1,143 @@
+#
+# Conditional build:
+%bcond_without	apidocs		# API documentation
+#
+Summary:	A C++ compile-time math library using generalized constant expressions
+Summary(pl.UTF-8):	Biblioteka matematyczna C++ czasu kompilacji wykorzystująca uogólnione wyrażenia stałe
+Name:		gcem
+Version:	1.18.0
+Release:	1
+License:	Apache v2.0
+Group:		Libraries
+#Source0Download: https://github.com/kthohr/gcem/releases
+Source0:	https://github.com/kthohr/gcem/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	e5c0f514fd3f31e9d333579da86303da
+URL:		https://github.com/kthohr/gcem
+BuildRequires:	cmake >= 3.1
+BuildRequires:	libstdc++-devel >= 6:4.7
+BuildRequires:	rpmbuild(macros) >= 1.605
+%if %{with apidocs}
+# 1.9.3
+BuildRequires:	doxygen >= 1.8.10
+BuildRequires:	python3-breathe >= 4.34.0
+BuildRequires:	python3-docutils >= 0.17.1
+BuildRequires:	python3-sphinx_rtd_theme >= 1.0.0
+BuildRequires:	python3-sphinxcontrib-katex >= 0.8.6
+BuildRequires:	python3-sphinxcontrib-contentui >= 0.2.5
+BuildRequires:	sphinx-pdg >= 5.1.1
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+GCE-Math (Generalized Constant Expression Math) is a templated C++
+library enabling compile-time computation of mathematical functions.
+
+Features:
+- The library is written in C++11 constexpr format, and is
+  C++11/14/17/20 compatible.
+- Continued fraction expansions and series expansions are implemented
+  using recursive templates.
+- The gcem:: syntax is identical to that of the C++ standard library
+  (std::).
+- Tested and accurate to floating-point precision against the C++
+  standard library.
+- Released under a permissive, non-GPL license.
+
+%description -l pl.UTF-8
+GCE-Math (Generalized Constant Expression Math - matematyka
+uogólnionych wyrażeń stałych) to biblioteka szablonów C++, pozwalająca
+na wyliczanie funkcji matematycznych w czasie kompilacji.
+
+Cechy:
+- napisana w formacie constexpr C++ 11, zgodna z C++ 11/14/17/20
+- rozwinięcia ułamków i szeregów zaimplementowane przy użyciu
+  szablonów rekurencyjnych
+- składnia gcem:: identyczna z biblioteką standardową C++ (std::)
+- testowana i dokładna do poziomu precyzji zmiennoprzecinkowej
+  względem biblioteki standardowej C++
+- wydana na liberalnej licencji innej niż GPL
+
+%package devel
+Summary:	A C++ compile-time math library using generalized constant expressions
+Summary(pl.UTF-8):	Biblioteka matematyczna C++ czasu kompilacji wykorzystująca uogólnione wyrażenia stałe
+Group:		Development/Libraries
+
+%description devel
+GCE-Math (Generalized Constant Expression Math) is a templated C++
+library enabling compile-time computation of mathematical functions.
+
+Features:
+- The library is written in C++11 constexpr format, and is
+  C++11/14/17/20 compatible.
+- Continued fraction expansions and series expansions are implemented
+  using recursive templates.
+- The gcem:: syntax is identical to that of the C++ standard library
+  (std::).
+- Tested and accurate to floating-point precision against the C++
+  standard library.
+- Released under a permissive, non-GPL license.
+
+%description devel -l pl.UTF-8
+GCE-Math (Generalized Constant Expression Math - matematyka
+uogólnionych wyrażeń stałych) to biblioteka szablonów C++, pozwalająca
+na wyliczanie funkcji matematycznych w czasie kompilacji.
+
+Cechy:
+- napisana w formacie constexpr C++ 11, zgodna z C++ 11/14/17/20
+- rozwinięcia ułamków i szeregów zaimplementowane przy użyciu
+  szablonów rekurencyjnych
+- składnia gcem:: identyczna z biblioteką standardową C++ (std::)
+- testowana i dokładna do poziomu precyzji zmiennoprzecinkowej
+  względem biblioteki standardowej C++
+- wydana na liberalnej licencji innej niż GPL
+
+%package apidocs
+Summary:	API documentation for GCEM library
+Summary(pl.UTF-8):	Dokumentacja API biblioteki GCEM
+Group:		Documentation
+
+%description apidocs
+API documentation for GCEM library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki GCEM.
+
+%prep
+%setup -q
+
+%build
+install -d build
+cd build
+# header-only library, no arch-specific parts, so use noarch-specific cmake dirs
+%cmake .. \
+	-DGCEM_CMAKECONFIG_INSTALL_DIR=%{_datadir}/cmake/gcem
+
+%{__make}
+cd ..
+
+%if %{with apidocs}
+%{__make} -C docs html
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files devel
+%defattr(644,root,root,755)
+%doc NOTICE.txt README.md contributors.txt
+%{_includedir}/gcem.hpp
+%{_includedir}/gcem_incl
+%{_datadir}/cmake/gcem
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/build/html/{_static,api,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gcem.git/commitdiff/9b097f229cf4703f225b8918008cea97b8346f05



More information about the pld-cvs-commit mailing list