]> git.pld-linux.org Git - packages/gegl.git/blame - gegl.spec
- added gegl patch (adjust headers for mrg 201909+); release 3
[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
01a50bbb 17%define babl_version 0.1.72
2d36d865 18%define mrg_version 0.1.2-1.20190322.1
7e0a13d7 19
518498c4 20Summary: Generic image processing library
79c90bc4 21Summary(pl.UTF-8): Ogólna biblioteka przetwarzania obrazu
518498c4 22Name: gegl
01a50bbb 23Version: 0.4.18
8c7f41fe 24Release: 3
01a50bbb 25License: LGPL v3+/GPL v3+
79c90bc4 26Group: Libraries
01a50bbb
JB
27Source0: https://download.gimp.org/pub/gegl/0.4/%{name}-%{version}.tar.xz
28# Source0-md5: 567f9e6c0a0a1a4145a1a1b254ca9ac5
8c7f41fe 29Patch0: %{name}-mrg.patch
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
79c90bc4 35URL: http://www.gegl.org/
21b17357 36BuildRequires: OpenEXR-devel >= 1.6.1
01a50bbb 37BuildRequires: SDL2-devel >= 2.0.5
52414c2a 38BuildRequires: UMFPACK-devel
6a990593 39BuildRequires: asciidoc
7e0a13d7 40BuildRequires: babl-devel >= %{babl_version}
01a50bbb 41BuildRequires: bash
21b17357 42BuildRequires: cairo-devel >= 1.12.2
88cd9c64 43BuildRequires: enscript
21b17357 44BuildRequires: exiv2-devel >= 0.25
07c05795 45# libavformat >= 55.48.100, libavcodec >= 55.69.100, libavutil >= 52.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
7e0a13d7 72BuildRequires: mrg-devel >= %{mrg_version}
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
64a724f3 87%{?with_vala:BuildRequires: vala >= 2:0.20.0}
01a50bbb 88BuildRequires: xz
07c05795 89BuildRequires: zlib-devel >= 1.2.0
01a50bbb
JB
90Requires: OpenEXR >= 1.6.1
91Requires: SDL2 >= 2.0.5
7e0a13d7 92Requires: babl >= %{babl_version}
07c05795 93Requires: cairo >= 1.12.2
596a9e34
JB
94Requires: gdk-pixbuf2 >= 2.32.0
95Requires: glib2 >= 1:2.44.0
6827d83c 96Requires: jasper-libs >= 1.900.1
01a50bbb 97Requires: json-glib >= 1.2.6
07c05795 98Requires: lcms2 >= 2.8
efc1bf39 99Requires: lensfun >= 0.2.5
1aafda58 100Requires: libraw >= 0.15.4
21b17357 101Requires: librsvg >= 1:2.40.6
01a50bbb 102Requires: libspiro >= 0.5.0
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
01a50bbb 135Requires: json-glib-devel >= 1.2.6
07c05795 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
8c7f41fe 188%patch0 -p1
15b83213 189%patch1 -p1
fe0ae258 190%patch2 -p1
d7740cee 191%patch3 -p1
01a50bbb 192%patch4 -p1
62e7cf53 193%patch5 -p1
518498c4 194
195%build
01a50bbb
JB
196CPPFLAGS="%{rpmcppflags} -I/usr/include/umfpack"
197%meson build \
198 %{?with_doc:-Ddocs=true} \
199 %{!?with_introspection:-Dintrospection=false} \
200 %{!?with_lua:-Dlua=disabled} \
201 -Dworkshop=true
202
203%ninja_build -C build
518498c4 204
205%install
206rm -rf $RPM_BUILD_ROOT
207
01a50bbb 208%ninja_install -C build
518498c4 209
00609e3b 210%find_lang %{name}-0.4
69db310d 211
518498c4 212%clean
213rm -rf $RPM_BUILD_ROOT
214
215%post -p /sbin/ldconfig
216%postun -p /sbin/ldconfig
217
00609e3b 218%files -f %{name}-0.4.lang
518498c4 219%defattr(644,root,root,755)
01a50bbb 220%doc AUTHORS MAINTAINERS
518498c4 221%attr(755,root,root) %{_bindir}/gegl
a1e55ceb 222%attr(755,root,root) %{_bindir}/gegl-imgcmp
00609e3b
AM
223%attr(755,root,root) %{_libdir}/libgegl-0.4.so.*.*.*
224%attr(755,root,root) %ghost %{_libdir}/libgegl-0.4.so.0
225%attr(755,root,root) %{_libdir}/libgegl-npd-0.4.so
226%attr(755,root,root) %{_libdir}/libgegl-sc-0.4.so
227%{?with_introspection:%{_libdir}/girepository-1.0/Gegl-0.4.typelib}
228%dir %{_libdir}/gegl-0.4
229%attr(755,root,root) %{_libdir}/gegl-0.4/*.so
230%{_libdir}/gegl-0.4/grey2.json
01a50bbb
JB
231%if %{with lua}
232%dir %{_datadir}/gegl-0.4
233%{_datadir}/gegl-0.4/lua
234%endif
518498c4 235
236%files devel
237%defattr(644,root,root,755)
00609e3b
AM
238%attr(755,root,root) %{_libdir}/libgegl-0.4.so
239%{_includedir}/gegl-0.4
240%{?with_introspection:%{_datadir}/gir-1.0/Gegl-0.4.gir}
241%{_pkgconfigdir}/gegl-0.4.pc
242%{_pkgconfigdir}/gegl-sc-0.4.pc
518498c4 243
4fda8829 244%if %{with static_libs}
518498c4 245%files static
246%defattr(644,root,root,755)
00609e3b
AM
247%{_libdir}/libgegl-0.4.a
248%{_libdir}/libgegl-npd-0.4.a
249%{_libdir}/libgegl-sc-0.4.a
4fda8829 250%endif
c067f164 251
ac3efb70 252%if %{with doc}
c067f164
MB
253%files apidocs
254%defattr(644,root,root,755)
01a50bbb 255%doc build/docs/{ophtml,*.html,*.png}
c067f164 256%{_gtkdocdir}/gegl
d7387e88 257%endif
efc1bf39
JB
258
259%if %{with vala}
260%files -n vala-gegl
261%defattr(644,root,root,755)
00609e3b
AM
262%{_datadir}/vala/vapi/gegl-0.4.deps
263%{_datadir}/vala/vapi/gegl-0.4.vapi
efc1bf39 264%endif
This page took 0.099402 seconds and 4 git commands to generate.