File liburcu0.spec of Package liburcu0
#
# spec file for package liburcu0
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
%define fullname userspace-rcu
Name: liburcu0
Version: 0.8.8
Release: 0
Source: http://www.lttng.org/files/urcu/%{fullname}-%{version}.tar.bz2
Patch1: %{fullname}-extradocs.patch
Patch2: userspace-rcu-aarch64.patch
Patch3: userspace-rcu-ppc64-use-ppc.patch
Patch4: userspace-rcu-ppc64le.patch
Summary: Userspace RCU Implementation
License: LGPL-2.1+ and GPL-2.0 and GPL-3.0+ and MIT
Group: Development/Languages/C and C++
Url: http://liburcu.org
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Userspace RCU Implementation from LTTng UST.
%package -n liburcu-devel
Summary: Userspace RCU Implementation
Group: Development/Languages/C and C++
Requires: liburcu0 = %{version}
%description -n liburcu-devel
Userspace RCU Implementation from LTTng UST.
%package -n urcu-docs
Summary: Userspace RCU Documentation
Group: Development/Languages/C and C++
Requires: liburcu0 = %{version}
%description -n urcu-docs
This package contains API documention for liburcu
%prep
%setup -q -n %{fullname}-%{version}
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
autoreconf -fi
%configure --docdir=%{_docdir}/%{fullname}
make
%install
make DESTDIR=%buildroot install
rm -vf %buildroot%{_libdir}/*.la
%clean
rm -rf %buildroot
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/*.so.*
%files -n liburcu-devel
%defattr(-,root,root)
%{_prefix}/include/*
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/pkgconfig/liburcu*.pc
%files -n urcu-docs
%defattr(-,root,root)
%dir %{_docdir}/%{fullname}
%{_docdir}/%{fullname}/*
%changelog