3 %bcond_with fma4 # use FMA4-only libraries (run only on AMD Bulldozer CPUs) instead of runtime detection
5 Summary: AMD Core Math Library
6 Summary(pl.UTF-8): AMD Core Math Library - biblioteka matematyczna AMD
16 # from http://developer.amd.com/tools/cpu-development/amd-core-math-library-acml/acml-downloads-resources/
17 Source0: %{name}-5-3-0-gfortran-64bit1.tgz
18 # NoSource0-md5: 42707776bcfbfc7100ea30fa7b905750
19 # from http://developer.amd.com/tools/cpu-development/amd-core-math-library-acml/acml-archive-downloads/
20 Source1: %{name}-4-4-0-gfortran-32bit.tgz
21 # NoSource1-md5: 1ad4e23f27849728acf305da97e337a4
24 URL: http://developer.amd.com/tools/cpu-development/amd-core-math-library-acml/
25 ExclusiveArch: %{ix86} %{x8664}
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 ACML - the AMD Core Math Library - is a tuned math library designed
30 for high performance on AMD64 machines, including Opteron(TM) and
31 Athlon(TM) 64, and includes both 32-bit and 64-bit library versions.
32 Different versions are available for Linux, Windows and Solaris
35 %description -l pl.UTF-8
36 ACML (AMD Core Math Library) to biblioteka matematyczna
37 zoptymalizowana pod kątem wydajności na maszynach AMD64, w tym
38 procesorach Opteron(TM) i Athlon(TM) 64. Dostępne są 32- i 64-bitowe
39 wersje biblioteki dla systemów Linux, Windows i Solaris.
42 Summary: Header file for ACML libraries
43 Summary(pl.UTF-8): Plik nagłówkowy bibliotek ACML
44 Group: Development/Libraries
45 Requires: %{name} = %{version}-%{release}
48 Header file for ACML libraries.
50 %description devel -l pl.UTF-8
51 Plik nagłówkowy bibliotek ACML.
54 Summary: Static ACML libraries
55 Summary(pl.UTF-8): Statyczne biblioteki ACML
56 Group: Development/Libraries
57 Requires: %{name}-devel = %{version}-%{release}
60 Static ACML libraries.
62 %description static -l pl.UTF-8
63 Statyczne biblioteki ACML.
68 tar xzf contents-acml-5-3-0-gfortran-64bit.tgz
71 tar xzf contents-acml-4-4-0-gfortran-32bit.tgz
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir}}
79 # all acml.h files are identical
80 cp -p gfortran64/include/acml.h $RPM_BUILD_ROOT%{_includedir}
81 install gfortran64%{?with_fma4:_fma4}/lib/lib* $RPM_BUILD_ROOT%{_libdir}
82 install gfortran64%{?with_fma4:_fma4}_mp/lib/lib* $RPM_BUILD_ROOT%{_libdir}
84 # both acml.h files are identical
85 cp -p gfortran32/include/acml.h $RPM_BUILD_ROOT%{_includedir}
86 install gfortran32/lib/lib* $RPM_BUILD_ROOT%{_libdir}
87 install gfortran32_mp/lib/lib* $RPM_BUILD_ROOT%{_libdir}
91 rm -rf $RPM_BUILD_ROOT
93 %post -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
97 %defattr(644,root,root,755)
99 %doc ACML-EULA.txt README.64-bit ReleaseNotes
101 %doc ACML-EULA.txt README.32-bit ReleaseNotes
103 %attr(755,root,root) %{_libdir}/libacml.so
104 %attr(755,root,root) %{_libdir}/libacml_mp.so
107 %defattr(644,root,root,755)
109 %{_includedir}/acml.h
112 %defattr(644,root,root,755)
114 %{_libdir}/libacml_mp.a