2012-05-23 15:11:29 +02:00
|
|
|
#
|
2013-05-26 22:13:39 +02:00
|
|
|
# spec file for package libatomic_ops
|
2012-05-23 15:11:29 +02:00
|
|
|
#
|
2013-05-26 22:13:39 +02:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-05-23 15:11:29 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
2013-05-26 22:13:39 +02:00
|
|
|
|
|
|
|
|
2012-05-23 15:11:29 +02:00
|
|
|
Name: libatomic_ops
|
|
|
|
Summary: A portable library for atomic memory operations
|
2013-05-26 22:07:42 +02:00
|
|
|
License: GPL-2.0+ and MIT
|
2012-05-23 15:11:29 +02:00
|
|
|
Group: Development/Languages/C and C++
|
2013-05-26 22:07:42 +02:00
|
|
|
Version: 7.2d
|
2012-05-23 15:11:29 +02:00
|
|
|
Release: 0
|
|
|
|
Url: http://www.hpl.hp.com/research/linux/atomic_ops/
|
2013-05-26 22:07:42 +02:00
|
|
|
|
|
|
|
Source: http://www.hpl.hp.com/research/linux/atomic_ops/download/libatomic_ops-%version.tar.gz
|
2013-05-26 22:17:38 +02:00
|
|
|
Patch1: libatomic_ops-aarch64.patch
|
2013-12-03 00:56:24 +01:00
|
|
|
Patch2: libatomic_ops-ppc64le.patch
|
2012-05-23 15:11:29 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-05-26 22:13:39 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: pkgconfig
|
2012-05-23 15:11:29 +02:00
|
|
|
|
|
|
|
%description
|
2013-05-26 22:07:42 +02:00
|
|
|
Provides implementations for atomic memory update operations on a
|
|
|
|
number of architectures. This allows direct use of these in reasonably
|
|
|
|
portable code. Unlike earlier similar packages, this one explicitly
|
|
|
|
considers memory barrier semantics, and allows the construction of code
|
|
|
|
that involves minimum overhead across a variety of architectures.
|
2012-05-23 15:11:29 +02:00
|
|
|
|
|
|
|
%package devel
|
2013-05-26 22:13:39 +02:00
|
|
|
Summary: A portable library for atomic memory operations
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Obsoletes: libatomic-ops-devel < %version-%release
|
|
|
|
Provides: libatomic-ops-devel = %version-%release
|
2012-05-23 15:11:29 +02:00
|
|
|
|
|
|
|
%description devel
|
2013-05-26 22:07:42 +02:00
|
|
|
Provides implementations for atomic memory update operations on a
|
|
|
|
number of architectures. This allows direct use of these in reasonably
|
|
|
|
portable code. Unlike earlier similar packages, this one explicitly
|
|
|
|
considers memory barrier semantics, and allows the construction of code
|
|
|
|
that involves minimum overhead across a variety of architectures.
|
2012-05-23 15:11:29 +02:00
|
|
|
|
|
|
|
%prep
|
2013-05-26 22:07:42 +02:00
|
|
|
%setup -qn %name-7.2
|
2013-12-03 00:56:24 +01:00
|
|
|
%patch -P 1 -P 2 -p1
|
2012-05-23 15:11:29 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2013-05-26 22:07:42 +02:00
|
|
|
make DESTDIR="%buildroot" install
|
2012-05-23 15:11:29 +02:00
|
|
|
# remove unnecessary documents
|
2013-05-26 22:07:42 +02:00
|
|
|
rm -Rf "%buildroot/%_datadir/libatomic_ops"
|
2012-05-23 15:11:29 +02:00
|
|
|
|
|
|
|
%check
|
|
|
|
%if !0%{?qemu_user_space_build:1}
|
|
|
|
make check
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files devel
|
2013-05-26 22:14:10 +02:00
|
|
|
%defattr(-,root,root)
|
2012-05-23 15:11:29 +02:00
|
|
|
%doc README COPYING AUTHORS ChangeLog
|
|
|
|
%doc doc/*.txt
|
2013-05-26 22:07:42 +02:00
|
|
|
%_libdir/libatomic_ops*.a
|
|
|
|
%_includedir/atomic_ops/
|
|
|
|
%_includedir/atomic_ops*.h
|
|
|
|
%_libdir/pkgconfig/atomic_ops.pc
|
2012-05-23 15:11:29 +02:00
|
|
|
|
|
|
|
%changelog
|