libatomic_ops is provided by gc (as of gc-7.2)

This commit is contained in:
Rex Dieter 2010-01-20 17:49:46 +00:00
parent 0726d173c3
commit aa0cdee63f
6 changed files with 1 additions and 145 deletions

View File

@ -1,2 +0,0 @@
gc-7.1.tar.gz
libatomic_ops-1.2.tar.gz

1
dead.package Normal file
View File

@ -0,0 +1 @@
libatomic_ops is provided by gc (as of gc-7.2)

View File

@ -1,11 +0,0 @@
--- libatomic_ops-1.2.orig/src/atomic_ops/sysdeps/gcc/powerpc.h 2007-05-29 19:29:52.000000000 +0200
+++ libatomic_ops-1.2/src/atomic_ops/sysdeps/gcc/powerpc.h 2007-05-29 19:30:48.000000000 +0200
@@ -72,7 +72,7 @@
/* registers. I always got "impossible constraint" when I */
/* tried the "y" constraint. */
__asm__ __volatile__ (
- "lwz %0,%1\n"
+ "lwz%U1%X1 %0,%1\n"
"cmpw cr7,%0,%0\n"
"bne- cr7,1f\n"
"1: isync\n"

View File

@ -1,14 +0,0 @@
diff -Nrup libatomic_ops-1.2.orig/src/atomic_ops/sysdeps/gcc/s390.h libatomic_ops-1.2/src/atomic_ops/sysdeps/gcc/s390.h
--- libatomic_ops-1.2.orig/src/atomic_ops/sysdeps/gcc/s390.h 2009-05-20 10:22:59.000000000 +0200
+++ libatomic_ops-1.2/src/atomic_ops/sysdeps/gcc/s390.h 2005-01-11 01:19:06.000000000 +0100
@@ -30,8 +30,8 @@
/* may be delayed. Otherwise everything is ordered. */
/* - There is a hardware compare-and-swap (CS) instruction. */
-#include "ordered_except_wr.h"
-#include "all_aligned_atomic_load_store.h"
+#include "../ordered_except_wr.h"
+#include "../all_aligned_atomic_load_store.h"
#include "../test_and_set_t_is_ao_t.h"
/* FIXME: Is there a way to do byte-sized test-and-set? */

View File

@ -1,117 +0,0 @@
%define gc_version 7.1
Name: libatomic_ops
Version: 1.2
Release: 8.gc%{?dist}
Summary: Atomic memory update operations
Group: Development/Libraries
License: GPLv2+ and MIT
URL: http://www.hpl.hp.com/research/linux/atomic_ops/
%if 0%{?gc_version:1}
Source0: http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-%{gc_version}.tar.gz
%else
Source0: http://www.hpl.hp.com/research/linux/atomic_ops/download/%{name}-%{version}.tar.gz
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch1: libatomic_ops-1.2-ppclwzfix.patch
Patch2: libatomic_ops-1.2-s390-include.patch
# No debug information gets generated from a static lib, so
# debuginfo will be empty.
%define debug_package %{nil}
%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: Atomic memory update operations
Group: Development/Libraries
Provides: %{name}-static = %{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 -n gc-%{gc_version}/libatomic_ops-%{version}
%if ! 0%{?gc_version:1}
# already fixed in gc version
%patch1 -p1
%endif
%patch2 -p1
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
# omit dup'd docs
rm -rf $RPM_BUILD_ROOT%{_datadir}/libatomic_ops/{COPYING,*.txt}
%clean
rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%doc doc/*.txt
%{_includedir}/atomic_ops.h
%{_includedir}/atomic_ops_malloc.h
%{_includedir}/atomic_ops_stack.h
%{_includedir}/atomic_ops/
%{_libdir}/libatomic_ops.a
%{_libdir}/libatomic_ops_gpl.a
%changelog
* Fri Jul 24 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.2-8.gc
- use gc tarball, tag gc release
* Thu Jul 23 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.2-7
- devel: Provides: %%name-static ...
- consolidate %%doc's
- %%files: track libs
* Wed May 20 2009 Dan Horak <dan[t]danny.cz> - 1.2-6
- added fix for s390
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Thu May 22 2008 Jon Stanley <jonstanley@gmail.com> - 1.2-4
- Fix license tag
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2-3
- Autorebuild for GCC 4.3
* Tue May 29 2007 Pierre Ossman <drzeus@drzeus.cx> 1.2-2
- Added fix for PPC AO_load_acquire.
* Fri Nov 10 2006 Pierre Ossman <drzeus@drzeus.cx> 1.2-1
- Update to 1.2.
* Sat Sep 9 2006 Pierre Ossman <drzeus@drzeus.cx> 1.1-2
- Fix naming of package.
- General cleanup of spec file.
* Wed Aug 30 2006 Pierre Ossman <drzeus@drzeus.cx> 1.1-1
- Initial package for Fedora Extras.

View File

@ -1 +0,0 @@
2ff9924c7249ef7f736ecfe6f08f3f9b gc-7.1.tar.gz