3 %bcond_without levmar # LEVMAR optimization algorithm
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
10 License: SLUL v1 (LGPL v2.1+ with linking exception)
12 Source0: http://downloads.sourceforge.net/teem/%{name}-%{version}-src.tar.gz
13 # Source0-md5: 6b9737e8b7640e18eaf281e830fe59d1
14 Patch0: %{name}-lib.patch
15 Patch1: %{name}-levmar.patch
16 URL: http://teem.sourceforge.net/
17 BuildRequires: bzip2-devel
18 BuildRequires: cmake >= 2.4
19 BuildRequires: fftw3-devel
20 %{?with_levmar:BuildRequires: levmar-devel}
21 BuildRequires: libpng-devel
22 BuildRequires: rpmbuild(macros) >= 1.605
23 BuildRequires: zlib-devel
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Teem - tools to process and visualize scientific data and images.
29 %description -l pl.UTF-8
30 Teem - narzędzia do przetwarzania i wizualizacji danych i obrazów
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}
40 Header files for Teem library.
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki Teem.
46 %setup -q -n %{name}-%{version}-src
53 %{?with_levmar:-DTeem_LEVMAR=ON}
57 rm -rf $RPM_BUILD_ROOT
60 DESTDIR=$RPM_BUILD_ROOT
63 rm -rf $RPM_BUILD_ROOT
65 %post -p /sbin/ldconfig
66 %postun -p /sbin/ldconfig
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
85 %defattr(644,root,root,755)
86 %attr(755,root,root) %{_libdir}/libteem.so