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
|
|
|
#
|
2014-02-13 00:04:42 +01:00
|
|
|
# Copyright (c) 2014 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
|
2014-12-29 16:41:58 +01:00
|
|
|
Version: 7.4.2
|
2014-05-15 16:55:35 +02:00
|
|
|
Release: 0
|
2012-05-23 15:11:29 +02:00
|
|
|
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++
|
|
|
|
Url: http://www.hpl.hp.com/research/linux/atomic_ops/
|
2014-12-29 16:41:58 +01:00
|
|
|
|
|
|
|
#DL-URL: https://github.com/ivmai/libatomic_ops/wiki/Download
|
|
|
|
Source: http://www.ivmaisoft.com/_bin/atomic_ops/libatomic_ops-7.4.2.tar.gz
|
2014-02-13 00:04:42 +01:00
|
|
|
Patch2: libatomic_ops-ppc64.patch
|
2013-05-26 22:13:39 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2014-12-29 21:00:33 +01:00
|
|
|
BuildRequires: libtool
|
2013-05-26 22:13:39 +02:00
|
|
|
BuildRequires: pkgconfig
|
2014-05-15 16:55:35 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
2014-05-15 16:55:35 +02:00
|
|
|
portable code. Unlike earlier similar packages, this one explicitly
|
2013-05-26 22:07:42 +02:00
|
|
|
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++
|
2014-05-15 16:55:35 +02:00
|
|
|
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
|
2014-05-15 16:55:35 +02:00
|
|
|
portable code. Unlike earlier similar packages, this one explicitly
|
2013-05-26 22:07:42 +02:00
|
|
|
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
|
2014-12-29 16:41:58 +01:00
|
|
|
%setup -q
|
2014-02-13 00:04:42 +01:00
|
|
|
%patch2 -p1
|
2012-05-23 15:11:29 +02:00
|
|
|
|
|
|
|
%build
|
2014-05-15 16:55:35 +02:00
|
|
|
autoreconf -fvi
|
2012-05-23 15:11:29 +02:00
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2014-12-29 16:41:58 +01:00
|
|
|
%make_install
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
2012-05-23 15:11:29 +02:00
|
|
|
# remove unnecessary documents
|
2014-05-15 16:55:35 +02:00
|
|
|
rm -Rf "%{buildroot}/%{_datadir}/libatomic_ops"
|
2012-05-23 15:11:29 +02:00
|
|
|
|
|
|
|
%check
|
|
|
|
%if !0%{?qemu_user_space_build:1}
|
2014-05-15 16:55:35 +02:00
|
|
|
make check %{?_smp_mflags}
|
2012-05-23 15:11:29 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files devel
|
2013-05-26 22:14:10 +02:00
|
|
|
%defattr(-,root,root)
|
2014-12-29 16:41:58 +01:00
|
|
|
%doc README.md COPYING AUTHORS ChangeLog
|
2012-05-23 15:11:29 +02:00
|
|
|
%doc doc/*.txt
|
2014-05-15 16:55:35 +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
|