]> git.pld-linux.org Git - packages/xblas.git/blob - xblas.spec
- new
[packages/xblas.git] / xblas.spec
1 Summary:        XBLAS - Extra Precise Basic Linear Algebra Subroutines
2 Summary(pl.UTF-8):      XBLAS - procedury BLAS rozszerzonej precyzji
3 Name:           xblas
4 Version:        1.0.248
5 Release:        1
6 License:        BSD
7 Group:          Libraries
8 Source0:        http://www.netlib.org/xblas/%{name}-%{version}.tar.gz
9 # Source0-md5:  990c680fb5e446bb86c10936e4cd7f88
10 URL:            http://www.netlib.org/xblas/
11 BuildRequires:  gcc-fortran
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 The XBLAS library of routines is part of a reference implementation
16 for the Dense and Banded Basic Linear Algebra Subroutines, along with
17 their Extended and Mixed Precision versions, as documented in Chapters
18 2 and 4 of the new BLAS Standard.
19
20 %description -l pl.UTF-8
21 Biblioteka procedur XBLAS to część implementacji referencyjnej
22 standardu Dense and Banded Basic Linear Algebra Subroutines
23 (gęste i pasmowe podstawowe procedury algebry liniowej), wraz z
24 wersjami o rozszerzonej i mieszanej precyzji, zgodna z dokumentacją w
25 rozdziałach 2 i 4 nowego standardu BLAS.
26
27 %package devel
28 Summary:        Header files for XBLAS library
29 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki XBLAS
30 Group:          Development/Libraries
31 Requires:       %{name} = %{version}-%{release}
32
33 %description devel
34 Header files for XBLAS library.
35
36 %description devel -l pl.UTF-8
37 Pliki nagłówkowe biblioteki XBLAS.
38
39 %package static
40 Summary:        Static XBLAS library
41 Summary(pl.UTF-8):      Statyczna biblioteka XBLAS
42 Group:          Development/Libraries
43 Requires:       %{name}-devel = %{version}-%{release}
44
45 %description static
46 Static XBLAS library.
47
48 %description static -l pl.UTF-8
49 Statyczna biblioteka XBLAS.
50
51 %package doc
52 Summary:        XBLAS documentation
53 Summary(pl.UTF-8):      Dokumentacja projektu XBLAS
54 Group:          Documentation
55 %if "%{_rpmversion}" >= "5"
56 BuildArch:      noarch
57 %endif
58
59 %description doc
60 XBLAS documentation.
61
62 %description doc -l pl.UTF-8
63 Dokumentacja projektu XBLAS.
64
65 %prep
66 %setup -q
67
68 %build
69 CFLAGS="%{rpmcflags} -fPIC"
70 %configure \
71         %{!?with_static_libs:--disable-static}
72
73 %{__make} -j1
74
75 %{__cc} -shared -o libxblas.so.%{version} -Wl,-soname,libxblas.so.1 -Wl,--whole-archive libxblas.a -Wl,--no-whole-archive
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/xblas}
80
81 install libxblas.so.%{version} $RPM_BUILD_ROOT%{_libdir}
82 ln -sf libxblas.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libxblas.so.1
83 ln -sf libxblas.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libxblas.so
84 cp -p libxblas.a $RPM_BUILD_ROOT%{_libdir}
85 cp -p src/*.h $RPM_BUILD_ROOT%{_includedir}/xblas
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %post   -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
92
93 %files
94 %defattr(644,root,root,755)
95 %doc LICENSE README
96 %attr(755,root,root) %{_libdir}/libxblas.so.*.*.*
97 %attr(755,root,root) %ghost %{_libdir}/libxblas.so.1
98
99 %files devel
100 %defattr(644,root,root,755)
101 %attr(755,root,root) %{_libdir}/libxblas.so
102 %dir %{_includedir}/xblas
103 %{_includedir}/xblas/blas_*.h
104 %{_includedir}/xblas/f2c-bridge.h
105
106 %files static
107 %defattr(644,root,root,755)
108 %{_libdir}/libxblas.a
109
110 %files doc
111 %defattr(644,root,root,755)
112 %doc doc/report.ps
This page took 0.090992 seconds and 3 git commands to generate.