]> git.pld-linux.org Git - packages/xblas.git/blob - xblas.spec
- unconditional noarch subpackages
[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 BuildArch:      noarch
56
57 %description doc
58 XBLAS documentation.
59
60 %description doc -l pl.UTF-8
61 Dokumentacja projektu XBLAS.
62
63 %prep
64 %setup -q
65
66 %build
67 CFLAGS="%{rpmcflags} -fPIC"
68 %configure \
69         %{!?with_static_libs:--disable-static}
70
71 %{__make} -j1
72
73 %{__cc} -shared -o libxblas.so.%{version} -Wl,-soname,libxblas.so.1 -Wl,--whole-archive libxblas.a -Wl,--no-whole-archive
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/xblas}
78
79 install libxblas.so.%{version} $RPM_BUILD_ROOT%{_libdir}
80 ln -sf libxblas.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libxblas.so.1
81 ln -sf libxblas.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libxblas.so
82 cp -p libxblas.a $RPM_BUILD_ROOT%{_libdir}
83 cp -p src/*.h $RPM_BUILD_ROOT%{_includedir}/xblas
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %post   -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
90
91 %files
92 %defattr(644,root,root,755)
93 %doc LICENSE README
94 %attr(755,root,root) %{_libdir}/libxblas.so.*.*.*
95 %attr(755,root,root) %ghost %{_libdir}/libxblas.so.1
96
97 %files devel
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_libdir}/libxblas.so
100 %dir %{_includedir}/xblas
101 %{_includedir}/xblas/blas_*.h
102 %{_includedir}/xblas/f2c-bridge.h
103
104 %files static
105 %defattr(644,root,root,755)
106 %{_libdir}/libxblas.a
107
108 %files doc
109 %defattr(644,root,root,755)
110 %doc doc/report.ps
This page took 0.065893 seconds and 4 git commands to generate.