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