]> git.pld-linux.org Git - packages/exact-image.git/blame - exact-image.spec
- added evas patch (fixes build with evas 1.8+)
[packages/exact-image.git] / exact-image.spec
CommitLineData
1d474b68
JB
1#
2# Conditional build:
3%bcond_without evas # Edisplay support
e293edfc 4%bcond_without gif # GIF support
1d474b68
JB
5%bcond_without lua # Lua API
6%bcond_without perl # Perl API
7%bcond_with php # PHP API
8%bcond_without python # Python API
9
10%ifarch %{x8664}
11%undefine with_lua
12%undefine with_perl
13%undefine with_python
14%endif
66bf4c60 15Summary: A fast, modern and generic image processing library
1d474b68 16Summary(pl.UTF-8): Szybka, nowoczesna i ogólna biblioteka do przetwarzania obrazu
66bf4c60 17Name: exact-image
ad41e958 18Version: 0.8.9
fcc4b361 19Release: 2
66bf4c60
TP
20License: GPL v2
21Group: Applications/Graphics
22Source0: http://dl.exactcode.de/oss/exact-image/%{name}-%{version}.tar.bz2
ad41e958 23# Source0-md5: a8694722cd7cc9aa9407950a8440f0cd
66bf4c60 24Patch0: %{name}-libs.patch
fcc4b361 25Patch1: exactimage_0.8.5-1.patch
e293edfc 26Patch2: %{name}-giflib.patch
c1037667 27Patch3: %{name}-evas.patch
66bf4c60
TP
28URL: http://www.exactcode.de/site/open_source/exactimage/
29BuildRequires: OpenEXR-devel >= 1.2.0
30BuildRequires: agg-devel >= 2.3
1d474b68
JB
31%{?with_evas:BuildRequires: evas-devel >= 0.9.9}
32BuildRequires: expat-devel
33# pkgconfig(freetype) >= 9.5.0
34BuildRequires: freetype-devel >= 2.1.6
e293edfc 35%{?with_gif:BuildRequires: giflib-devel >= 5}
66bf4c60
TP
36BuildRequires: jasper-devel
37BuildRequires: lcms-devel >= 1.10
1d474b68
JB
38BuildRequires: libjpeg-devel
39BuildRequires: libpng-devel >= 2:1.5
66bf4c60 40BuildRequires: libstdc++-devel
1d474b68
JB
41BuildRequires: libtiff-devel
42%{?with_lua:BuildRequires: lua51-devel >= 5.1}
43BuildRequires: perl-devel >= 1:5.8.0
44%{?with_php:BuildRequires: php-devel >= 5.2.0}
45%{?with_python:BuildRequires: python-devel >= 1:2.5.0}
46BuildRequires: ruby-devel >= 1.8.5
47%{?with_perl:BuildRequires: swig-perl >= 1.3.32}
48%{?with_php:BuildRequires: swig-php >= 1.3.32}
49%{?with_python:BuildRequires: swig-python >= 1.3.32}
66bf4c60 50BuildRequires: xorg-lib-libX11-devel >= 1.3
1d474b68 51BuildRequires: zlib-devel
66bf4c60
TP
52BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53
54%description
1d474b68
JB
55A fast, modern and generic (template based) C++ image processing
56library, alternative to ImageMagick.
57
58%description -l pl.UTF-8
59Szybka, nowoczesna i ogólna (oparta na szablonach) biblioteka C++
60do przetwarzania obrazu, będąca alternatywą dla biblioteki
61ImageMagick.
66bf4c60
TP
62
63%prep
64%setup -q
65%patch0 -p1
fcc4b361 66%patch1 -p1
e293edfc 67%patch2 -p1
c1037667 68%patch3 -p1
66bf4c60
TP
69
70%build
1d474b68
JB
71./configure \
72 --prefix=%{_prefix} \
73 %{!?with_evas:--without-evas} \
74 %{!?with_gif:--without-libungif} \
75 %{!?with_lua:--without-lua} \
76 %{!?with_perl:--without-perl} \
77 %{!?with_php:--without-php} \
78 %{!?with_python:--without-python}
43a87014 79
66bf4c60
TP
80%{__make} \
81 CFLAGS="%{rpmcflags}" \
1d474b68
JB
82 CXXFLAGS="%{rpmcflags}" \
83 Q=
66bf4c60
TP
84
85%install
86rm -rf $RPM_BUILD_ROOT
87
88%{__make} install \
1d474b68
JB
89 DESTDIR=$RPM_BUILD_ROOT \
90 Q=
66bf4c60
TP
91
92%clean
93rm -rf $RPM_BUILD_ROOT
94
95%files
96%defattr(644,root,root,755)
97%doc README TODO
ad41e958
TP
98%attr(755,root,root) %{_bindir}/bardecode
99%attr(755,root,root) %{_bindir}/e2mtiff
100%attr(755,root,root) %{_bindir}/econvert
101%attr(755,root,root) %{_bindir}/edentify
1d474b68 102%{?with_evas:%attr(755,root,root) %{_bindir}/edisplay}
ad41e958
TP
103%attr(755,root,root) %{_bindir}/empty-page
104%attr(755,root,root) %{_bindir}/hocr2pdf
105%attr(755,root,root) %{_bindir}/optimize2bw
This page took 0.044392 seconds and 4 git commands to generate.