[10498] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
[10485] | 3 | Name: libatomic_ops |
---|
| 4 | Summary: Atomic memory update operations |
---|
| 5 | Version: 7.4.4 |
---|
[10498] | 6 | Release: 4%{?_dist_release} |
---|
[521] | 7 | |
---|
[10485] | 8 | # libatomic_ops MIT, libatomic_ops_gpl GPLv2 |
---|
| 9 | License: GPLv2 and MIT |
---|
| 10 | URL: http://www.hboehm.info/gc/ |
---|
| 11 | Vendor: Project Vine |
---|
| 12 | Distribution: Vine Linux |
---|
[521] | 13 | |
---|
[10485] | 14 | Source0: http://www.hboehm.info/gc/gc_source/libatomic_ops-%{version}.tar.gz |
---|
| 15 | # updated GPLv2 license text |
---|
| 16 | Source1: http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt |
---|
[521] | 17 | |
---|
[10485] | 18 | ## upstream patches |
---|
| 19 | # 7.4 branch |
---|
[521] | 20 | |
---|
[10485] | 21 | # master branch |
---|
| 22 | #Patch116: 0016-Use-LLD-and-SCD-instructions-on-mips64.patch |
---|
| 23 | ## rebased for 7.4.4 |
---|
| 24 | Patch116: libatomic_ops-7.4.4-Use-LLD-and-SCD-instructions-on-mips64.patch |
---|
[521] | 25 | |
---|
[10485] | 26 | ## upstreamable patches |
---|
| 27 | # https://bugzilla.redhat.com/show_bug.cgi?id=1096574 |
---|
| 28 | Patch500: gc_ppc64le_force_AO_load.patch |
---|
| 29 | |
---|
| 30 | # re-autofoo for patch2 (and others) |
---|
| 31 | BuildRequires: automake libtool |
---|
| 32 | |
---|
[521] | 33 | %description |
---|
| 34 | Provides implementations for atomic memory update operations on a |
---|
| 35 | number of architectures. This allows direct use of these in reasonably |
---|
| 36 | portable code. Unlike earlier similar packages, this one explicitly |
---|
| 37 | considers memory barrier semantics, and allows the construction of code |
---|
| 38 | that involves minimum overhead across a variety of architectures. |
---|
| 39 | |
---|
| 40 | %package devel |
---|
[10485] | 41 | Summary: Development files for %{name} |
---|
| 42 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
[521] | 43 | %description devel |
---|
[10485] | 44 | Files for developing with %{name}. |
---|
[521] | 45 | |
---|
[10485] | 46 | %package static |
---|
| 47 | Summary: Static library files for %{name} |
---|
| 48 | Requires: %{name}-devel%{?_isa} = %{version}-%{release} |
---|
| 49 | %description static |
---|
| 50 | Files for developing with %{name} and linking statically. |
---|
[521] | 51 | |
---|
[10498] | 52 | %package -n compat32-%{name} |
---|
| 53 | Summary: Atomic memory update operations |
---|
| 54 | Group: System Environment/Libraries |
---|
| 55 | Requires: %{name} = %{version}-%{release} |
---|
| 56 | %description -n compat32-%{name} |
---|
| 57 | Provides implementations for atomic memory update operations on a |
---|
| 58 | number of architectures. This allows direct use of these in reasonably |
---|
| 59 | portable code. Unlike earlier similar packages, this one explicitly |
---|
| 60 | considers memory barrier semantics, and allows the construction of code |
---|
| 61 | that involves minimum overhead across a variety of architectures. |
---|
[10485] | 62 | |
---|
[10498] | 63 | %package -n compat32-%{name}-devel |
---|
| 64 | Summary: Development files for %{name} |
---|
| 65 | Group: Development/Libraries |
---|
| 66 | Requires: compat32-%{name} = %{version}-%{release} |
---|
| 67 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 68 | %description -n compat32-%{name}-devel |
---|
| 69 | Files for developing with %{name}. |
---|
| 70 | |
---|
| 71 | |
---|
[521] | 72 | %prep |
---|
[10485] | 73 | %autosetup -p1 |
---|
[521] | 74 | |
---|
[10485] | 75 | # patch50 introduces rpath (probably due to older libtool), refresh stuff here |
---|
| 76 | autoreconf -fi |
---|
| 77 | |
---|
| 78 | install -m644 -p %{SOURCE1} ./COPYING |
---|
| 79 | |
---|
| 80 | |
---|
[521] | 81 | %build |
---|
[10485] | 82 | %configure \ |
---|
| 83 | --enable-shared \ |
---|
| 84 | --disable-silent-rules |
---|
| 85 | |
---|
[521] | 86 | make %{?_smp_mflags} |
---|
| 87 | |
---|
| 88 | |
---|
| 89 | %install |
---|
[10485] | 90 | make install DESTDIR=%{buildroot} |
---|
[521] | 91 | |
---|
[10485] | 92 | ## unpackaged files |
---|
| 93 | rm -fv %{buildroot}%{_libdir}/lib*.la |
---|
| 94 | # omit dup'd docs |
---|
| 95 | rm -fv %{buildroot}%{_datadir}/libatomic_ops/{COPYING,README*,*.txt} |
---|
[521] | 96 | |
---|
| 97 | |
---|
[10485] | 98 | %check |
---|
| 99 | ## ignore failures on powerpc, atomic stack feature not working (#883748) |
---|
| 100 | #ifarch ppc ppc64 ppc64le aarch64 |
---|
| 101 | #global arch_ignore ||: |
---|
| 102 | #endif |
---|
| 103 | make check %{?arch_ignore} |
---|
[521] | 104 | |
---|
[10485] | 105 | %post -p /sbin/ldconfig |
---|
| 106 | %postun -p /sbin/ldconfig |
---|
| 107 | |
---|
| 108 | %files |
---|
| 109 | %license COPYING |
---|
| 110 | %doc doc/LICENSING.txt |
---|
| 111 | %doc AUTHORS ChangeLog README.md |
---|
| 112 | %{_libdir}/libatomic_ops.so.1* |
---|
| 113 | %{_libdir}/libatomic_ops_gpl.so.1* |
---|
| 114 | |
---|
[521] | 115 | %files devel |
---|
[10485] | 116 | %doc doc/README* |
---|
[521] | 117 | %{_includedir}/atomic_ops.h |
---|
| 118 | %{_includedir}/atomic_ops_malloc.h |
---|
| 119 | %{_includedir}/atomic_ops_stack.h |
---|
[10485] | 120 | %{_includedir}/atomic_ops/ |
---|
| 121 | %{_libdir}/libatomic_ops.so |
---|
| 122 | %{_libdir}/libatomic_ops_gpl.so |
---|
| 123 | %{_libdir}/pkgconfig/atomic_ops.pc |
---|
[521] | 124 | |
---|
[10485] | 125 | %files static |
---|
| 126 | %{_libdir}/libatomic_ops.a |
---|
| 127 | %{_libdir}/libatomic_ops_gpl.a |
---|
[521] | 128 | |
---|
[10498] | 129 | %if %{build_compat32} |
---|
| 130 | %files -n compat32-%{name} |
---|
| 131 | %defattr(-,root,root) |
---|
| 132 | %{_libdir}/libatomic_ops.so.1* |
---|
| 133 | %{_libdir}/libatomic_ops_gpl.so.1* |
---|
[10485] | 134 | |
---|
[10498] | 135 | %files -n compat32-%{name}-devel |
---|
| 136 | %defattr(-,root,root) |
---|
| 137 | %{_libdir}/libatomic_ops.so |
---|
| 138 | %{_libdir}/libatomic_ops_gpl.so |
---|
| 139 | %{_libdir}/pkgconfig/atomic_ops.pc |
---|
| 140 | %endif |
---|
| 141 | |
---|
| 142 | |
---|
[521] | 143 | %changelog |
---|
[10498] | 144 | * Sat Jul 2 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 7.4.4-4 |
---|
| 145 | - added compat32 pachages. |
---|
| 146 | |
---|
[10485] | 147 | * Sat Jul 2 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 7.4.4-3 |
---|
| 148 | - fixed %%changelog. |
---|
| 149 | |
---|
| 150 | * Fri Jul 1 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 7.4.4-2 |
---|
| 151 | - imported all atuff from rawhide. |
---|
| 152 | |
---|
| 153 | * Fri Jun 17 2016 Rex Dieter <rdieter@fedoraproject.org> - 7.4.4-1 |
---|
| 154 | - libatomic_ops-7.4.4 (#1346524) |
---|
| 155 | |
---|
| 156 | * Mon Mar 28 2016 Rex Dieter <rdieter@fedoraproject.org> 7.4.2-9 |
---|
| 157 | - make check fails on test_stack for ppc64le arch (#1096574), drop reference to 0032.patch |
---|
| 158 | |
---|
| 159 | * Mon Mar 28 2016 Rex Dieter <rdieter@fedoraproject.org> - 7.4.2-8 |
---|
| 160 | - pull in upstream (7.4 branch) fixes |
---|
| 161 | - Add support for 64-bit MIPS (#1317509) |
---|
| 162 | - use %%license |
---|
| 163 | |
---|
| 164 | * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 7.4.2-7 |
---|
| 165 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
---|
| 166 | |
---|
| 167 | * Tue Jul 7 2015 Peter Robinson <pbrobinson@fedoraproject.org> 7.4.2-6 |
---|
| 168 | - Don't fail check on aarch64 |
---|
| 169 | |
---|
| 170 | * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.4.2-5 |
---|
| 171 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild |
---|
| 172 | |
---|
| 173 | * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.4.2-4 |
---|
| 174 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild |
---|
| 175 | |
---|
| 176 | * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.4.2-3 |
---|
| 177 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
---|
| 178 | |
---|
| 179 | * Tue May 13 2014 Rex Dieter <rdieter@fedoraproject.org> 7.4.2-2 |
---|
| 180 | - link libatomic_ops_gpl against libatomic_ops for missing symbol(s) |
---|
| 181 | |
---|
| 182 | * Tue May 13 2014 Rex Dieter <rdieter@fedoraproject.org> 7.4.2-1 |
---|
| 183 | - libatomic_opts-7.4.2 |
---|
| 184 | - new upstream/source URLs |
---|
| 185 | - %%check: skip ppc64le too |
---|
| 186 | - License: MIT and GPLv2 |
---|
| 187 | - update/longer %%description |
---|
| 188 | - updated GPLv2 license text (with correct address) |
---|
| 189 | |
---|
| 190 | * Wed Dec 04 2013 Rex Dieter <rdieter@fedoraproject.org> 7.4.0-1 |
---|
| 191 | - separate libatomic_ops lives again! |
---|
| 192 | |
---|
| 193 | * Fri Jul 24 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.2-8.gc |
---|
| 194 | - use gc tarball, tag gc release |
---|
| 195 | |
---|
| 196 | * Thu Jul 23 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.2-7 |
---|
| 197 | - devel: Provides: %%name-static ... |
---|
| 198 | - consolidate %%doc's |
---|
| 199 | - %%files: track libs |
---|
| 200 | |
---|
| 201 | * Wed May 20 2009 Dan Horak <dan[t]danny.cz> - 1.2-6 |
---|
| 202 | - added fix for s390 |
---|
| 203 | |
---|
| 204 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-5 |
---|
| 205 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 206 | |
---|
| 207 | * Thu May 22 2008 Jon Stanley <jonstanley@gmail.com> - 1.2-4 |
---|
| 208 | - Fix license tag |
---|
| 209 | |
---|
[521] | 210 | * Thu Jul 10 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2-1 |
---|
| 211 | - initial build for Vine Linux |
---|
| 212 | |
---|
| 213 | * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2-3 |
---|
| 214 | - Autorebuild for GCC 4.3 |
---|
| 215 | |
---|
| 216 | * Tue May 29 2007 Pierre Ossman <drzeus@drzeus.cx> 1.2-2 |
---|
| 217 | - Added fix for PPC AO_load_acquire. |
---|
| 218 | |
---|
| 219 | * Fri Nov 10 2006 Pierre Ossman <drzeus@drzeus.cx> 1.2-1 |
---|
| 220 | - Update to 1.2. |
---|
| 221 | |
---|
| 222 | * Sat Sep 9 2006 Pierre Ossman <drzeus@drzeus.cx> 1.1-2 |
---|
| 223 | - Fix naming of package. |
---|
| 224 | - General cleanup of spec file. |
---|
| 225 | |
---|
| 226 | * Wed Aug 30 2006 Pierre Ossman <drzeus@drzeus.cx> 1.1-1 |
---|
| 227 | - Initial package for Fedora Extras. |
---|