- removed outdated without-lua patch (broke x32 build now); release 2
[packages/gegl.git] / gegl.spec
CommitLineData
9a0ac5c2 1#
975cab40
AG
2# TODO:
3# - links against zstd (some of the BR: misses dep on zstd)
4#
9a0ac5c2 5# Conditional build:
69db310d
JB
6%bcond_with mmx # use MMX instructions
7%bcond_with sse # use SSE instructions
be2ddda6 8%bcond_without doc # apidocs
4ad808cf 9%bcond_without lua # without lua support
4fda8829 10%bcond_without static_libs # static library
a1e55ceb
JR
11%bcond_without introspection # API introspection
12%bcond_without vala # Vala API
38cb6083 13
9a0ac5c2
JB
14%ifarch %{x8664} athlon pentium3 pentium4
15%define with_mmx 1
16%endif
17%ifarch %{x8664} pentium3 pentium4
18%define with_sse 1
19%endif
69db310d
JB
20%if %{without introspection}
21%undefine with_vala
22%endif
7e0a13d7 23
4ad808cf
AG
24%ifarch x32
25%undefine with_lua
26%endif
27
2d36d865
AG
28%define babl_version 0.1.62
29%define mrg_version 0.1.2-1.20190322.1
7e0a13d7 30
518498c4 31Summary: Generic image processing library
79c90bc4 32Summary(pl.UTF-8): Ogólna biblioteka przetwarzania obrazu
518498c4 33Name: gegl
07c05795 34Version: 0.4.16
9ce21e3e 35Release: 2
6a990593 36License: LGPL v3+
79c90bc4 37Group: Libraries
00609e3b 38Source0: https://download.gimp.org/pub/gegl/0.4/%{name}-%{version}.tar.bz2
07c05795 39# Source0-md5: cb17ac529a882f25f54c0115c63d4027
15b83213
JP
40Patch1: %{name}-ruby1.9.patch
41Patch2: %{name}-build.patch
42Patch3: umfpack.patch
79c90bc4 43URL: http://www.gegl.org/
21b17357
MB
44BuildRequires: OpenEXR-devel >= 1.6.1
45BuildRequires: SDL-devel >= 1.2.0
52414c2a 46BuildRequires: UMFPACK-devel
6a990593 47BuildRequires: asciidoc
88cd9c64 48BuildRequires: autoconf >= 2.54
efc1bf39 49BuildRequires: automake >= 1:1.11
7e0a13d7 50BuildRequires: babl-devel >= %{babl_version}
21b17357 51BuildRequires: cairo-devel >= 1.12.2
88cd9c64 52BuildRequires: enscript
21b17357 53BuildRequires: exiv2-devel >= 0.25
07c05795 54# libavformat >= 55.48.100, libavcodec >= 55.69.100, libavutil >= 52.92.100, libswscale >= 2.6.100
6e8b462c 55BuildRequires: ffmpeg-devel >= 2.3
596a9e34 56BuildRequires: gdk-pixbuf2-devel >= 2.32.0
07c05795 57BuildRequires: gettext-tools >= 0.19.8
1aafda58 58BuildRequires: gexiv2-devel
596a9e34 59BuildRequires: glib2-devel >= 1:2.44.0
64a724f3 60%{?with_introspection:BuildRequires: gobject-introspection-devel >= 1.32.0}
88cd9c64 61BuildRequires: graphviz
8b4c20ed 62BuildRequires: gtk-doc >= 1.0
52414c2a 63BuildRequires: jasper-devel >= 1.900.1
64a724f3 64BuildRequires: json-glib-devel
21b17357 65BuildRequires: lcms2-devel >= 2.8
efc1bf39 66BuildRequires: lensfun-devel >= 0.2.5
518498c4 67BuildRequires: libjpeg-devel
07c05795 68BuildRequires: libpng-devel >= 2:1.6.0
1aafda58 69BuildRequires: libraw-devel >= 0.15.4
21b17357 70BuildRequires: librsvg-devel >= 1:2.40.6
8b4c20ed 71BuildRequires: libspiro-devel
1aafda58 72BuildRequires: libtiff-devel >= 4.0.0
efc1bf39 73BuildRequires: libtool >= 2:2.2
07c05795
JB
74# as of 0.4.16, internal copy of code is used
75#BuildRequires: libv4l-devel >= 1.0.1
21b17357 76BuildRequires: libwebp-devel >= 0.5.0
4ad808cf 77%if %{with lua}
b0d78941 78BuildRequires: luajit-devel >= 2.0.4
d3bbf51b 79BuildRequires: lua51-devel >= 5.1.5-2
4ad808cf 80%endif
7e0a13d7 81BuildRequires: mrg-devel >= %{mrg_version}
11e6080a 82BuildRequires: pango-devel >= 1:1.38.0
07c05795 83BuildRequires: perl-base >= 5
88cd9c64 84BuildRequires: pkgconfig
b0d78941 85BuildRequires: poppler-glib-devel >= 0.71.0
64a724f3 86BuildRequires: python >= 1:2.5.0
7f6dd9a8 87# either one?
64a724f3
JB
88#BuildRequires: python-pygobject-devel >= 2.26
89BuildRequires: python-pygobject3-devel >= 3.2
7f6dd9a8 90BuildRequires: poly2tri-c-devel
fe0ae258 91BuildRequires: ruby >= 1.9
64a724f3 92%{?with_vala:BuildRequires: vala >= 2:0.20.0}
07c05795 93BuildRequires: zlib-devel >= 1.2.0
7e0a13d7 94Requires: babl >= %{babl_version}
07c05795 95Requires: cairo >= 1.12.2
596a9e34
JB
96Requires: gdk-pixbuf2 >= 2.32.0
97Requires: glib2 >= 1:2.44.0
6827d83c 98Requires: jasper-libs >= 1.900.1
07c05795 99Requires: lcms2 >= 2.8
efc1bf39 100Requires: lensfun >= 0.2.5
1aafda58 101Requires: libraw >= 0.15.4
21b17357 102Requires: librsvg >= 1:2.40.6
1aafda58 103Requires: libtiff >= 4.0.0
07c05795 104Requires: libwebp >= 0.5.0
7e0a13d7 105Requires: mrg-libs >= %{mrg_version}
11e6080a 106Requires: pango >= 1:1.38.0
07c05795
JB
107Requires: poppler-glib >= 0.71.0
108Requires: zlib >= 1.2.0
518498c4 109BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
110
111%description
112GEGL (Generic Graphics Library) is a graph based image processing
113framework.
114
79c90bc4 115GEGL's original design was made to scratch GIMP's itches for a new
518498c4 116compositing and processing core. This core is being designed to have
79c90bc4
JB
117minimal dependencies and a simple well defined API.
118
119%description -l pl.UTF-8
120GEGL (Generic Graphics Library) to oparty na grafice szkielet do
121przetwarzania obrazu.
122
123Pierwotny projekt biblioteki GEGL powstał z myślą o nowym rdzeniu do
124składania i przetwarzania obrazu w GIMP-ie. Rdzeń ten jest
125projektowany tak, by miał minimalne zależności i proste, dobrze
126zdefiniowane API.
518498c4 127
128%package devel
129Summary: Header files for gegl library
130Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gegl
131Group: Development/Libraries
79c90bc4 132Requires: %{name} = %{version}-%{release}
7e0a13d7 133Requires: babl-devel >= %{babl_version}
596a9e34 134Requires: glib2-devel >= 1:2.44.0
07c05795
JB
135Requires: json-glib-devel
136Requires: poly2tri-c-devel
518498c4 137
138%description devel
139Header files for gegl library.
140
141%description devel -l pl.UTF-8
142Pliki nagłówkowe biblioteki gegl.
143
144%package static
145Summary: Static gegl library
146Summary(pl.UTF-8): Statyczna biblioteka gegl
147Group: Development/Libraries
148Requires: %{name}-devel = %{version}-%{release}
149
150%description static
151Static gegl library.
152
153%description static -l pl.UTF-8
154Statyczna biblioteka gegl.
155
c067f164
MB
156%package apidocs
157Summary: gegl library API documentation
158Summary(pl.UTF-8): Dokumentacja API biblioteki gegl
159Group: Documentation
160Requires: gtk-doc-common
38cb6083
ER
161%if "%{_rpmversion}" >= "5"
162BuildArch: noarch
163%endif
c067f164
MB
164
165%description apidocs
166gegl library API documentation.
167
168%description apidocs -l pl.UTF-8
169Dokumentacja API biblioteki gegl.
170
efc1bf39
JB
171%package -n vala-gegl
172Summary: Vala API for gegl library
173Summary(pl.UTF-8): API języka Vala dla biblioteki gegl
174Group: Development/Libraries
175Requires: %{name}-devel = %{version}-%{release}
f3156ba0
ER
176%if "%{_rpmversion}" >= "5"
177BuildArch: noarch
178%endif
efc1bf39
JB
179
180%description -n vala-gegl
181Vala API for gegl library.
182
183%description -n vala-gegl -l pl.UTF-8
184API języka Vala dla biblioteki gegl.
185
518498c4 186%prep
187%setup -q
15b83213 188%patch1 -p1
fe0ae258 189%patch2 -p1
d7740cee 190%patch3 -p1
518498c4 191
192%build
88cd9c64 193%{__libtoolize}
72767853 194%{__aclocal} -I m4
518498c4 195%{__autoconf}
88cd9c64 196%{__autoheader}
518498c4 197%{__automake}
c067f164 198%configure \
52414c2a 199 CPPFLAGS="%{rpmcppflags} -I/usr/include/umfpack" \
ac3efb70 200 --enable-docs%{!?with_doc:=no} \
69db310d 201 %{?with_introspection:--enable-introspection} \
9a0ac5c2
JB
202 %{!?with_mmx:--disable-mmx} \
203 %{!?with_sse:--disable-sse} \
8b4c20ed 204 --disable-silent-rules \
4fda8829 205 %{?with_static_libs:--enable-static} \
4ad808cf
AG
206 --with-vala%{!?with_vala:=no} \
207 %{__with_without lua}
518498c4 208%{__make}
209
210%install
211rm -rf $RPM_BUILD_ROOT
212
213%{__make} install \
c067f164 214 DESTDIR=$RPM_BUILD_ROOT \
fe0ae258 215 gtkdochtmldir=%{_gtkdocdir}/gegl
c067f164 216
4fda8829 217# obsoleted by pkg-config
00609e3b 218%{__rm} $RPM_BUILD_ROOT%{_libdir}/libgegl*-0.4.la
4fda8829 219# dlopened modules
00609e3b 220%{__rm} $RPM_BUILD_ROOT%{_libdir}/gegl-0.4/*.la
4fda8829 221%if %{with static_libs}
00609e3b 222%{__rm} $RPM_BUILD_ROOT%{_libdir}/gegl-0.4/*.a
4fda8829 223%endif
518498c4 224
00609e3b 225%find_lang %{name}-0.4
69db310d 226
518498c4 227%clean
228rm -rf $RPM_BUILD_ROOT
229
230%post -p /sbin/ldconfig
231%postun -p /sbin/ldconfig
232
00609e3b 233%files -f %{name}-0.4.lang
518498c4 234%defattr(644,root,root,755)
235%doc AUTHORS ChangeLog NEWS README
7e0a13d7 236%attr(755,root,root) %{_bindir}/gcut
518498c4 237%attr(755,root,root) %{_bindir}/gegl
a1e55ceb 238%attr(755,root,root) %{_bindir}/gegl-imgcmp
00609e3b
AM
239%attr(755,root,root) %{_libdir}/libgegl-0.4.so.*.*.*
240%attr(755,root,root) %ghost %{_libdir}/libgegl-0.4.so.0
241%attr(755,root,root) %{_libdir}/libgegl-npd-0.4.so
242%attr(755,root,root) %{_libdir}/libgegl-sc-0.4.so
243%{?with_introspection:%{_libdir}/girepository-1.0/Gegl-0.4.typelib}
244%dir %{_libdir}/gegl-0.4
245%attr(755,root,root) %{_libdir}/gegl-0.4/*.so
246%{_libdir}/gegl-0.4/grey2.json
518498c4 247
248%files devel
249%defattr(644,root,root,755)
00609e3b
AM
250%attr(755,root,root) %{_libdir}/libgegl-0.4.so
251%{_includedir}/gegl-0.4
252%{?with_introspection:%{_datadir}/gir-1.0/Gegl-0.4.gir}
253%{_pkgconfigdir}/gegl-0.4.pc
254%{_pkgconfigdir}/gegl-sc-0.4.pc
518498c4 255
4fda8829 256%if %{with static_libs}
518498c4 257%files static
258%defattr(644,root,root,755)
00609e3b
AM
259%{_libdir}/libgegl-0.4.a
260%{_libdir}/libgegl-npd-0.4.a
261%{_libdir}/libgegl-sc-0.4.a
4fda8829 262%endif
c067f164 263
ac3efb70 264%if %{with doc}
c067f164
MB
265%files apidocs
266%defattr(644,root,root,755)
267%{_gtkdocdir}/gegl
d7387e88 268%endif
efc1bf39
JB
269
270%if %{with vala}
271%files -n vala-gegl
272%defattr(644,root,root,755)
00609e3b
AM
273%{_datadir}/vala/vapi/gegl-0.4.deps
274%{_datadir}/vala/vapi/gegl-0.4.vapi
efc1bf39 275%endif
This page took 1.424543 seconds and 4 git commands to generate.