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