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