File readerwriterqueue.spec of Package readerwriterqueue

#
# spec file for package readerwriterqueue
#
# Copyright (c) 2026 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:           readerwriterqueue
Version:        1.0.7
Release:        0
Summary:        A fast single-producer, single-consumer lock-free queue for C++ 
License:        BSD-2-Clause
URL:            https://github.com/cameron314/readerwriterqueue
Source0:        https://github.com/cameron314/readerwriterqueue/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  gcc-c++

%description
A lock-free queue (that I designed from scratch) for C++.

It only supports a two-thread use case (one consuming, and one producing).
The threads can't switch roles, though you could use this queue completely
from a single thread if you wish (but that would sort of defeat the purpose!).

%package devel
Summary:        A fast single-producer, single-consumer lock-free queue for C++ 
%description devel
A lock-free queue (that I designed from scratch) for C++.

It only supports a two-thread use case (one consuming, and one producing).
The threads can't switch roles, though you could use this queue completely
from a single thread if you wish (but that would sort of defeat the purpose!).

%prep
%autosetup

%build
%cmake
%cmake_build

%install
%cmake_install

%files devel
%license LICENSE.md
%doc README.md
%dir %{_includedir}/readerwriterqueue
%{_includedir}/readerwriterqueue/LICENSE.md
%{_includedir}/readerwriterqueue/atomicops.h
%{_includedir}/readerwriterqueue/readerwritercircularbuffer.h
%{_includedir}/readerwriterqueue/readerwriterqueue.h
%dir %{_libdir}/cmake/readerwriterqueue
%{_libdir}/cmake/readerwriterqueue/readerwriterqueueConfig.cmake
%{_libdir}/cmake/readerwriterqueue/readerwriterqueueConfigVersion.cmake
%{_libdir}/cmake/readerwriterqueue/readerwriterqueueTargets.cmake


%changelog
openSUSE Build Service is sponsored by