forked from pool/libatomic_ops
68 lines
2.0 KiB
RPMSpec
68 lines
2.0 KiB
RPMSpec
|
#
|
||
|
# spec file for package libatomic-ops-devel
|
||
|
#
|
||
|
# Copyright (c) 2011 SUSE LINUX Products 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
|
||
|
Summary: A portable library for atomic memory operations
|
||
|
License: GPL-2.0+ ; MIT
|
||
|
Group: Development/Languages/C and C++
|
||
|
Version: 7.2alpha6
|
||
|
Release: 0
|
||
|
Url: http://www.hpl.hp.com/research/linux/atomic_ops/
|
||
|
Source: http://www.hpl.hp.com/research/linux/atomic_ops/download/libatomic_ops-%{version}.tar.gz
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
BuildRequires: autoconf automake
|
||
|
|
||
|
%description
|
||
|
This package provides semi-portable access to hardware provided atomic
|
||
|
memory operations.
|
||
|
|
||
|
%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
|
||
|
This package provides semi-portable access to hardware provided atomic
|
||
|
memory operations.
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
autoreconf -fi
|
||
|
%configure
|
||
|
make %{?_smp_mflags}
|
||
|
|
||
|
%install
|
||
|
make DESTDIR=%{buildroot} install
|
||
|
# remove unnecessary documents
|
||
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/libatomic_ops
|
||
|
|
||
|
%check
|
||
|
%if !0%{?qemu_user_space_build:1}
|
||
|
make check
|
||
|
%endif
|
||
|
|
||
|
%files devel
|
||
|
%defattr(-, root, root)
|
||
|
%doc README COPYING AUTHORS ChangeLog
|
||
|
%doc doc/*.txt
|
||
|
%{_libdir}/lib*
|
||
|
%{_includedir}/*
|
||
|
|
||
|
%changelog
|