]>
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 |
d1a5ed0e | 4 | Version: 1.6.0 |
f79b6d1e | 5 | Release: 4 |
259a4a28 | 6 | License: MIT |
ff77f0f9 | 7 | Group: Libraries |
8 | Source0: http://kogs-www.informatik.uni-hamburg.de/~koethe/vigra/%{name}%{version}.tar.gz | |
d1a5ed0e | 9 | # Source0-md5: d62650a6f908e85643e557a236ea989c |
f83ee3d9 | 10 | Patch0: %{name}-ac.patch |
f79b6d1e | 11 | Patch1: %{name}-libpng.patch |
ff77f0f9 | 12 | URL: http://kogs-www.informatik.uni-hamburg.de/~koethe/vigra/ |
f83ee3d9 JB |
13 | BuildRequires: autoconf |
14 | BuildRequires: automake | |
4537dc10 | 15 | BuildRequires: fftw3-devel |
a7865023 JB |
16 | BuildRequires: libjpeg-devel |
17 | BuildRequires: libpng-devel | |
f83ee3d9 | 18 | BuildRequires: libstdc++-devel |
a7865023 | 19 | BuildRequires: libtiff-devel |
97e428ba JB |
20 | BuildRequires: libtool >= 2:1.5 |
21 | #BuildRequires: python | |
22 | #BuildRequires: python-devel | |
a7865023 | 23 | BuildRequires: zlib-devel |
ff77f0f9 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ff77f0f9 | 25 | |
26 | %description | |
27 | VIGRA stands for "Vision with Generic Algorithms". It's a novel | |
28 | computer vision library that puts its main emphasize on customizable | |
29 | algorithms and data structures. By using template techniques similar | |
30 | to those in the C++ Standard Template Library, you can easily adapt | |
31 | any VIGRA component to the needs of your application, without thereby | |
32 | giving up execution speed. | |
33 | ||
a1e41389 JR |
34 | %description -l pl.UTF-8 |
35 | VIGRA to skrót od "Vision with Generic Algorithms" (widok z ogólnymi | |
36 | algorytmami). Jest to nowa biblioteka do obrazu komputerowego kładąca | |
37 | główny nacisk na algorytmy i struktury danych z możliwością | |
38 | dostosowania do własnych potrzeb. Poprzez użycie technik szablonów | |
39 | podobnych do tych w standardowej bibliotece szablonów C++ (STL) można | |
40 | łatwo zaadaptować dowolny komponent VIGRA do potrzeb własnej aplikacji | |
41 | bez poświęcania szybkości wykonywania. | |
a7865023 | 42 | |
ff77f0f9 | 43 | %package devel |
92c6e0e9 | 44 | Summary: Header files for vigra library |
ce893eac | 45 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki vigra |
92c6e0e9 | 46 | Group: Development/Libraries |
47 | Requires: %{name} = %{version}-%{release} | |
f83ee3d9 JB |
48 | Requires: libjpeg-devel |
49 | Requires: libpng-devel | |
50 | Requires: libstdc++-devel | |
51 | Requires: libtiff-devel | |
ff77f0f9 | 52 | |
53 | %description devel | |
54 | Header files needed to compile programs with vigra. | |
55 | ||
a1e41389 JR |
56 | %description devel -l pl.UTF-8 |
57 | Pliki nagłówkowe potrzebne do budowania programów używających | |
a7865023 JB |
58 | biblioteki vigra. |
59 | ||
ff77f0f9 | 60 | %package static |
92c6e0e9 | 61 | Summary: vigra - static library |
ce893eac | 62 | Summary(pl.UTF-8): Statyczna biblioteka vigra |
92c6e0e9 | 63 | Group: Development/Libraries |
64 | Requires: %{name}-devel = %{version}-%{release} | |
ff77f0f9 | 65 | |
66 | %description static | |
a7865023 JB |
67 | Static version of vigra library. |
68 | ||
a1e41389 | 69 | %description static -l pl.UTF-8 |
a7865023 | 70 | Statyczna wersja biblioteki vigra. |
ff77f0f9 | 71 | |
f83ee3d9 JB |
72 | %package doc |
73 | Summary: Development documentation for vigra library | |
ce893eac | 74 | Summary(pl.UTF-8): Dokumentacja programisty do biblioteki vigra |
f83ee3d9 JB |
75 | Group: Documentation |
76 | ||
77 | %description doc | |
78 | Development documentation for vigra library. | |
79 | ||
a1e41389 | 80 | %description doc -l pl.UTF-8 |
f83ee3d9 JB |
81 | Dokumentacja programisty do biblioteki vigra. |
82 | ||
ff77f0f9 | 83 | %prep |
f83ee3d9 JB |
84 | %setup -q -n %{name}%{version} |
85 | %patch0 -p1 | |
f79b6d1e | 86 | %patch1 -p1 |
ff77f0f9 | 87 | |
f83ee3d9 JB |
88 | tail -n +510 config/acinclude.m4 > acinclude.m4 |
89 | ln -sf config/configure.in . | |
ff77f0f9 | 90 | |
f83ee3d9 JB |
91 | %build |
92 | cp -f /usr/share/automake/config.* config | |
93 | %{__libtoolize} | |
94 | %{__aclocal} | |
95 | %{__autoconf} | |
96 | %configure \ | |
97 | --with-fftw \ | |
98 | --with-jpeg \ | |
99 | --with-png \ | |
100 | --with-tiff \ | |
101 | --with-zlib | |
ff77f0f9 | 102 | |
97e428ba JB |
103 | # --with-python requires src/pythonbindings (missing in sources) |
104 | ||
ff77f0f9 | 105 | %{__make} |
106 | ||
ff77f0f9 | 107 | %install |
108 | rm -rf $RPM_BUILD_ROOT | |
f83ee3d9 JB |
109 | |
110 | %{__make} install \ | |
ff77f0f9 | 111 | prefix=$RPM_BUILD_ROOT%{_prefix} \ |
112 | exec-prefix=$RPM_BUILD_ROOT%{_exec_prefix} \ | |
113 | bindir=$RPM_BUILD_ROOT%{_bindir} \ | |
114 | includedir=$RPM_BUILD_ROOT%{_includedir} \ | |
4993c24d JB |
115 | libdir=$RPM_BUILD_ROOT%{_libdir} \ |
116 | docdir=`pwd`/docs | |
ff77f0f9 | 117 | |
ff77f0f9 | 118 | %clean |
a7865023 JB |
119 | rm -rf $RPM_BUILD_ROOT |
120 | ||
121 | %post -p /sbin/ldconfig | |
122 | %postun -p /sbin/ldconfig | |
ff77f0f9 | 123 | |
124 | %files | |
125 | %defattr(644,root,root,755) | |
4993c24d JB |
126 | %doc LICENSE.txt README.txt |
127 | %attr(755,root,root) %{_libdir}/libvigraimpex.so.*.*.* | |
d1a5ed0e | 128 | %attr(755,root,root) %ghost %{_libdir}/libvigraimpex.so.2 |
ff77f0f9 | 129 | |
130 | %files devel | |
131 | %defattr(644,root,root,755) | |
f83ee3d9 | 132 | %attr(755,root,root) %{_bindir}/vigra-config |
4993c24d JB |
133 | %attr(755,root,root) %{_libdir}/libvigraimpex.so |
134 | %{_libdir}/libvigraimpex.la | |
f83ee3d9 | 135 | %{_includedir}/vigra |
ff77f0f9 | 136 | |
137 | %files static | |
138 | %defattr(644,root,root,755) | |
4993c24d | 139 | %{_libdir}/libvigraimpex.a |
f83ee3d9 JB |
140 | |
141 | %files doc | |
142 | %defattr(644,root,root,755) | |
4993c24d | 143 | %doc docs/[!L]* |