]> git.pld-linux.org Git - packages/acml.git/blob - acml.spec
- new spec; library distribution restricted
[packages/acml.git] / acml.spec
1 #
2 # Conditional build:
3 %bcond_with     fma4    # use FMA4-only libraries (run only on AMD Bulldozer CPUs) instead of runtime detection
4 #
5 Summary:        AMD Core Math Library
6 Summary(pl.UTF-8):      AMD Core Math Library - biblioteka matematyczna AMD
7 Name:           acml
8 %ifarch %{x8664}
9 Version:        5.3.0
10 %else
11 Version:        4.4.0
12 %endif
13 Release:        1
14 License:        AMD EULA
15 Group:          Libraries
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
22 NoSource:       0
23 NoSource:       1
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)
27
28 %description
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
33 operating systems.
34
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.
40
41 %package devel
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}
46
47 %description devel
48 Header file for ACML libraries.
49
50 %description devel -l pl.UTF-8
51 Plik nagłówkowy bibliotek ACML.
52
53 %package static
54 Summary:        Static ACML libraries
55 Summary(pl.UTF-8):      Statyczne biblioteki ACML
56 Group:          Development/Libraries
57 Requires:       %{name}-devel = %{version}-%{release}
58
59 %description static
60 Static ACML libraries.
61
62 %description static -l pl.UTF-8
63 Statyczne biblioteki ACML.
64
65 %prep
66 %ifarch %{x8664}
67 %setup -q -c
68 tar xzf contents-acml-5-3-0-gfortran-64bit.tgz
69 %else
70 %setup -q -c -T -a1
71 tar xzf contents-acml-4-4-0-gfortran-32bit.tgz
72 %endif
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir}}
77
78 %ifarch %{x8664}
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}
83 %else
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}
88 %endif
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %post   -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
95
96 %files
97 %defattr(644,root,root,755)
98 %ifarch %{x8664}
99 %doc ACML-EULA.txt README.64-bit ReleaseNotes
100 %else
101 %doc ACML-EULA.txt README.32-bit ReleaseNotes
102 %endif
103 %attr(755,root,root) %{_libdir}/libacml.so
104 %attr(755,root,root) %{_libdir}/libacml_mp.so
105
106 %files devel
107 %defattr(644,root,root,755)
108 %doc Doc/acml.pdf
109 %{_includedir}/acml.h
110
111 %files static
112 %defattr(644,root,root,755)
113 %{_libdir}/libacml.a
114 %{_libdir}/libacml_mp.a
This page took 0.06206 seconds and 3 git commands to generate.