2012-03-29 13:00:45 +02:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
2012-11-20 12:00:08 +01:00
|
|
|
#
|
|
|
|
# spec file for package userspace-rcu
|
|
|
|
#
|
2016-03-15 17:09:00 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-03-29 13:00:45 +02:00
|
|
|
# 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/
|
2012-11-20 12:00:08 +01:00
|
|
|
#
|
|
|
|
|
2012-03-29 13:00:45 +02:00
|
|
|
|
2012-11-20 12:00:08 +01:00
|
|
|
Name: userspace-rcu
|
2015-09-29 21:10:30 +02:00
|
|
|
Version: 0.8.7
|
2012-11-20 12:00:08 +01:00
|
|
|
Release: 0
|
2013-09-10 12:49:57 +02:00
|
|
|
%define soname 2
|
2012-11-20 12:00:08 +01:00
|
|
|
Summary: Userspace Read-Copy-Update Library
|
|
|
|
License: LGPL-2.1+ and MIT and GPL-2.0+ and GPL-3.0+
|
|
|
|
Group: System/Libraries
|
2013-09-10 12:49:57 +02:00
|
|
|
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
|
2015-09-29 21:10:30 +02:00
|
|
|
Patch1: userspace-rcu-aarch64.patch
|
2016-03-15 17:09:00 +01:00
|
|
|
Patch2: userspace-rcu-ppc64le.patch
|
2012-11-20 12:00:08 +01:00
|
|
|
Url: http://lttng.org/urcu
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-09-29 21:10:30 +02:00
|
|
|
BuildRequires: automake
|
2012-11-20 12:00:08 +01:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: glibc-devel
|
2015-09-29 21:10:30 +02:00
|
|
|
BuildRequires: libtool
|
2012-11-20 12:00:08 +01:00
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: pkgconfig
|
2012-03-29 13:00:45 +02:00
|
|
|
|
|
|
|
%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}
|
2012-11-20 12:00:08 +01:00
|
|
|
Summary: Userspace Read-Copy-Update Library
|
|
|
|
Group: System/Libraries
|
2012-03-29 13:00:45 +02:00
|
|
|
|
|
|
|
%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
|
2012-11-20 12:00:08 +01:00
|
|
|
Summary: Userspace Read-Copy-Update Library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: liburcu%{soname} = %{version}
|
2012-03-29 13:00:45 +02:00
|
|
|
|
|
|
|
%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
|
|
|
|
%setup -q
|
2015-09-29 21:10:30 +02:00
|
|
|
%patch1 -p1
|
2016-03-15 17:09:00 +01:00
|
|
|
%patch2 -p1
|
2012-03-29 13:00:45 +02:00
|
|
|
|
|
|
|
%build
|
2015-09-29 21:10:30 +02:00
|
|
|
autoreconf -fi
|
2012-05-23 14:06:56 +02:00
|
|
|
%configure --disable-silent-rules --disable-static
|
2012-03-29 13:00:45 +02:00
|
|
|
%__make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
|
|
|
2012-08-28 08:29:29 +02:00
|
|
|
rm -rf "%{buildroot}%{_datadir}/doc"
|
2012-05-23 14:06:56 +02:00
|
|
|
rm "%buildroot/%_libdir"/*.la
|
2012-03-29 13:00:45 +02:00
|
|
|
|
|
|
|
%post -n liburcu%{soname} -p /sbin/ldconfig
|
|
|
|
%postun -n liburcu%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n liburcu%{soname}
|
|
|
|
%defattr(-,root,root)
|
2012-08-28 08:29:29 +02:00
|
|
|
%doc ChangeLog LICENSE README *.txt doc/*.txt
|
2012-03-29 13:00:45 +02:00
|
|
|
%{_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
|