]> git.pld-linux.org Git - packages/gegl.git/blame - gegl.spec
- require maxflow for paint-select operation plugin
[packages/gegl.git] / gegl.spec
CommitLineData
9a0ac5c2
JB
1#
2# Conditional build:
be2ddda6 3%bcond_without doc # apidocs
4ad808cf 4%bcond_without lua # without lua support
4fda8829 5%bcond_without static_libs # static library
a1e55ceb
JR
6%bcond_without introspection # API introspection
7%bcond_without vala # Vala API
38cb6083 8
69db310d
JB
9%if %{without introspection}
10%undefine with_vala
11%endif
7e0a13d7 12
4ad808cf
AG
13%ifarch x32
14%undefine with_lua
15%endif
16
5c325c2d
JB
17%define babl_ver 0.1.78
18%define mrg_ver 0.1.4
7e0a13d7 19
518498c4 20Summary: Generic image processing library
79c90bc4 21Summary(pl.UTF-8): Ogólna biblioteka przetwarzania obrazu
518498c4 22Name: gegl
5c325c2d 23Version: 0.4.30
9c27199a 24Release: 1
01a50bbb 25License: LGPL v3+/GPL v3+
79c90bc4 26Group: Libraries
01a50bbb 27Source0: https://download.gimp.org/pub/gegl/0.4/%{name}-%{version}.tar.xz
5c325c2d 28# Source0-md5: 6ae601b8c7cab8af5a36406df0b95ebf
15b83213
JP
29Patch1: %{name}-ruby1.9.patch
30Patch2: %{name}-build.patch
31Patch3: umfpack.patch
01a50bbb 32Patch4: %{name}-link.patch
62e7cf53 33Patch5: %{name}-no-lua.patch
5c325c2d 34URL: https://www.gegl.org/
21b17357 35BuildRequires: OpenEXR-devel >= 1.6.1
01a50bbb 36BuildRequires: SDL2-devel >= 2.0.5
52414c2a 37BuildRequires: UMFPACK-devel
6a990593 38BuildRequires: asciidoc
5c325c2d 39BuildRequires: babl-devel >= %{babl_ver}
01a50bbb 40BuildRequires: bash
21b17357 41BuildRequires: cairo-devel >= 1.12.2
88cd9c64 42BuildRequires: enscript
21b17357 43BuildRequires: exiv2-devel >= 0.25
5c325c2d 44# libavcodec >= 55.69.100, libavformat >= 55.48.100, libavutil >= 55.92.100, libswscale >= 2.6.100
6e8b462c 45BuildRequires: ffmpeg-devel >= 2.3
596a9e34 46BuildRequires: gdk-pixbuf2-devel >= 2.32.0
07c05795 47BuildRequires: gettext-tools >= 0.19.8
1aafda58 48BuildRequires: gexiv2-devel
596a9e34 49BuildRequires: glib2-devel >= 1:2.44.0
64a724f3 50%{?with_introspection:BuildRequires: gobject-introspection-devel >= 1.32.0}
88cd9c64 51BuildRequires: graphviz
8b4c20ed 52BuildRequires: gtk-doc >= 1.0
52414c2a 53BuildRequires: jasper-devel >= 1.900.1
01a50bbb 54BuildRequires: json-glib-devel >= 1.2.6
21b17357 55BuildRequires: lcms2-devel >= 2.8
efc1bf39 56BuildRequires: lensfun-devel >= 0.2.5
01a50bbb
JB
57BuildRequires: libjpeg-devel >= 1.0.0
58BuildRequires: libnsgif-devel
07c05795 59BuildRequires: libpng-devel >= 2:1.6.0
1aafda58 60BuildRequires: libraw-devel >= 0.15.4
21b17357 61BuildRequires: librsvg-devel >= 1:2.40.6
01a50bbb 62BuildRequires: libspiro-devel >= 0.5.0
1aafda58 63BuildRequires: libtiff-devel >= 4.0.0
01a50bbb 64BuildRequires: libv4l-devel >= 1.0.1
21b17357 65BuildRequires: libwebp-devel >= 0.5.0
4ad808cf 66%if %{with lua}
b0d78941 67BuildRequires: luajit-devel >= 2.0.4
d3bbf51b 68BuildRequires: lua51-devel >= 5.1.5-2
4ad808cf 69%endif
7d5522c0 70BuildRequires: maxflow-devel >= 3.0.4
01a50bbb 71BuildRequires: meson >= 0.50.0
5c325c2d 72BuildRequires: mrg-devel >= %{mrg_ver}
01a50bbb 73BuildRequires: ninja >= 1.5
11e6080a 74BuildRequires: pango-devel >= 1:1.38.0
07c05795 75BuildRequires: perl-base >= 5
88cd9c64 76BuildRequires: pkgconfig
b0d78941 77BuildRequires: poppler-glib-devel >= 0.71.0
01a50bbb
JB
78BuildRequires: python3 >= 1:3.2
79%if %{with introspection}
80# for tests only
81#BuildRequires: python-pygobject3-devel >= 3.2.0
82%endif
7f6dd9a8 83BuildRequires: poly2tri-c-devel
01a50bbb 84BuildRequires: rpmbuild(macros) >= 1.736
fe0ae258 85BuildRequires: ruby >= 1.9
01a50bbb 86BuildRequires: tar >= 1:1.22
5c325c2d
JB
87%if %{with vala}
88BuildRequires: vala >= 2:0.20.0
89BuildRequires: vala-babl >= %{babl_ver}
90%endif
01a50bbb 91BuildRequires: xz
07c05795 92BuildRequires: zlib-devel >= 1.2.0
01a50bbb
JB
93Requires: OpenEXR >= 1.6.1
94Requires: SDL2 >= 2.0.5
5c325c2d 95Requires: babl >= %{babl_ver}
07c05795 96Requires: cairo >= 1.12.2
596a9e34
JB
97Requires: gdk-pixbuf2 >= 2.32.0
98Requires: glib2 >= 1:2.44.0
6827d83c 99Requires: jasper-libs >= 1.900.1
01a50bbb 100Requires: json-glib >= 1.2.6
07c05795 101Requires: lcms2 >= 2.8
efc1bf39 102Requires: lensfun >= 0.2.5
1aafda58 103Requires: libraw >= 0.15.4
21b17357 104Requires: librsvg >= 1:2.40.6
01a50bbb 105Requires: libspiro >= 0.5.0
1aafda58 106Requires: libtiff >= 4.0.0
07c05795 107Requires: libwebp >= 0.5.0
7d5522c0 108Requires: maxflow >= 3.0.4
5c325c2d 109Requires: mrg-libs >= %{mrg_ver}
11e6080a 110Requires: pango >= 1:1.38.0
07c05795
JB
111Requires: poppler-glib >= 0.71.0
112Requires: zlib >= 1.2.0
518498c4 113BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
114
115%description
116GEGL (Generic Graphics Library) is a graph based image processing
117framework.
118
79c90bc4 119GEGL's original design was made to scratch GIMP's itches for a new
518498c4 120compositing and processing core. This core is being designed to have
79c90bc4
JB
121minimal dependencies and a simple well defined API.
122
123%description -l pl.UTF-8
124GEGL (Generic Graphics Library) to oparty na grafice szkielet do
125przetwarzania obrazu.
126
127Pierwotny projekt biblioteki GEGL powstał z myślą o nowym rdzeniu do
128składania i przetwarzania obrazu w GIMP-ie. Rdzeń ten jest
129projektowany tak, by miał minimalne zależności i proste, dobrze
130zdefiniowane API.
518498c4 131
132%package devel
133Summary: Header files for gegl library
134Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gegl
135Group: Development/Libraries
79c90bc4 136Requires: %{name} = %{version}-%{release}
5c325c2d 137Requires: babl-devel >= %{babl_ver}
596a9e34 138Requires: glib2-devel >= 1:2.44.0
01a50bbb 139Requires: json-glib-devel >= 1.2.6
07c05795 140Requires: poly2tri-c-devel
518498c4 141
142%description devel
143Header files for gegl library.
144
145%description devel -l pl.UTF-8
146Pliki nagłówkowe biblioteki gegl.
147
148%package static
149Summary: Static gegl library
150Summary(pl.UTF-8): Statyczna biblioteka gegl
151Group: Development/Libraries
152Requires: %{name}-devel = %{version}-%{release}
153
154%description static
155Static gegl library.
156
157%description static -l pl.UTF-8
158Statyczna biblioteka gegl.
159
c067f164
MB
160%package apidocs
161Summary: gegl library API documentation
162Summary(pl.UTF-8): Dokumentacja API biblioteki gegl
163Group: Documentation
164Requires: gtk-doc-common
38cb6083 165BuildArch: noarch
c067f164
MB
166
167%description apidocs
168gegl library API documentation.
169
170%description apidocs -l pl.UTF-8
171Dokumentacja API biblioteki gegl.
172
efc1bf39
JB
173%package -n vala-gegl
174Summary: Vala API for gegl library
175Summary(pl.UTF-8): API języka Vala dla biblioteki gegl
176Group: Development/Libraries
177Requires: %{name}-devel = %{version}-%{release}
f3156ba0 178BuildArch: noarch
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
01a50bbb 191%patch4 -p1
62e7cf53 192%patch5 -p1
518498c4 193
194%build
01a50bbb
JB
195CPPFLAGS="%{rpmcppflags} -I/usr/include/umfpack"
196%meson build \
197 %{?with_doc:-Ddocs=true} \
198 %{!?with_introspection:-Dintrospection=false} \
199 %{!?with_lua:-Dlua=disabled} \
200 -Dworkshop=true
201
202%ninja_build -C build
518498c4 203
41be2edd 204%if %{with doc}
b3b10a1a
JB
205rmdir build/docs/operations/RAM
206# possible gegl-tester coredumps?
207rm -f build/docs/operations/core*
41be2edd 208%endif
b3b10a1a 209
518498c4 210%install
211rm -rf $RPM_BUILD_ROOT
212
01a50bbb 213%ninja_install -C build
518498c4 214
00609e3b 215%find_lang %{name}-0.4
69db310d 216
518498c4 217%clean
218rm -rf $RPM_BUILD_ROOT
219
220%post -p /sbin/ldconfig
221%postun -p /sbin/ldconfig
222
00609e3b 223%files -f %{name}-0.4.lang
518498c4 224%defattr(644,root,root,755)
01a50bbb 225%doc AUTHORS MAINTAINERS
518498c4 226%attr(755,root,root) %{_bindir}/gegl
a1e55ceb 227%attr(755,root,root) %{_bindir}/gegl-imgcmp
00609e3b
AM
228%attr(755,root,root) %{_libdir}/libgegl-0.4.so.*.*.*
229%attr(755,root,root) %ghost %{_libdir}/libgegl-0.4.so.0
230%attr(755,root,root) %{_libdir}/libgegl-npd-0.4.so
231%attr(755,root,root) %{_libdir}/libgegl-sc-0.4.so
232%{?with_introspection:%{_libdir}/girepository-1.0/Gegl-0.4.typelib}
233%dir %{_libdir}/gegl-0.4
234%attr(755,root,root) %{_libdir}/gegl-0.4/*.so
5c325c2d 235%{_libdir}/gegl-0.4/dropshadow2.json
00609e3b 236%{_libdir}/gegl-0.4/grey2.json
01a50bbb
JB
237%if %{with lua}
238%dir %{_datadir}/gegl-0.4
239%{_datadir}/gegl-0.4/lua
240%endif
518498c4 241
242%files devel
243%defattr(644,root,root,755)
00609e3b
AM
244%attr(755,root,root) %{_libdir}/libgegl-0.4.so
245%{_includedir}/gegl-0.4
246%{?with_introspection:%{_datadir}/gir-1.0/Gegl-0.4.gir}
247%{_pkgconfigdir}/gegl-0.4.pc
248%{_pkgconfigdir}/gegl-sc-0.4.pc
518498c4 249
4fda8829 250%if %{with static_libs}
518498c4 251%files static
252%defattr(644,root,root,755)
00609e3b
AM
253%{_libdir}/libgegl-0.4.a
254%{_libdir}/libgegl-npd-0.4.a
255%{_libdir}/libgegl-sc-0.4.a
4fda8829 256%endif
c067f164 257
ac3efb70 258%if %{with doc}
c067f164
MB
259%files apidocs
260%defattr(644,root,root,755)
b3b10a1a 261%doc build/docs/{operations,*.html,*.png}
c067f164 262%{_gtkdocdir}/gegl
d7387e88 263%endif
efc1bf39
JB
264
265%if %{with vala}
266%files -n vala-gegl
267%defattr(644,root,root,755)
00609e3b
AM
268%{_datadir}/vala/vapi/gegl-0.4.deps
269%{_datadir}/vala/vapi/gegl-0.4.vapi
efc1bf39 270%endif
This page took 0.110731 seconds and 4 git commands to generate.