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