]> git.pld-linux.org Git - packages/teem.git/blob - teem.spec
015aed1c0cf39000f8d0c9fd4955bb6f18631160
[packages/teem.git] / teem.spec
1 #
2 # Conditional build:
3 %bcond_without  levmar  # LEVMAR optimization algorithm
4 #
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
9 Release:        1
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
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)
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
47 %patch0 -p1
48 %patch1 -p1
49
50 %build
51 %cmake . \
52         -DTeem_FFTW3=ON \
53         %{?with_levmar:-DTeem_LEVMAR=ON}
54 %{__make}
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58
59 %{__make} install \
60         DESTDIR=$RPM_BUILD_ROOT
61
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
This page took 0.059164 seconds and 2 git commands to generate.