File libatomic-ops-devel.spec of Package libatomic-ops-devel

#
# spec file for package libatomic-ops-devel (Version 1.2)
#
# Copyright (c) 2010 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/
#

# norootforbuild


Name:           libatomic-ops-devel
Summary:        A portable library for atomic memory operations
Version:        1.2
Release:        88
License:        GPLv2+ ; MIT License (or similar)
Group:          Development/Languages/C and C++
Source:         libatomic_ops-%{version}.tar.bz2
Patch:          libatomic-ops-1.2-s390-fix.diff
Patch1:         libatomic_ops-1.2-ppclwzfix.patch
Patch2:         libatomic_ops-1.2-am.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package provides semi-portable access to hardware provided atomic
memory operations.



%prep
%setup -q -n libatomic_ops-%{version}
%patch
%patch1 -p1
%patch2 -p1

%build
autoreconf -fi
%{?suse_update_config:%{suse_update_config -f}}
%configure
make %{?_smp_mflags}

%install
%makeinstall
# remove unnecessary documents
rm -rf $RPM_BUILD_ROOT%{_datadir}/libatomic_ops

%clean
test "$RPM_BUILD_ROOT" != "/" -a -d "$RPM_BUILD_ROOT" && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc README COPYING AUTHORS ChangeLog
%doc doc/*.txt
%{_libdir}/lib*
%{_includedir}/*

%changelog
openSUSE Build Service is sponsored by