]>
Commit | Line | Data |
---|---|---|
9e81d798 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without levmar # LEVMAR optimization algorithm | |
4 | # | |
f9e6cef4 JB |
5 | Summary: Teem - tools to process and visualize scientific data and images |
6 | Summary(pl.UTF-8): Teem - narzędzia do przetwarzania i wizualizacji danych i obrazów naukowych | |
7 | Name: teem | |
8 | Version: 1.11.0 | |
f1d86642 | 9 | Release: 2 |
f9e6cef4 JB |
10 | License: SLUL v1 (LGPL v2.1+ with linking exception) |
11 | Group: Libraries | |
12 | Source0: http://downloads.sourceforge.net/teem/%{name}-%{version}-src.tar.gz | |
13 | # Source0-md5: 6b9737e8b7640e18eaf281e830fe59d1 | |
2c37ab6f | 14 | Patch0: %{name}-lib.patch |
9e81d798 | 15 | Patch1: %{name}-levmar.patch |
f9e6cef4 JB |
16 | URL: http://teem.sourceforge.net/ |
17 | BuildRequires: bzip2-devel | |
18 | BuildRequires: cmake >= 2.4 | |
19 | BuildRequires: fftw3-devel | |
9e81d798 | 20 | %{?with_levmar:BuildRequires: levmar-devel} |
f9e6cef4 JB |
21 | BuildRequires: libpng-devel |
22 | BuildRequires: rpmbuild(macros) >= 1.605 | |
23 | BuildRequires: zlib-devel | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | Teem - tools to process and visualize scientific data and images. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | Teem - narzędzia do przetwarzania i wizualizacji danych i obrazów | |
31 | naukowych. | |
32 | ||
33 | %package devel | |
34 | Summary: Header files for Teem library | |
35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Teem | |
36 | Group: Development/Libraries | |
37 | Requires: %{name} = %{version}-%{release} | |
38 | ||
39 | %description devel | |
40 | Header files for Teem library. | |
41 | ||
42 | %description devel -l pl.UTF-8 | |
43 | Pliki nagłówkowe biblioteki Teem. | |
44 | ||
45 | %prep | |
46 | %setup -q -n %{name}-%{version}-src | |
2c37ab6f | 47 | %patch0 -p1 |
9e81d798 | 48 | %patch1 -p1 |
f9e6cef4 JB |
49 | |
50 | %build | |
51 | %cmake . \ | |
9e81d798 JB |
52 | -DTeem_FFTW3=ON \ |
53 | %{?with_levmar:-DTeem_LEVMAR=ON} | |
f9e6cef4 JB |
54 | %{__make} |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
f9e6cef4 JB |
58 | |
59 | %{__make} install \ | |
60 | DESTDIR=$RPM_BUILD_ROOT | |
61 | ||
f9e6cef4 JB |
62 | %clean |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %post -p /sbin/ldconfig | |
66 | %postun -p /sbin/ldconfig | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc LICENSE.txt README.txt | |
71 | %attr(755,root,root) %{_bindir}/gprobe | |
72 | %attr(755,root,root) %{_bindir}/ilk | |
73 | %attr(755,root,root) %{_bindir}/miter | |
74 | %attr(755,root,root) %{_bindir}/mrender | |
75 | %attr(755,root,root) %{_bindir}/nrrdSanity | |
76 | %attr(755,root,root) %{_bindir}/overrgb | |
77 | %attr(755,root,root) %{_bindir}/puller | |
78 | %attr(755,root,root) %{_bindir}/tend | |
79 | %attr(755,root,root) %{_bindir}/unu | |
80 | %attr(755,root,root) %{_bindir}/vprobe | |
81 | %attr(755,root,root) %{_libdir}/libteem.so.*.*.* | |
82 | %attr(755,root,root) %ghost %{_libdir}/libteem.so.1 | |
83 | ||
84 | %files devel | |
85 | %defattr(644,root,root,755) | |
86 | %attr(755,root,root) %{_libdir}/libteem.so | |
87 | %{_includedir}/teem | |
88 | %{_libdir}/cmake/teem |