]>
Commit | Line | Data |
---|---|---|
ff77f0f9 | 1 | Summary: Generic Programming for Computer Vision |
ce893eac | 2 | Summary(pl.UTF-8): Ogólne programowanie obrazu komputerowego |
ff77f0f9 | 3 | Name: vigra |
c67566a7 | 4 | Version: 1.8.0 |
bc9fc948 | 5 | Release: 2 |
259a4a28 | 6 | License: MIT |
ff77f0f9 | 7 | Group: Libraries |
5cfa7ed0 | 8 | Source0: http://hci.iwr.uni-heidelberg.de/vigra/%{name}-%{version}-src.tar.gz |
c67566a7 | 9 | # Source0-md5: 15c5544448e529ee60020758ab6be264 |
5cfa7ed0 | 10 | URL: http://hci.iwr.uni-heidelberg.de/vigra/ |
c67566a7 | 11 | BuildRequires: boost-python-devel >= 1.40.0 |
5cfa7ed0 JB |
12 | BuildRequires: cmake >= 2.6.0 |
13 | BuildRequires: doxygen | |
c67566a7 JB |
14 | BuildRequires: fftw3-single-devel |
15 | BuildRequires: hdf5-devel >= 1.8 | |
a7865023 | 16 | BuildRequires: libjpeg-devel |
5cfa7ed0 | 17 | BuildRequires: libpng-devel >= 1.4.0 |
f83ee3d9 | 18 | BuildRequires: libstdc++-devel |
a7865023 | 19 | BuildRequires: libtiff-devel |
1d1bcd93 | 20 | BuildRequires: pkgconfig |
5cfa7ed0 | 21 | BuildRequires: python |
5cfa7ed0 JB |
22 | BuildRequires: python-devel |
23 | BuildRequires: python-numpy-devel | |
24 | BuildRequires: rpmbuild(macros) >= 1.586 | |
c67566a7 | 25 | BuildRequires: sphinx-pdg |
a7865023 | 26 | BuildRequires: zlib-devel |
ff77f0f9 | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ff77f0f9 | 28 | |
29 | %description | |
30 | VIGRA stands for "Vision with Generic Algorithms". It's a novel | |
31 | computer vision library that puts its main emphasize on customizable | |
32 | algorithms and data structures. By using template techniques similar | |
33 | to those in the C++ Standard Template Library, you can easily adapt | |
34 | any VIGRA component to the needs of your application, without thereby | |
35 | giving up execution speed. | |
36 | ||
a1e41389 JR |
37 | %description -l pl.UTF-8 |
38 | VIGRA to skrót od "Vision with Generic Algorithms" (widok z ogólnymi | |
39 | algorytmami). Jest to nowa biblioteka do obrazu komputerowego kładąca | |
40 | główny nacisk na algorytmy i struktury danych z możliwością | |
41 | dostosowania do własnych potrzeb. Poprzez użycie technik szablonów | |
42 | podobnych do tych w standardowej bibliotece szablonów C++ (STL) można | |
43 | łatwo zaadaptować dowolny komponent VIGRA do potrzeb własnej aplikacji | |
44 | bez poświęcania szybkości wykonywania. | |
a7865023 | 45 | |
ff77f0f9 | 46 | %package devel |
92c6e0e9 | 47 | Summary: Header files for vigra library |
ce893eac | 48 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki vigra |
92c6e0e9 | 49 | Group: Development/Libraries |
50 | Requires: %{name} = %{version}-%{release} | |
c67566a7 JB |
51 | Requires: fftw3-single-devel |
52 | Requires: hdf5-devel >= 1.8 | |
f83ee3d9 JB |
53 | Requires: libjpeg-devel |
54 | Requires: libpng-devel | |
55 | Requires: libstdc++-devel | |
56 | Requires: libtiff-devel | |
5cfa7ed0 | 57 | Obsoletes: vigra-static |
ff77f0f9 | 58 | |
59 | %description devel | |
60 | Header files needed to compile programs with vigra. | |
61 | ||
a1e41389 JR |
62 | %description devel -l pl.UTF-8 |
63 | Pliki nagłówkowe potrzebne do budowania programów używających | |
a7865023 JB |
64 | biblioteki vigra. |
65 | ||
5cfa7ed0 JB |
66 | %package -n python-vigra |
67 | Summary: VIGRA Python bindings | |
68 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki VIGRA | |
69 | Group: Libraries/Python | |
70 | Requires: %{name} = %{version}-%{release} | |
71 | Requires: python-numpy | |
72 | Suggests: python-PyQt4 | |
ff77f0f9 | 73 | |
5cfa7ed0 JB |
74 | %description -n python-vigra |
75 | VIGRA Python bindings. | |
a7865023 | 76 | |
5cfa7ed0 JB |
77 | %description -n python-vigra -l pl.UTF-8 |
78 | Wiązania Pythona do biblioteki VIGRA. | |
ff77f0f9 | 79 | |
f83ee3d9 JB |
80 | %package doc |
81 | Summary: Development documentation for vigra library | |
ce893eac | 82 | Summary(pl.UTF-8): Dokumentacja programisty do biblioteki vigra |
f83ee3d9 JB |
83 | Group: Documentation |
84 | ||
85 | %description doc | |
86 | Development documentation for vigra library. | |
87 | ||
a1e41389 | 88 | %description doc -l pl.UTF-8 |
f83ee3d9 JB |
89 | Dokumentacja programisty do biblioteki vigra. |
90 | ||
ff77f0f9 | 91 | %prep |
5cfa7ed0 | 92 | %setup -q |
ff77f0f9 | 93 | |
f83ee3d9 | 94 | %build |
5cfa7ed0 JB |
95 | %cmake . \ |
96 | -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" | |
97e428ba | 97 | |
ff77f0f9 | 98 | %{__make} |
99 | ||
ff77f0f9 | 100 | %install |
101 | rm -rf $RPM_BUILD_ROOT | |
f83ee3d9 JB |
102 | |
103 | %{__make} install \ | |
5cfa7ed0 JB |
104 | DESTDIR=$RPM_BUILD_ROOT |
105 | ||
106 | %py_comp $RPM_BUILD_ROOT%{py_sitedir}/vigra | |
107 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}/vigra | |
108 | %py_postclean | |
109 | ||
110 | %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc/vigra* | |
ff77f0f9 | 111 | |
ff77f0f9 | 112 | %clean |
a7865023 JB |
113 | rm -rf $RPM_BUILD_ROOT |
114 | ||
115 | %post -p /sbin/ldconfig | |
116 | %postun -p /sbin/ldconfig | |
ff77f0f9 | 117 | |
118 | %files | |
119 | %defattr(644,root,root,755) | |
4993c24d | 120 | %doc LICENSE.txt README.txt |
5cfa7ed0 | 121 | %attr(755,root,root) %{_libdir}/libvigraimpex.so.*.* |
c67566a7 | 122 | %attr(755,root,root) %ghost %{_libdir}/libvigraimpex.so.4 |
ff77f0f9 | 123 | |
124 | %files devel | |
125 | %defattr(644,root,root,755) | |
f83ee3d9 | 126 | %attr(755,root,root) %{_bindir}/vigra-config |
4993c24d | 127 | %attr(755,root,root) %{_libdir}/libvigraimpex.so |
f83ee3d9 | 128 | %{_includedir}/vigra |
5cfa7ed0 JB |
129 | %dir %{_libdir}/vigra |
130 | %{_libdir}/vigra/VigraConfig*.cmake | |
131 | %{_libdir}/vigra/vigra-targets*.cmake | |
ff77f0f9 | 132 | |
5cfa7ed0 | 133 | %files -n python-vigra |
ff77f0f9 | 134 | %defattr(644,root,root,755) |
5cfa7ed0 JB |
135 | %dir %{py_sitedir}/vigra |
136 | %attr(755,root,root) %{py_sitedir}/vigra/*.so | |
137 | %{py_sitedir}/vigra/*.py[co] | |
138 | %dir %{py_sitedir}/vigra/pyqt | |
139 | %{py_sitedir}/vigra/pyqt/*.py[co] | |
f83ee3d9 JB |
140 | |
141 | %files doc | |
142 | %defattr(644,root,root,755) | |
5cfa7ed0 | 143 | %doc doc/{vigra,vigranumpy} |