]>
Commit | Line | Data |
---|---|---|
f3ba2ea6 | 1 | # TODO: lemon support, WITH_LEMON |
ff77f0f9 | 2 | Summary: Generic Programming for Computer Vision |
ce893eac | 3 | Summary(pl.UTF-8): Ogólne programowanie obrazu komputerowego |
ff77f0f9 | 4 | Name: vigra |
f3ba2ea6 | 5 | Version: 1.11.1 |
23cccddc | 6 | Release: 14 |
259a4a28 | 7 | License: MIT |
ff77f0f9 | 8 | Group: Libraries |
0992852b | 9 | #Source0Download: http://ukoethe.github.io/vigra/#download |
f3ba2ea6 JB |
10 | Source0: https://github.com/ukoethe/vigra/releases/download/Version-1-11-1/%{name}-%{version}-src.tar.gz |
11 | # Source0-md5: e72faf9fb82fa71fa63ba064bb63b703 | |
d6aa230b | 12 | Patch0: python-install.patch |
e01a0b9d | 13 | Patch1: boost-python.patch |
70a5ae2e JB |
14 | # https://src.fedoraproject.org/rpms/vigra/raw/master/f/81958d302494e137f98a8b1d7869841532f90388.patch |
15 | Patch2: %{name}-multi_convolution.patch | |
23cccddc JB |
16 | # https://src.fedoraproject.org/rpms/vigra/raw/rawhide/f/vigra-openexr3.patch |
17 | Patch3: %{name}-openexr3.patch | |
f3ba2ea6 | 18 | URL: http://ukoethe.github.io/vigra/ |
0992852b | 19 | BuildRequires: OpenEXR-devel |
c67566a7 | 20 | BuildRequires: boost-python-devel >= 1.40.0 |
5cfa7ed0 JB |
21 | BuildRequires: cmake >= 2.6.0 |
22 | BuildRequires: doxygen | |
c67566a7 JB |
23 | BuildRequires: fftw3-single-devel |
24 | BuildRequires: hdf5-devel >= 1.8 | |
a7865023 | 25 | BuildRequires: libjpeg-devel |
0992852b | 26 | BuildRequires: libpng-devel >= 2:1.4.0 |
f3ba2ea6 | 27 | BuildRequires: libstdc++-devel >= 6:4.4 |
a7865023 | 28 | BuildRequires: libtiff-devel |
1d1bcd93 | 29 | BuildRequires: pkgconfig |
f6a4d12b JB |
30 | BuildRequires: python >= 1:2.7 |
31 | BuildRequires: python-devel >= 1:2.7 | |
5cfa7ed0 JB |
32 | BuildRequires: python-numpy-devel |
33 | BuildRequires: rpmbuild(macros) >= 1.586 | |
f6a4d12b | 34 | BuildRequires: sed >= 4.0 |
c67566a7 | 35 | BuildRequires: sphinx-pdg |
a7865023 | 36 | BuildRequires: zlib-devel |
ff77f0f9 | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ff77f0f9 | 38 | |
39 | %description | |
40 | VIGRA stands for "Vision with Generic Algorithms". It's a novel | |
41 | computer vision library that puts its main emphasize on customizable | |
42 | algorithms and data structures. By using template techniques similar | |
43 | to those in the C++ Standard Template Library, you can easily adapt | |
44 | any VIGRA component to the needs of your application, without thereby | |
45 | giving up execution speed. | |
46 | ||
a1e41389 JR |
47 | %description -l pl.UTF-8 |
48 | VIGRA to skrót od "Vision with Generic Algorithms" (widok z ogólnymi | |
49 | algorytmami). Jest to nowa biblioteka do obrazu komputerowego kładąca | |
50 | główny nacisk na algorytmy i struktury danych z możliwością | |
51 | dostosowania do własnych potrzeb. Poprzez użycie technik szablonów | |
52 | podobnych do tych w standardowej bibliotece szablonów C++ (STL) można | |
53 | łatwo zaadaptować dowolny komponent VIGRA do potrzeb własnej aplikacji | |
54 | bez poświęcania szybkości wykonywania. | |
a7865023 | 55 | |
ff77f0f9 | 56 | %package devel |
92c6e0e9 | 57 | Summary: Header files for vigra library |
ce893eac | 58 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki vigra |
92c6e0e9 | 59 | Group: Development/Libraries |
60 | Requires: %{name} = %{version}-%{release} | |
c67566a7 JB |
61 | Requires: fftw3-single-devel |
62 | Requires: hdf5-devel >= 1.8 | |
f83ee3d9 | 63 | Requires: libjpeg-devel |
0992852b | 64 | Requires: libpng-devel >= 2:1.4.0 |
f83ee3d9 JB |
65 | Requires: libstdc++-devel |
66 | Requires: libtiff-devel | |
9cda8e2e | 67 | Obsoletes: vigra-static < 1.7 |
ff77f0f9 | 68 | |
69 | %description devel | |
70 | Header files needed to compile programs with vigra. | |
71 | ||
a1e41389 JR |
72 | %description devel -l pl.UTF-8 |
73 | Pliki nagłówkowe potrzebne do budowania programów używających | |
a7865023 JB |
74 | biblioteki vigra. |
75 | ||
5cfa7ed0 JB |
76 | %package -n python-vigra |
77 | Summary: VIGRA Python bindings | |
78 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki VIGRA | |
79 | Group: Libraries/Python | |
80 | Requires: %{name} = %{version}-%{release} | |
81 | Requires: python-numpy | |
82 | Suggests: python-PyQt4 | |
ff77f0f9 | 83 | |
5cfa7ed0 JB |
84 | %description -n python-vigra |
85 | VIGRA Python bindings. | |
a7865023 | 86 | |
5cfa7ed0 JB |
87 | %description -n python-vigra -l pl.UTF-8 |
88 | Wiązania Pythona do biblioteki VIGRA. | |
ff77f0f9 | 89 | |
0992852b JB |
90 | %package -n python-vigra-devel |
91 | Summary: Development file for VIGRA Python bindings | |
92 | Summary(pl.UTF-8): Plik programistyczny wiązań Pythona do biblioteki VIGRA | |
93 | Group: Development/Libraries | |
94 | Requires: cmake | |
95 | Requires: python-vigra = %{version}-%{release} | |
96 | ||
97 | %description -n python-vigra-devel | |
98 | Development (cmake config) file for VIGRA Python bindings. | |
99 | ||
100 | %description -n python-vigra-devel -l pl.UTF-8 | |
101 | Plik programistyczny (konfiguracja cmake'a) dla wiązań Pythona do | |
102 | biblioteki VIGRA. | |
103 | ||
f83ee3d9 JB |
104 | %package doc |
105 | Summary: Development documentation for vigra library | |
ce893eac | 106 | Summary(pl.UTF-8): Dokumentacja programisty do biblioteki vigra |
f83ee3d9 JB |
107 | Group: Documentation |
108 | ||
109 | %description doc | |
110 | Development documentation for vigra library. | |
111 | ||
a1e41389 | 112 | %description doc -l pl.UTF-8 |
f83ee3d9 JB |
113 | Dokumentacja programisty do biblioteki vigra. |
114 | ||
ff77f0f9 | 115 | %prep |
5cfa7ed0 | 116 | %setup -q |
d6aa230b | 117 | %patch0 -p1 |
e01a0b9d | 118 | %patch1 -p1 |
70a5ae2e | 119 | %patch2 -p1 |
23cccddc | 120 | %patch3 -p1 |
ff77f0f9 | 121 | |
f6a4d12b JB |
122 | %{__sed} -i -e '1s,/usr/bin/env python$,%{__python},' config/vigra-config.in |
123 | ||
f83ee3d9 | 124 | %build |
23cccddc JB |
125 | install -d build |
126 | cd build | |
127 | %cmake .. \ | |
0992852b JB |
128 | -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \ |
129 | -DWITH_BOOST_GRAPH=ON \ | |
130 | -DWITH_OPENEXR=ON | |
97e428ba | 131 | |
ff77f0f9 | 132 | %{__make} |
133 | ||
ff77f0f9 | 134 | %install |
135 | rm -rf $RPM_BUILD_ROOT | |
f83ee3d9 | 136 | |
23cccddc | 137 | %{__make} -C build install \ |
5cfa7ed0 JB |
138 | DESTDIR=$RPM_BUILD_ROOT |
139 | ||
140 | %py_comp $RPM_BUILD_ROOT%{py_sitedir}/vigra | |
141 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}/vigra | |
142 | %py_postclean | |
143 | ||
144 | %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc/vigra* | |
ff77f0f9 | 145 | |
ff77f0f9 | 146 | %clean |
a7865023 JB |
147 | rm -rf $RPM_BUILD_ROOT |
148 | ||
149 | %post -p /sbin/ldconfig | |
150 | %postun -p /sbin/ldconfig | |
ff77f0f9 | 151 | |
152 | %files | |
153 | %defattr(644,root,root,755) | |
0992852b | 154 | %doc LICENSE.txt README.md |
5cfa7ed0 | 155 | %attr(755,root,root) %{_libdir}/libvigraimpex.so.*.* |
f3ba2ea6 | 156 | %attr(755,root,root) %ghost %{_libdir}/libvigraimpex.so.11 |
ff77f0f9 | 157 | |
158 | %files devel | |
159 | %defattr(644,root,root,755) | |
f83ee3d9 | 160 | %attr(755,root,root) %{_bindir}/vigra-config |
4993c24d | 161 | %attr(755,root,root) %{_libdir}/libvigraimpex.so |
f83ee3d9 | 162 | %{_includedir}/vigra |
5cfa7ed0 JB |
163 | %dir %{_libdir}/vigra |
164 | %{_libdir}/vigra/VigraConfig*.cmake | |
165 | %{_libdir}/vigra/vigra-targets*.cmake | |
ff77f0f9 | 166 | |
5cfa7ed0 | 167 | %files -n python-vigra |
ff77f0f9 | 168 | %defattr(644,root,root,755) |
5cfa7ed0 JB |
169 | %dir %{py_sitedir}/vigra |
170 | %attr(755,root,root) %{py_sitedir}/vigra/*.so | |
171 | %{py_sitedir}/vigra/*.py[co] | |
172 | %dir %{py_sitedir}/vigra/pyqt | |
173 | %{py_sitedir}/vigra/pyqt/*.py[co] | |
f83ee3d9 | 174 | |
0992852b JB |
175 | %files -n python-vigra-devel |
176 | %defattr(644,root,root,755) | |
177 | %dir %{_libdir}/vigranumpy | |
178 | %{_libdir}/vigranumpy/VigranumpyConfig.cmake | |
179 | ||
f83ee3d9 JB |
180 | %files doc |
181 | %defattr(644,root,root,755) | |
5cfa7ed0 | 182 | %doc doc/{vigra,vigranumpy} |