]>
Commit | Line | Data |
---|---|---|
d38a66ce JB |
1 | Summary: Atomic operations implementation |
2 | Summary(pl.UTF-8): Implementacja operacji atomowych | |
3 | Name: libatomic_ops | |
a6677f7f | 4 | Version: 7.8.2 |
09e8033b | 5 | Release: 1 |
d38a66ce | 6 | License: MIT-like (libatomic_ops), GPL v2+ (libatomic_ops_gpl) |
75d10eb4 | 7 | Group: Libraries |
09e8033b | 8 | #Source0Download: https://github.com/ivmai/libatomic_ops/wiki/Download |
d7ef5bce | 9 | Source0: https://github.com/ivmai/libatomic_ops/releases/download/v%{version}/%{name}-%{version}.tar.gz |
a6677f7f | 10 | # Source0-md5: d07b3d8369d7f9efdca59f7501dd1117 |
09e8033b | 11 | URL: https://github.com/ivmai/libatomic_ops/ |
d38a66ce JB |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
13 | ||
14 | %description | |
15 | Provides implementations for atomic memory update operations on a | |
16 | number of architectures. This allows direct use of these in reasonably | |
17 | portable code. Unlike earlier similar packages, this one explicitly | |
18 | considers memory barrier semantics, and allows the construction of | |
19 | code that involves minimum overhead across a variety of architectures. | |
20 | ||
21 | %description -l pl.UTF-8 | |
22 | Pakiet udostępnia implementacja atomowych operacji uaktualnień pamięci | |
23 | dla wielu architektur. Pozwala to na ich bezpośrednie wykorzystanie we | |
24 | w miarę przenośnym kodzie. W przeciwieństwie do innych podobnych | |
25 | pakietów ten uwzględnia semantykę barier pamięciowych i pozwala na | |
26 | konstruowanie kodu na wielu różnych architekturach z minimalnym | |
27 | narzutem. | |
28 | ||
75d10eb4 JB |
29 | %package devel |
30 | Summary: Header files for libatomic_ops libraries | |
31 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek libatomic_ops | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description devel | |
36 | Header files for libatomic_ops libraries. | |
37 | ||
38 | %description devel -l pl.UTF-8 | |
39 | Pliki nagłówkowe bibliotek libatomic_ops. | |
40 | ||
41 | %package static | |
42 | Summary: Static libatomic_ops libraries | |
43 | Summary(pl.UTF-8): Statyczne biblioteki libatomic_ops | |
44 | Group: Development/Libraries | |
45 | Requires: %{name}-devel = %{version}-%{release} | |
46 | ||
47 | %description static | |
48 | Static libatomic_ops libraries. | |
49 | ||
50 | %description static -l pl.UTF-8 | |
51 | Statyczne biblioteki libatomic_ops. | |
52 | ||
d38a66ce | 53 | %prep |
75d10eb4 | 54 | %setup -q |
d38a66ce JB |
55 | |
56 | %build | |
75d10eb4 JB |
57 | %configure \ |
58 | --enable-shared | |
d38a66ce JB |
59 | %{__make} |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %{__make} install \ | |
65 | DESTDIR=$RPM_BUILD_ROOT | |
66 | ||
75d10eb4 | 67 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libatomic*.la |
d7ef5bce | 68 | # packaged as %doc |
366bdb79 | 69 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/libatomic_ops/{AUTHORS,COPYING,ChangeLog,LICENSE,README.md,README*.txt} |
09e8033b | 70 | |
d38a66ce JB |
71 | %clean |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
75d10eb4 JB |
74 | %post -p /sbin/ldconfig |
75 | %postun -p /sbin/ldconfig | |
76 | ||
d38a66ce JB |
77 | %files |
78 | %defattr(644,root,root,755) | |
366bdb79 | 79 | %doc AUTHORS ChangeLog LICENSE README.md README_details.txt README_malloc.txt README_stack.txt |
75d10eb4 JB |
80 | %attr(755,root,root) %{_libdir}/libatomic_ops.so.*.*.* |
81 | %attr(755,root,root) %ghost %{_libdir}/libatomic_ops.so.1 | |
82 | %attr(755,root,root) %{_libdir}/libatomic_ops_gpl.so.*.*.* | |
83 | %attr(755,root,root) %ghost %{_libdir}/libatomic_ops_gpl.so.1 | |
84 | ||
85 | %files devel | |
86 | %defattr(644,root,root,755) | |
87 | %attr(755,root,root) %{_libdir}/libatomic_ops.so | |
88 | %attr(755,root,root) %{_libdir}/libatomic_ops_gpl.so | |
d38a66ce JB |
89 | %{_includedir}/atomic_ops*.h |
90 | %{_includedir}/atomic_ops | |
1ccd3ff4 | 91 | %{_pkgconfigdir}/atomic_ops.pc |
75d10eb4 JB |
92 | |
93 | %files static | |
94 | %defattr(644,root,root,755) | |
95 | %{_libdir}/libatomic_ops.a | |
96 | %{_libdir}/libatomic_ops_gpl.a |