Petr Gajdos
29a171bd7d
* Fix: move wait loop increment before first conditional block * Fix: high cpu usage in synchronize_rcu with long RCU read-side C.S. * Fix: out of tree build: doc/examples * Fix: out of tree build tests/common * tests/unit: use lib rather than source * automake: Rename INCLUDES to AM_CPPFLAGS (new name) * tests regressions: use lib rather than recompile from source * tests: use common lib rather than recompile compat sources * urcu tests: use lib rather than compile from source * urcu mb tests: use lib rather than recompile from source * urcu signal tests: use library rather than recompile source * tests: move yield debug to common test library * tests urcu bp: use lib rather than recompile source * test_urcu_defer: link on urcu lib rather than recompile source * tests/benchmark: use urcu qsbr lib rather than recompile from source * Pass the CC variable to the example Makefiles * Fix: urcu-bp interaction with threads vs constructors/destructors * Fix undefined NULL pointer arithmetic * Blacklist ARM gcc 4.8.0, 4.8.1, 4.8.2 * rculfhash: document max_nr_buckets = 0 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/userspace-rcu?expand=0&rev=15
127 lines
4.4 KiB
RPMSpec
127 lines
4.4 KiB
RPMSpec
# vim: set sw=4 ts=4 et nu:
|
|
#
|
|
# spec file for package userspace-rcu
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
|
|
#
|
|
# 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: userspace-rcu
|
|
Version: 0.8.4
|
|
Release: 0
|
|
%define soname 2
|
|
Summary: Userspace Read-Copy-Update Library
|
|
License: LGPL-2.1+ and MIT and GPL-2.0+ and GPL-3.0+
|
|
Group: System/Libraries
|
|
Source0: http://lttng.org/files/urcu/userspace-rcu-%{version}.tar.bz2
|
|
Source1: http://lttng.org/files/urcu/userspace-rcu-%{version}.tar.bz2.asc
|
|
Source2: userspace-rcu.keyring
|
|
Patch0: userspace-rcu-ppc64le.patch
|
|
Url: http://lttng.org/urcu
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: gcc
|
|
BuildRequires: glibc-devel
|
|
%if 0%{?suse_version} >= 1230
|
|
BuildRequires: gpg-offline
|
|
%endif
|
|
BuildRequires: make
|
|
BuildRequires: pkgconfig
|
|
|
|
%description
|
|
liburcu is a LGPLv2.1 userspace RCU (read-copy-update) library. This data
|
|
synchronization library provides read-side access which scales linearly with
|
|
the number of cores. It does so by allowing multiples copies of a given data
|
|
structure to live at the same time, and by monitoring the data structure
|
|
accesses to detect grace periods after which memory reclamation is possible.
|
|
|
|
%package -n liburcu%{soname}
|
|
Summary: Userspace Read-Copy-Update Library
|
|
Group: System/Libraries
|
|
|
|
%description -n liburcu%{soname}
|
|
liburcu is a LGPLv2.1 userspace RCU (read-copy-update) library. This data
|
|
synchronization library provides read-side access which scales linearly with
|
|
the number of cores. It does so by allowing multiples copies of a given data
|
|
structure to live at the same time, and by monitoring the data structure
|
|
accesses to detect grace periods after which memory reclamation is possible.
|
|
|
|
%package -n liburcu-devel
|
|
Summary: Userspace Read-Copy-Update Library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: liburcu%{soname} = %{version}
|
|
|
|
%description -n liburcu-devel
|
|
liburcu is a LGPLv2.1 userspace RCU (read-copy-update) library. This data
|
|
synchronization library provides read-side access which scales linearly with
|
|
the number of cores. It does so by allowing multiples copies of a given data
|
|
structure to live at the same time, and by monitoring the data structure
|
|
accesses to detect grace periods after which memory reclamation is possible.
|
|
|
|
%prep
|
|
%{?gpg_verify: %gpg_verify %{SOURCE1}}
|
|
%setup -q
|
|
%patch0 -p1
|
|
|
|
%build
|
|
%configure --disable-silent-rules --disable-static
|
|
%__make %{?_smp_mflags}
|
|
|
|
%install
|
|
%makeinstall
|
|
|
|
rm -rf "%{buildroot}%{_datadir}/doc"
|
|
rm "%buildroot/%_libdir"/*.la
|
|
|
|
%post -n liburcu%{soname} -p /sbin/ldconfig
|
|
%postun -n liburcu%{soname} -p /sbin/ldconfig
|
|
|
|
%files -n liburcu%{soname}
|
|
%defattr(-,root,root)
|
|
%doc ChangeLog LICENSE README *.txt doc/*.txt
|
|
%{_libdir}/liburcu.so.%{soname}
|
|
%{_libdir}/liburcu.so.%{soname}.*
|
|
%{_libdir}/liburcu-bp.so.%{soname}
|
|
%{_libdir}/liburcu-bp.so.%{soname}.*
|
|
%{_libdir}/liburcu-cds.so.%{soname}
|
|
%{_libdir}/liburcu-cds.so.%{soname}.*
|
|
%{_libdir}/liburcu-common.so.%{soname}
|
|
%{_libdir}/liburcu-common.so.%{soname}.*
|
|
%{_libdir}/liburcu-mb.so.%{soname}
|
|
%{_libdir}/liburcu-mb.so.%{soname}.*
|
|
%{_libdir}/liburcu-qsbr.so.%{soname}
|
|
%{_libdir}/liburcu-qsbr.so.%{soname}.*
|
|
%{_libdir}/liburcu-signal.so.%{soname}
|
|
%{_libdir}/liburcu-signal.so.%{soname}.*
|
|
|
|
%files -n liburcu-devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/urcu*.h
|
|
%{_includedir}/urcu
|
|
%{_libdir}/liburcu.so
|
|
%{_libdir}/liburcu-bp.so
|
|
%{_libdir}/liburcu-cds.so
|
|
%{_libdir}/liburcu-common.so
|
|
%{_libdir}/liburcu-mb.so
|
|
%{_libdir}/liburcu-qsbr.so
|
|
%{_libdir}/liburcu-signal.so
|
|
%{_libdir}/pkgconfig/liburcu.pc
|
|
%{_libdir}/pkgconfig/liburcu-bp.pc
|
|
%{_libdir}/pkgconfig/liburcu-cds.pc
|
|
%{_libdir}/pkgconfig/liburcu-mb.pc
|
|
%{_libdir}/pkgconfig/liburcu-qsbr.pc
|
|
%{_libdir}/pkgconfig/liburcu-signal.pc
|
|
|
|
%changelog
|