Browse Source

libatomic_ops-7.4.4-3

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@10485 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 7 years ago
parent
commit
8cf775b922
1 changed files with 138 additions and 35 deletions
  1. 138 35
      lib/liba/libatomic_ops/libatomic_ops-vl.spec

+ 138 - 35
lib/liba/libatomic_ops/libatomic_ops-vl.spec

@@ -1,20 +1,32 @@
-# No debug information gets generated from a static lib, so
-# debuginfo will be empty.
-%define debug_package %{nil}
+Name:         libatomic_ops
+Summary:      Atomic memory update operations
+Version:      7.4.4
+Release:      3%{?_dist_release}
 
-Summary:        Atomic memory update operations
-Name:           libatomic_ops
-Version:        1.2
-Release:        1%{?_dist_release}
+# libatomic_ops MIT, libatomic_ops_gpl GPLv2
+License: GPLv2 and MIT
+URL:          http://www.hboehm.info/gc/
+Vendor:       Project Vine
+Distribution: Vine Linux
 
-Group:          Development/Libraries
-License:        GPL/MIT
-URL:            http://www.hpl.hp.com/research/linux/atomic_ops/
-Source0:        http://www.hpl.hp.com/research/linux/atomic_ops/download/%{name}-%{version}.tar.gz
-Patch1:		libatomic_ops-1.2-ppclwzfix.patch
+Source0: http://www.hboehm.info/gc/gc_source/libatomic_ops-%{version}.tar.gz
+# updated GPLv2 license text
+Source1: http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
 
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+## upstream patches
+# 7.4 branch
 
+# master branch
+#Patch116: 0016-Use-LLD-and-SCD-instructions-on-mips64.patch
+## rebased for 7.4.4
+Patch116: libatomic_ops-7.4.4-Use-LLD-and-SCD-instructions-on-mips64.patch
+
+## upstreamable patches
+# https://bugzilla.redhat.com/show_bug.cgi?id=1096574
+Patch500: gc_ppc64le_force_AO_load.patch
+
+# re-autofoo for patch2 (and others)
+BuildRequires: automake libtool
 
 %description
 Provides implementations for atomic memory update operations on a
@@ -23,50 +35,141 @@ 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
-
+Summary: Development files for %{name}
+Requires: %{name}%{?_isa} = %{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.
+Files for developing with %{name}.
+
+%package static
+Summary: Static library files for %{name}
+Requires: %{name}-devel%{?_isa} = %{version}-%{release}
+%description static
+Files for developing with %{name} and linking statically.
 
 
 %prep
-%setup -q
-%patch1 -p1
-chmod a-x src/*.h
+%autosetup -p1
+
+# patch50 introduces rpath (probably due to older libtool), refresh stuff here
+autoreconf -fi
+
+install -m644 -p %{SOURCE1} ./COPYING
+
 
 %build
-%configure
+%configure \
+  --enable-shared \
+  --disable-silent-rules
+
 make %{?_smp_mflags}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
+make install DESTDIR=%{buildroot}
 
+## unpackaged files
+rm -fv %{buildroot}%{_libdir}/lib*.la
+# omit dup'd docs
+rm -fv %{buildroot}%{_datadir}/libatomic_ops/{COPYING,README*,*.txt}
 
-%clean
-rm -rf $RPM_BUILD_ROOT
 
+%check
+## ignore failures on powerpc, atomic stack feature not working (#883748)
+#ifarch ppc ppc64 ppc64le aarch64
+#global arch_ignore ||:
+#endif
+make check %{?arch_ignore}
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%license COPYING
+%doc doc/LICENSING.txt
+%doc AUTHORS ChangeLog README.md
+%{_libdir}/libatomic_ops.so.1*
+%{_libdir}/libatomic_ops_gpl.so.1*
 
 %files devel
-%defattr(-,root,root,-)
-%doc AUTHORS ChangeLog COPYING INSTALL NEWS README
+%doc doc/README*
 %{_includedir}/atomic_ops.h
 %{_includedir}/atomic_ops_malloc.h
 %{_includedir}/atomic_ops_stack.h
-%{_includedir}/atomic_ops
-%{_libdir}/%{name}*.a
-%{_datadir}/%{name}
+%{_includedir}/atomic_ops/
+%{_libdir}/libatomic_ops.so
+%{_libdir}/libatomic_ops_gpl.so
+%{_libdir}/pkgconfig/atomic_ops.pc
+
+%files static
+%{_libdir}/libatomic_ops.a
+%{_libdir}/libatomic_ops_gpl.a
 
 
 %changelog
+* Sat Jul  2 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 7.4.4-3
+- fixed %%changelog.
+
+* Fri Jul  1 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 7.4.4-2
+- imported all atuff from rawhide.
+
+  * Fri Jun 17 2016 Rex Dieter <rdieter@fedoraproject.org> - 7.4.4-1
+  - libatomic_ops-7.4.4 (#1346524)
+
+  * Mon Mar 28 2016 Rex Dieter <rdieter@fedoraproject.org> 7.4.2-9
+  - make check fails on test_stack for ppc64le arch (#1096574), drop reference to 0032.patch
+
+  * Mon Mar 28 2016 Rex Dieter <rdieter@fedoraproject.org> - 7.4.2-8
+  - pull in upstream (7.4 branch) fixes
+  - Add support for 64-bit MIPS (#1317509)
+  - use %%license
+
+  * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 7.4.2-7
+  - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
+
+  * Tue Jul  7 2015 Peter Robinson <pbrobinson@fedoraproject.org> 7.4.2-6
+  - Don't fail check on aarch64
+
+  * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.4.2-5
+  - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
+
+  * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.4.2-4
+  - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
+
+  * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.4.2-3
+  - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+
+  * Tue May 13 2014 Rex Dieter <rdieter@fedoraproject.org> 7.4.2-2
+  - link libatomic_ops_gpl against libatomic_ops for missing symbol(s)
+
+  * Tue May 13 2014 Rex Dieter <rdieter@fedoraproject.org> 7.4.2-1
+  - libatomic_opts-7.4.2
+  - new upstream/source URLs
+  - %%check: skip ppc64le too
+  - License: MIT and GPLv2
+  - update/longer %%description
+  - updated GPLv2 license text (with correct address)
+
+  * Wed Dec 04 2013 Rex Dieter <rdieter@fedoraproject.org>  7.4.0-1
+  - separate libatomic_ops lives again!
+
+  * 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
+
 * Thu Jul 10 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2-1
 - initial build for Vine Linux