commit 0148ce54167aeb390f5bd57744741c997dd201a6d3e1a3d57c93626dddbefdb0 Author: Christophe Marin Date: Wed Feb 12 10:43:42 2025 +0000 - added patches fix https://github.com/arximboldi/zug/issues/45 + zug-gcc15.patch OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/zug?expand=0&rev=6 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/zug-0.1.1.tar.gz b/zug-0.1.1.tar.gz new file mode 100644 index 0000000..db42e8c --- /dev/null +++ b/zug-0.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b9c8f962e40baa6f0c6af35f957444850063d550078a3ebd0227727b8ef193c +size 102857 diff --git a/zug-gcc15.patch b/zug-gcc15.patch new file mode 100644 index 0000000..8dde873 --- /dev/null +++ b/zug-gcc15.patch @@ -0,0 +1,13 @@ +Index: zug-0.1.1/zug/sequence.hpp +=================================================================== +--- zug-0.1.1.orig/zug/sequence.hpp ++++ zug-0.1.1/zug/sequence.hpp +@@ -72,7 +72,7 @@ struct sequence_data + + sequence_data& operator=(sequence_data&& other) + { +- impl_ = std::move(other.impl); ++ impl_ = std::move(other.impl_); + impl_.reductor.current(this); + } + diff --git a/zug.changes b/zug.changes new file mode 100644 index 0000000..3b786a0 --- /dev/null +++ b/zug.changes @@ -0,0 +1,25 @@ +------------------------------------------------------------------- +Wed Feb 12 10:18:34 UTC 2025 - pgajdos@suse.com + +- added patches + fix https://github.com/arximboldi/zug/issues/45 + + zug-gcc15.patch + +------------------------------------------------------------------- +Tue Oct 24 07:20:34 UTC 2023 - Christophe Marin + +- Update to 0.1.1: + * Fix license in nix build file +- Drop patch, merged upstream: + * 0001-Drop-unused-copy-of-Catch2.patch + +------------------------------------------------------------------- +Tue Oct 10 09:29:50 UTC 2023 - Christophe Marin + +- Add patch: + * 0001-Drop-unused-copy-of-Catch2.patch + +------------------------------------------------------------------- +Fri Jul 28 08:16:59 UTC 2023 - Christophe Marin + +- Init immer, a new build dependency for krita. diff --git a/zug.spec b/zug.spec new file mode 100644 index 0000000..0104dce --- /dev/null +++ b/zug.spec @@ -0,0 +1,73 @@ +# +# spec file for package zug +# +# Copyright (c) 2025 SUSE LLC +# +# 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/ +# + + +Name: zug +Version: 0.1.1 +Release: 0 +Summary: Transducers for C++ +License: BSL-1.0 +URL: https://sinusoid.es/zug/ +Source0: https://github.com/arximboldi/zug/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +# https://github.com/arximboldi/zug/issues/45 +Patch0: zug-gcc15.patch +BuildRequires: boost-devel +BuildRequires: cmake +BuildRequires: gcc-c++ +# includes catch2/catch.hpp +BuildRequires: cmake(Catch2) < 3.0 + +%description +zug is a C++ library providing transducers. Transducers are composable +sequential transformations independent of the source. They can be used to +express algorithms over pull-based sequences (iterators, files) but also push +based sequences (signals, events, asynchronous streams) in a generic way. + +%package devel +Summary: Transducers for C++ + +%description devel +zug is a C++ library providing transducers. Transducers are composable +sequential transformations independent of the source. They can be used to +express algorithms over pull-based sequences (iterators, files) but also push +based sequences (signals, events, asynchronous streams) in a generic way. + +%prep +%autosetup -p1 + +sed -i 's#lib/cmake/Zug#%{_lib}/cmake/Zug#' CMakeLists.txt + +%build +%cmake -Dzug_BUILD_EXAMPLES=FALSE \ + -Dzug_BUILD_DOCS:BOOL=FALSE + +%cmake_build + +%install +%cmake_install + +%check +# %%ctest won't work +%{__cmake} --build %{__builddir} %{?_smp_mflags} -t check + +%files devel +%license LICENSE +%doc README.rst +%{_includedir}/zug/ +%{_libdir}/cmake/Zug/ + +%changelog