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