OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libatomic_ops?expand=0&rev=17
86 lines
2.7 KiB
RPMSpec
86 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package libatomic_ops
|
|
#
|
|
# Copyright (c) 2015 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/
|
|
#
|
|
|
|
|
|
Name: libatomic_ops
|
|
Version: 7.4.2
|
|
Release: 0
|
|
Summary: A portable library for atomic memory operations
|
|
License: GPL-2.0+ and MIT
|
|
Group: Development/Languages/C and C++
|
|
Url: https://github.com/ivmai/libatomic_ops
|
|
|
|
#Git-Clone: git://github.com/ivmai/libatomic_ops
|
|
Source: http://www.ivmaisoft.com/_bin/atomic_ops/%name-%version.tar.gz
|
|
Patch2: libatomic_ops-ppc64.patch
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: libtool
|
|
BuildRequires: pkg-config
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
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.
|
|
|
|
%package devel
|
|
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}
|
|
|
|
%description devel
|
|
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.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch2 -p1
|
|
|
|
%build
|
|
autoreconf -fvi
|
|
%configure
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
rm -f "%buildroot/%_libdir"/*.la
|
|
# remove unnecessary documents
|
|
rm -Rf "%{buildroot}/%{_datadir}/libatomic_ops"
|
|
|
|
%check
|
|
%if !0%{?qemu_user_space_build:1}
|
|
make check %{?_smp_mflags}
|
|
%endif
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%doc README.md COPYING AUTHORS ChangeLog
|
|
%doc doc/*.txt
|
|
%{_libdir}/libatomic_ops*.a
|
|
%{_includedir}/atomic_ops/
|
|
%{_includedir}/atomic_ops*.h
|
|
%{_libdir}/pkgconfig/atomic_ops.pc
|
|
|
|
%changelog
|