]> git.pld-linux.org Git - packages/acml.git/blame - acml.spec
- new spec; library distribution restricted
[packages/acml.git] / acml.spec
CommitLineData
873dd555
JB
1#
2# Conditional build:
3%bcond_with fma4 # use FMA4-only libraries (run only on AMD Bulldozer CPUs) instead of runtime detection
4#
5Summary: AMD Core Math Library
6Summary(pl.UTF-8): AMD Core Math Library - biblioteka matematyczna AMD
7Name: acml
8%ifarch %{x8664}
9Version: 5.3.0
10%else
11Version: 4.4.0
12%endif
13Release: 1
14License: AMD EULA
15Group: Libraries
16# from http://developer.amd.com/tools/cpu-development/amd-core-math-library-acml/acml-downloads-resources/
17Source0: %{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/
20Source1: %{name}-4-4-0-gfortran-32bit.tgz
21# NoSource1-md5: 1ad4e23f27849728acf305da97e337a4
22NoSource: 0
23NoSource: 1
24URL: http://developer.amd.com/tools/cpu-development/amd-core-math-library-acml/
25ExclusiveArch: %{ix86} %{x8664}
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29ACML - the AMD Core Math Library - is a tuned math library designed
30for high performance on AMD64 machines, including Opteron(TM) and
31Athlon(TM) 64, and includes both 32-bit and 64-bit library versions.
32Different versions are available for Linux, Windows and Solaris
33operating systems.
34
35%description -l pl.UTF-8
36ACML (AMD Core Math Library) to biblioteka matematyczna
37zoptymalizowana pod kątem wydajności na maszynach AMD64, w tym
38procesorach Opteron(TM) i Athlon(TM) 64. Dostępne są 32- i 64-bitowe
39wersje biblioteki dla systemów Linux, Windows i Solaris.
40
41%package devel
42Summary: Header file for ACML libraries
43Summary(pl.UTF-8): Plik nagłówkowy bibliotek ACML
44Group: Development/Libraries
45Requires: %{name} = %{version}-%{release}
46
47%description devel
48Header file for ACML libraries.
49
50%description devel -l pl.UTF-8
51Plik nagłówkowy bibliotek ACML.
52
53%package static
54Summary: Static ACML libraries
55Summary(pl.UTF-8): Statyczne biblioteki ACML
56Group: Development/Libraries
57Requires: %{name}-devel = %{version}-%{release}
58
59%description static
60Static ACML libraries.
61
62%description static -l pl.UTF-8
63Statyczne biblioteki ACML.
64
65%prep
66%ifarch %{x8664}
67%setup -q -c
68tar xzf contents-acml-5-3-0-gfortran-64bit.tgz
69%else
70%setup -q -c -T -a1
71tar xzf contents-acml-4-4-0-gfortran-32bit.tgz
72%endif
73
74%install
75rm -rf $RPM_BUILD_ROOT
76install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir}}
77
78%ifarch %{x8664}
79# all acml.h files are identical
80cp -p gfortran64/include/acml.h $RPM_BUILD_ROOT%{_includedir}
81install gfortran64%{?with_fma4:_fma4}/lib/lib* $RPM_BUILD_ROOT%{_libdir}
82install gfortran64%{?with_fma4:_fma4}_mp/lib/lib* $RPM_BUILD_ROOT%{_libdir}
83%else
84# both acml.h files are identical
85cp -p gfortran32/include/acml.h $RPM_BUILD_ROOT%{_includedir}
86install gfortran32/lib/lib* $RPM_BUILD_ROOT%{_libdir}
87install gfortran32_mp/lib/lib* $RPM_BUILD_ROOT%{_libdir}
88%endif
89
90%clean
91rm -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.110866 seconds and 4 git commands to generate.