| 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
|---|
| 2 | |
|---|
| 3 | Name: libatomic_ops |
|---|
| 4 | Summary: Atomic memory update operations |
|---|
| 5 | Version: 7.4.4 |
|---|
| 6 | Release: 4%{?_dist_release} |
|---|
| 7 | |
|---|
| 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 |
|---|
| 13 | |
|---|
| 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 |
|---|
| 17 | |
|---|
| 18 | ## upstream patches |
|---|
| 19 | # 7.4 branch |
|---|
| 20 | |
|---|
| 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 |
|---|
| 25 | |
|---|
| 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 | |
|---|
| 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 |
|---|
| 41 | Summary: Development files for %{name} |
|---|
| 42 | Requires: %{name}%{?_isa} = %{version}-%{release} |
|---|
| 43 | %description devel |
|---|
| 44 | Files for developing with %{name}. |
|---|
| 45 | |
|---|
| 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. |
|---|
| 51 | |
|---|
| 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. |
|---|
| 62 | |
|---|
| 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 | |
|---|
| 72 | %prep |
|---|
| 73 | %autosetup -p1 |
|---|
| 74 | |
|---|
| 75 | # patch50 introduces rpath (probably due to older libtool), refresh stuff here |
|---|
| 76 | autoreconf -fi |
|---|
| 77 | |
|---|
| 78 | install -m644 -p %{SOURCE1} ./COPYING |
|---|
| 79 | |
|---|
| 80 | |
|---|
| 81 | %build |
|---|
| 82 | %configure \ |
|---|
| 83 | --enable-shared \ |
|---|
| 84 | --disable-silent-rules |
|---|
| 85 | |
|---|
| 86 | make %{?_smp_mflags} |
|---|
| 87 | |
|---|
| 88 | |
|---|
| 89 | %install |
|---|
| 90 | make install DESTDIR=%{buildroot} |
|---|
| 91 | |
|---|
| 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} |
|---|
| 96 | |
|---|
| 97 | |
|---|
| 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} |
|---|
| 104 | |
|---|
| 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 | |
|---|
| 115 | %files devel |
|---|
| 116 | %doc doc/README* |
|---|
| 117 | %{_includedir}/atomic_ops.h |
|---|
| 118 | %{_includedir}/atomic_ops_malloc.h |
|---|
| 119 | %{_includedir}/atomic_ops_stack.h |
|---|
| 120 | %{_includedir}/atomic_ops/ |
|---|
| 121 | %{_libdir}/libatomic_ops.so |
|---|
| 122 | %{_libdir}/libatomic_ops_gpl.so |
|---|
| 123 | %{_libdir}/pkgconfig/atomic_ops.pc |
|---|
| 124 | |
|---|
| 125 | %files static |
|---|
| 126 | %{_libdir}/libatomic_ops.a |
|---|
| 127 | %{_libdir}/libatomic_ops_gpl.a |
|---|
| 128 | |
|---|
| 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* |
|---|
| 134 | |
|---|
| 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 | |
|---|
| 143 | %changelog |
|---|
| 144 | * Sat Jul 2 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 7.4.4-4 |
|---|
| 145 | - added compat32 pachages. |
|---|
| 146 | |
|---|
| 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 | |
|---|
| 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. |
|---|