]> git.pld-linux.org Git - packages/vigra.git/blame - vigra.spec
- added openexr3 patch from Fedora to restore OpenEXR support; release 14
[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
23cccddc 6Release: 14
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
23cccddc
JB
16# https://src.fedoraproject.org/rpms/vigra/raw/rawhide/f/vigra-openexr3.patch
17Patch3: %{name}-openexr3.patch
f3ba2ea6 18URL: http://ukoethe.github.io/vigra/
0992852b 19BuildRequires: OpenEXR-devel
c67566a7 20BuildRequires: boost-python-devel >= 1.40.0
5cfa7ed0
JB
21BuildRequires: cmake >= 2.6.0
22BuildRequires: doxygen
c67566a7
JB
23BuildRequires: fftw3-single-devel
24BuildRequires: hdf5-devel >= 1.8
a7865023 25BuildRequires: libjpeg-devel
0992852b 26BuildRequires: libpng-devel >= 2:1.4.0
f3ba2ea6 27BuildRequires: libstdc++-devel >= 6:4.4
a7865023 28BuildRequires: libtiff-devel
1d1bcd93 29BuildRequires: pkgconfig
f6a4d12b
JB
30BuildRequires: python >= 1:2.7
31BuildRequires: python-devel >= 1:2.7
5cfa7ed0
JB
32BuildRequires: python-numpy-devel
33BuildRequires: rpmbuild(macros) >= 1.586
f6a4d12b 34BuildRequires: sed >= 4.0
c67566a7 35BuildRequires: sphinx-pdg
a7865023 36BuildRequires: zlib-devel
ff77f0f9 37BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
ff77f0f9 38
39%description
40VIGRA stands for "Vision with Generic Algorithms". It's a novel
41computer vision library that puts its main emphasize on customizable
42algorithms and data structures. By using template techniques similar
43to those in the C++ Standard Template Library, you can easily adapt
44any VIGRA component to the needs of your application, without thereby
45giving up execution speed.
46
a1e41389
JR
47%description -l pl.UTF-8
48VIGRA to skrót od "Vision with Generic Algorithms" (widok z ogólnymi
49algorytmami). Jest to nowa biblioteka do obrazu komputerowego kładąca
50główny nacisk na algorytmy i struktury danych z możliwością
51dostosowania do własnych potrzeb. Poprzez użycie technik szablonów
52podobnych do tych w standardowej bibliotece szablonów C++ (STL) można
53łatwo zaadaptować dowolny komponent VIGRA do potrzeb własnej aplikacji
54bez poświęcania szybkości wykonywania.
a7865023 55
ff77f0f9 56%package devel
92c6e0e9 57Summary: Header files for vigra library
ce893eac 58Summary(pl.UTF-8): Pliki nagłówkowe biblioteki vigra
92c6e0e9 59Group: Development/Libraries
60Requires: %{name} = %{version}-%{release}
c67566a7
JB
61Requires: fftw3-single-devel
62Requires: hdf5-devel >= 1.8
f83ee3d9 63Requires: libjpeg-devel
0992852b 64Requires: libpng-devel >= 2:1.4.0
f83ee3d9
JB
65Requires: libstdc++-devel
66Requires: libtiff-devel
9cda8e2e 67Obsoletes: vigra-static < 1.7
ff77f0f9 68
69%description devel
70Header files needed to compile programs with vigra.
71
a1e41389
JR
72%description devel -l pl.UTF-8
73Pliki nagłówkowe potrzebne do budowania programów używających
a7865023
JB
74biblioteki vigra.
75
5cfa7ed0
JB
76%package -n python-vigra
77Summary: VIGRA Python bindings
78Summary(pl.UTF-8): Wiązania Pythona do biblioteki VIGRA
79Group: Libraries/Python
80Requires: %{name} = %{version}-%{release}
81Requires: python-numpy
82Suggests: python-PyQt4
ff77f0f9 83
5cfa7ed0
JB
84%description -n python-vigra
85VIGRA Python bindings.
a7865023 86
5cfa7ed0
JB
87%description -n python-vigra -l pl.UTF-8
88Wiązania Pythona do biblioteki VIGRA.
ff77f0f9 89
0992852b
JB
90%package -n python-vigra-devel
91Summary: Development file for VIGRA Python bindings
92Summary(pl.UTF-8): Plik programistyczny wiązań Pythona do biblioteki VIGRA
93Group: Development/Libraries
94Requires: cmake
95Requires: python-vigra = %{version}-%{release}
96
97%description -n python-vigra-devel
98Development (cmake config) file for VIGRA Python bindings.
99
100%description -n python-vigra-devel -l pl.UTF-8
101Plik programistyczny (konfiguracja cmake'a) dla wiązań Pythona do
102biblioteki VIGRA.
103
f83ee3d9
JB
104%package doc
105Summary: Development documentation for vigra library
ce893eac 106Summary(pl.UTF-8): Dokumentacja programisty do biblioteki vigra
f83ee3d9
JB
107Group: Documentation
108
109%description doc
110Development documentation for vigra library.
111
a1e41389 112%description doc -l pl.UTF-8
f83ee3d9
JB
113Dokumentacja 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
125install -d build
126cd 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
135rm -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
147rm -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}
This page took 0.154309 seconds and 5 git commands to generate.