]> git.pld-linux.org Git - packages/BTF.git/blob - BTF.spec
eb56665cefb68b2ae6c731eb7a88968473c39452
[packages/BTF.git] / BTF.spec
1 Summary:        BTF: permutation to block triangular form
2 Summary(pl.UTF-8):      BTF - permutacja do postaci blokowo trójkątnej
3 Name:           BTF
4 Version:        1.2.0
5 Release:        1
6 License:        LGPL v2.1+
7 Group:          Libraries
8 Source0:        http://www.cise.ufl.edu/research/sparse/btf/%{name}-%{version}.tar.gz
9 # Source0-md5:  00ece872530408f3f5598b0eaa83c7fc
10 Patch0:         %{name}-ufconfig.patch
11 Patch1:         %{name}-shared.patch
12 URL:            http://www.cise.ufl.edu/research/sparse/btf/
13 BuildRequires:  SuiteSparse_config >= 4.0.0
14 BuildRequires:  libtool >= 2:1.5
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 BTF permutes an unsymmetric matrix (square or rectangular) into its
19 block upper triangular form (more precisely, it computes a
20 Dulmage-Mendelsohn decomposition). BTF is required by the KLU package.
21
22 %description -l pl.UTF-8
23 BTF permutuje macierz niesymetryczną (kwadratową lub prostokątną) do
24 postaci górnej blokowo trójkątnej (ściślej mówiąc, oblicza rozkład
25 Dulmage'a-Mendelsohna). Pakiet BTF jest wymagany przez pakiet KLU.
26
27 %package devel
28 Summary:        Header files for BTF library
29 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki BTF
30 Group:          Development/Libraries
31 Requires:       %{name} = %{version}-%{release}
32 Requires:       SuiteSparse_config >= 4.0.0
33
34 %description devel
35 Header files for BTF library.
36
37 %description devel -l pl.UTF-8
38 Pliki nagłówkowe biblioteki BTF.
39
40 %package static
41 Summary:        Static BTF library
42 Summary(pl.UTF-8):      Statyczna biblioteka BTF
43 Group:          Development/Libraries
44 Requires:       %{name}-devel = %{version}-%{release}
45
46 %description static
47 Static BTF library.
48
49 %description static -l pl.UTF-8
50 Statyczna biblioteka BTF.
51
52 %prep
53 %setup -q -n %{name}
54 %patch0 -p1
55 %patch1 -p1
56
57 %build
58 %{__make} \
59         CC="%{__cc}" \
60         CFLAGS="%{rpmcflags}" \
61         LDFLAGS="%{rpmldflags}" \
62         libdir=%{_libdir}
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT%{_includedir}/btf
67
68 %{__make} -C Lib install \
69         DESTDIR=$RPM_BUILD_ROOT \
70         libdir=%{_libdir}
71
72 install Include/*.h $RPM_BUILD_ROOT%{_includedir}/btf
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %post   -p /sbin/ldconfig
78 %postun -p /sbin/ldconfig
79
80 %files
81 %defattr(644,root,root,755)
82 %doc README.txt Doc/ChangeLog
83 %attr(755,root,root) %{_libdir}/libbtf.so.*.*.*
84 %attr(755,root,root) %ghost %{_libdir}/libbtf.so.0
85
86 %files devel
87 %defattr(644,root,root,755)
88 %attr(755,root,root) %{_libdir}/libbtf.so
89 %{_libdir}/libbtf.la
90 %{_includedir}/btf
91
92 %files static
93 %defattr(644,root,root,755)
94 %{_libdir}/libbtf.a
This page took 0.065688 seconds and 2 git commands to generate.