File libatomic_ops.spec of Package libatomic_ops

#
# spec file for package libatomic_ops (Version 1.2)
#
# Copyright (c) 2007 Novell Canada, Ltd. Ottawa, Ontario, Canada.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           libatomic_ops

Summary:        Atomic memory update operations
Version:        1.2
Release:        0.pzb
License:        GPL
Group:          Development/Libraries/C and C++
Source:         http://www.hpl.hp.com/research/linux/atomic_ops/download/%{name}-%{version}.tar.gz
URL:            http://www.hpl.hp.com/research/linux/atomic_ops/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This is a dummy package.  The atomic_ops library is only available for static linking (therefore no runtime package).

%debug_package
%package devel
Summary:        Development package for the atomic_ops library
Group:          Development/Libraries/C and C++

%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

%build
autoreconf --force --install
%{?suse_update_config:%{suse_update_config -f}}
%configure
make

%install
%makeinstall
rm -rf "$RPM_BUILD_ROOT%{_datadir}/libatomic_ops"
find "$RPM_BUILD_ROOT"

%post
%run_ldconfig

%postun
%run_ldconfig

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

%files devel
%defattr(-, root, root)
%doc doc/*.txt COPYING NEWS README AUTHORS
%{_libdir}/lib*.*a
%{_includedir}/*.h
%{_includedir}/atomic_ops

%changelog
* Mon Apr 9 2007 pzb@novell.com
- Initial package (based on Fedora Extras)
openSUSE Build Service is sponsored by