]>
Commit | Line | Data |
---|---|---|
5438a907 JB |
1 | Summary: Python bindings for the IlmBase libraries |
2 | Summary(pl.UTF-8): Wiązania Pythona do bibliotek IlmBase | |
3 | Name: python-pyilmbase | |
8cb1ac3d | 4 | Version: 2.2.0 |
a63db190 | 5 | Release: 5 |
5438a907 JB |
6 | License: BSD |
7 | Group: Libraries/Python | |
8 | Source0: http://download.savannah.gnu.org/releases/openexr/pyilmbase-%{version}.tar.gz | |
8cb1ac3d | 9 | # Source0-md5: e84a6a4462f90b5e14d83d67253d8e5a |
50d76b16 | 10 | Patch0: %{name}-link.patch |
5438a907 | 11 | URL: http://www.openexr.com/ |
247411db JB |
12 | BuildRequires: autoconf >= 2.50 |
13 | BuildRequires: automake >= 1.6.3 | |
5438a907 | 14 | BuildRequires: boost-python-devel |
8cb1ac3d | 15 | BuildRequires: ilmbase-devel >= 2.2.0 |
247411db JB |
16 | BuildRequires: libstdc++-devel |
17 | BuildRequires: libtool >= 2:1.5 | |
5438a907 JB |
18 | BuildRequires: pkgconfig |
19 | BuildRequires: python-devel | |
20 | BuildRequires: python-numpy-devel | |
21 | BuildRequires: rpm-pythonprov | |
8cb1ac3d | 22 | Requires: ilmbase >= 2.2.0 |
5438a907 JB |
23 | Requires: python-modules |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | The PyIlmBase package provides python bindings for the IlmBase | |
28 | libraries. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Pakiet PyIlmBase dostarcza wiązania Pythona do bibliotek IlmBase. | |
32 | ||
33 | %package devel | |
34 | Summary: Header files for IlmBase Python bindings | |
35 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Pyhona do bibliotek IlmBase | |
36 | Group: Development/Libraries | |
37 | Requires: %{name} = %{version}-%{release} | |
38 | Requires: boost-python-devel | |
8cb1ac3d | 39 | Requires: ilmbase-devel >= 2.2.0 |
247411db | 40 | Requires: libstdc++-devel |
5438a907 JB |
41 | |
42 | %description devel | |
43 | Header files for IlmBase Python bindings. | |
44 | ||
45 | %description devel -l pl.UTF-8 | |
46 | Pliki nagłówkowe wiązań Pyhona do bibliotek IlmBase. | |
47 | ||
48 | %prep | |
49 | %setup -q -n pyilmbase-%{version} | |
50d76b16 | 50 | %patch0 -p1 |
5438a907 JB |
51 | |
52 | %build | |
247411db JB |
53 | %{__libtoolize} |
54 | %{__aclocal} -I m4 | |
55 | %{__autoconf} | |
56 | %{__automake} | |
5438a907 JB |
57 | %configure |
58 | ||
2122aa14 JB |
59 | # g++ eats a lot of memory, don't run many in parallel |
60 | %{__make} -j1 | |
5438a907 JB |
61 | |
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
50d76b16 JB |
65 | # parallel build fails at libPyImath/imathmodule install |
66 | %{__make} -j1 install \ | |
5438a907 JB |
67 | DESTDIR=$RPM_BUILD_ROOT |
68 | ||
69 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libPy*.la \ | |
70 | $RPM_BUILD_ROOT%{py_sitedir}/*.la | |
71 | ||
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
77 | %doc AUTHORS COPYING ChangeLog NEWS README | |
78 | %attr(755,root,root) %{_libdir}/libPyIex.so.*.*.* | |
79 | %attr(755,root,root) %ghost %{_libdir}/libPyIex.so.2 | |
80 | %attr(755,root,root) %{_libdir}/libPyImath.so.*.*.* | |
81 | %attr(755,root,root) %ghost %{_libdir}/libPyImath.so.2 | |
82 | %attr(755,root,root) %{py_sitedir}/iexmodule.so | |
83 | %attr(755,root,root) %{py_sitedir}/imathmodule.so | |
84 | %attr(755,root,root) %{py_sitedir}/imathnumpymodule.so | |
85 | ||
86 | %files devel | |
87 | %defattr(644,root,root,755) | |
88 | %attr(755,root,root) %{_libdir}/libPyIex.so | |
89 | %attr(755,root,root) %{_libdir}/libPyImath.so | |
90 | %{_includedir}/OpenEXR/PyIex*.h | |
91 | %{_includedir}/OpenEXR/PyIlmBaseConfig.h | |
92 | %{_includedir}/OpenEXR/PyImath*.h | |
93 | %{_pkgconfigdir}/PyIlmBase.pc | |
94 | %{_aclocaldir}/pyilmbase.m4 |