%bcond_without python # Python API
%bcond_with ruby # Ruby API [not finished as of 0.8.9]
-%ifarch %{x8664}
-%undefine with_lua
-%undefine with_perl
-%undefine with_python
-%endif
%define php_name php%{?php_suffix}
%include /usr/lib/rpm/macros.perl
Summary: A fast, modern and generic image processing library
Summary(pl.UTF-8): Szybka, nowoczesna i ogólna biblioteka do przetwarzania obrazu
Name: exact-image
Version: 0.8.9
-Release: 2
+Release: 10
License: GPL v2
Group: Applications/Graphics
Source0: http://dl.exactcode.de/oss/exact-image/%{name}-%{version}.tar.bz2
Patch2: %{name}-giflib.patch
Patch3: %{name}-evas.patch
Patch4: %{name}-install.patch
+Patch5: swig.patch
URL: http://www.exactcode.de/site/open_source/exactimage/
BuildRequires: OpenEXR-devel >= 1.2.0
BuildRequires: agg-devel >= 2.3
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%build
./configure \
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
PERL_INSTALLDIR=%{perl_vendorarch} \
- PHP_INSTALLDIR=%{_libdir}/php \
+ PHP_INSTALLDIR=%{php_extensiondir} \
PYTHON_LIBDIR=%{py_sitedir} \
api/lua/libdir=%{_libdir}/lua \
Q=