]> git.pld-linux.org Git - packages/CXSparse.git/blob - CXSparse.spec
- pl
[packages/CXSparse.git] / CXSparse.spec
1 Summary:        CXSparse: extended version of a concise sparse matrix package
2 Summary(pl.UTF-8):      CXSparse - rozszerzona wersja pakietu do macierzy rzadkich
3 Name:           CXSparse
4 Version:        0
5 Release:        1
6 License:        LGPL
7 Group:          Libraries
8 Source0:        http://www.cise.ufl.edu/research/sparse/CXSparse/%{name}.tar.gz
9 # Source0-md5:  b8061452b75014dee69e5c5fc33cfd25
10 Patch0:         %{name}-ufconfig.patch
11 Patch1:         %{name}-shared.patch
12 URL:            http://www.cise.ufl.edu/research/sparse/CXSparse/
13 BuildRequires:  UFconfig
14 BuildRequires:  gcc-fortran
15 BuildRequires:  libtool >= 2:1.5
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 CXSparse is an extended version of CSparse - a small yet feature-rich
20 sparse matrix package, with support for double or complex matrices,
21 with int or long integers.
22
23 %description -l pl.UTF-8
24 CXSparse to rozszerzona wersja CSparse - małego, ale mającego wiele
25 możliwości pakietu do macierzy rzadkich z obsługą macierzy typu double
26 i zespolonych, z liczbami int i long.
27
28 %package devel
29 Summary:        Header files for CXSparse library
30 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki CXSparse
31 Group:          Development/Libraries
32 Requires:       %{name} = %{version}-%{release}
33 Requires:       UFconfig
34
35 %description devel
36 Header files for CXSparse library.
37
38 %description devel -l pl.UTF-8
39 Pliki nagłówkowe biblioteki CXSparse.
40
41 %package static
42 Summary:        Static CXSparse library
43 Summary(pl.UTF-8):      Statyczna biblioteka CXSparse
44 Group:          Development/Libraries
45 Requires:       %{name}-devel = %{version}-%{release}
46
47 %description static
48 Static CXSparse library.
49
50 %description static -l pl.UTF-8
51 Statyczna biblioteka CXSparse.
52
53 %prep
54 %setup -q -n %{name}
55 %patch0 -p1
56 %patch1 -p1
57
58 %build
59 %{__make} \
60         CC="%{__cc}" \
61         F77="gfortran" \
62         CFLAGS="%{rpmcflags} -fPIC" \
63         LDFLAGS="%{rpmldflags}" \
64         libdir=%{_libdir}
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT%{_includedir}/cxsparse
69
70 %{__make} -C Lib install \
71         DESTDIR=$RPM_BUILD_ROOT \
72         libdir=%{_libdir}
73
74 install Include/*.h $RPM_BUILD_ROOT%{_includedir}/cxsparse
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %post   -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
81
82 %files
83 %defattr(644,root,root,755)
84 %doc README.txt
85 %attr(755,root,root) %{_libdir}/libcxsparse.so.*.*.*
86
87 %files devel
88 %defattr(644,root,root,755)
89 %attr(755,root,root) %{_libdir}/libcxsparse.so
90 %{_libdir}/libcxsparse.la
91 %{_includedir}/cxsparse
92
93 %files static
94 %defattr(644,root,root,755)
95 %{_libdir}/libcxsparse.a
This page took 0.085126 seconds and 3 git commands to generate.