commit 20b0010129e473e0eb4cc742c32a9bd3523a1718
Author: Jan Palus <[email protected]>
Date:   Tue Jan 28 18:37:57 2025 +0100

    new

 glaze.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)
---
diff --git a/glaze.spec b/glaze.spec
new file mode 100644
index 0000000..6934ccf
--- /dev/null
+++ b/glaze.spec
@@ -0,0 +1,60 @@
+#
+# Conditional build:
+%bcond_with    avx2    # Use AVX2 intrinsics
+
+Summary:       Extremely fast JSON and interface library for modern C++
+Name:          glaze
+Version:       4.3.1
+Release:       1
+License:       MIT
+Group:         Development/Libraries
+Source0:       
https://github.com/stephenberry/glaze/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 629e89b641b4adb9439a17fba5b8cdfc
+URL:           https://github.com/stephenberry/glaze
+BuildRequires: cmake >= 3.21
+BuildRequires: libstdc++-devel >= 6:11
+BuildRequires: rpm-build >= 4.6
+BuildRequires: rpmbuild(macros) >= 1.742
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _enable_debug_packages  0
+
+%description
+Extremely fast, in memory, JSON and interface library for modern C++.
+
+%package devel
+Summary:       Extremely fast JSON and interface library for modern C++
+Group:         Development/Libraries
+Requires:      libstdc++-devel >= 6:11
+BuildArch:     noarch
+
+%description devel
+Extremely fast, in memory, JSON and interface library for modern C++.
+
+%prep
+%setup -q
+
+%build
+%cmake -B build \
+       -Dglaze_INSTALL_CMAKEDIR:PATH="%{_datadir}/cmake/glaze" \
+       -DBUILD_TESTING:BOOL=OFF \
+       -Dglaze_DEVELOPER_MODE:BOOL=OFF \
+       -Dglaze_ENABLE_FUZZING:BOOL=OFF \
+       %{cmake_on_off avx2 glaze_ENABLE_AVX2}
+
+%{__make} -C build
+
+%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 LICENSE README.md
+%{_includedir}/glaze
+%{_datadir}/cmake/glaze
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/glaze.git/commitdiff/20b0010129e473e0eb4cc742c32a9bd3523a1718

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to