]> git.pld-linux.org Git - packages/gegl.git/blame - gegl.spec
Release 2 (by relup.sh)
[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
c71e0021 24Release: 2
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
0935008a 46BuildRequires: gcc >= 5:4.7
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
0935008a 64BuildRequires: libstdc++-devel >= 6:5
1aafda58 65BuildRequires: libtiff-devel >= 4.0.0
01a50bbb 66BuildRequires: libv4l-devel >= 1.0.1
21b17357 67BuildRequires: libwebp-devel >= 0.5.0
4ad808cf 68%if %{with lua}
b0d78941 69BuildRequires: luajit-devel >= 2.0.4
d3bbf51b 70BuildRequires: lua51-devel >= 5.1.5-2
4ad808cf 71%endif
7d5522c0 72BuildRequires: maxflow-devel >= 3.0.4
01a50bbb 73BuildRequires: meson >= 0.50.0
5c325c2d 74BuildRequires: mrg-devel >= %{mrg_ver}
01a50bbb 75BuildRequires: ninja >= 1.5
11e6080a 76BuildRequires: pango-devel >= 1:1.38.0
07c05795 77BuildRequires: perl-base >= 5
88cd9c64 78BuildRequires: pkgconfig
b0d78941 79BuildRequires: poppler-glib-devel >= 0.71.0
01a50bbb
JB
80BuildRequires: python3 >= 1:3.2
81%if %{with introspection}
82# for tests only
83#BuildRequires: python-pygobject3-devel >= 3.2.0
84%endif
7f6dd9a8 85BuildRequires: poly2tri-c-devel
01a50bbb 86BuildRequires: rpmbuild(macros) >= 1.736
fe0ae258 87BuildRequires: ruby >= 1.9
01a50bbb 88BuildRequires: tar >= 1:1.22
5c325c2d
JB
89%if %{with vala}
90BuildRequires: vala >= 2:0.20.0
91BuildRequires: vala-babl >= %{babl_ver}
92%endif
01a50bbb 93BuildRequires: xz
07c05795 94BuildRequires: zlib-devel >= 1.2.0
01a50bbb
JB
95Requires: OpenEXR >= 1.6.1
96Requires: SDL2 >= 2.0.5
5c325c2d 97Requires: babl >= %{babl_ver}
07c05795 98Requires: cairo >= 1.12.2
596a9e34
JB
99Requires: gdk-pixbuf2 >= 2.32.0
100Requires: glib2 >= 1:2.44.0
6827d83c 101Requires: jasper-libs >= 1.900.1
01a50bbb 102Requires: json-glib >= 1.2.6
07c05795 103Requires: lcms2 >= 2.8
efc1bf39 104Requires: lensfun >= 0.2.5
1aafda58 105Requires: libraw >= 0.15.4
21b17357 106Requires: librsvg >= 1:2.40.6
01a50bbb 107Requires: libspiro >= 0.5.0
1aafda58 108Requires: libtiff >= 4.0.0
07c05795 109Requires: libwebp >= 0.5.0
7d5522c0 110Requires: maxflow >= 3.0.4
5c325c2d 111Requires: mrg-libs >= %{mrg_ver}
11e6080a 112Requires: pango >= 1:1.38.0
07c05795
JB
113Requires: poppler-glib >= 0.71.0
114Requires: zlib >= 1.2.0
518498c4 115BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
116
117%description
118GEGL (Generic Graphics Library) is a graph based image processing
119framework.
120
79c90bc4 121GEGL's original design was made to scratch GIMP's itches for a new
518498c4 122compositing and processing core. This core is being designed to have
79c90bc4
JB
123minimal dependencies and a simple well defined API.
124
125%description -l pl.UTF-8
126GEGL (Generic Graphics Library) to oparty na grafice szkielet do
127przetwarzania obrazu.
128
129Pierwotny projekt biblioteki GEGL powstał z myślą o nowym rdzeniu do
130składania i przetwarzania obrazu w GIMP-ie. Rdzeń ten jest
131projektowany tak, by miał minimalne zależności i proste, dobrze
132zdefiniowane API.
518498c4 133
134%package devel
135Summary: Header files for gegl library
136Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gegl
137Group: Development/Libraries
79c90bc4 138Requires: %{name} = %{version}-%{release}
5c325c2d 139Requires: babl-devel >= %{babl_ver}
596a9e34 140Requires: glib2-devel >= 1:2.44.0
01a50bbb 141Requires: json-glib-devel >= 1.2.6
07c05795 142Requires: poly2tri-c-devel
518498c4 143
144%description devel
145Header files for gegl library.
146
147%description devel -l pl.UTF-8
148Pliki nagłówkowe biblioteki gegl.
149
150%package static
151Summary: Static gegl library
152Summary(pl.UTF-8): Statyczna biblioteka gegl
153Group: Development/Libraries
154Requires: %{name}-devel = %{version}-%{release}
155
156%description static
157Static gegl library.
158
159%description static -l pl.UTF-8
160Statyczna biblioteka gegl.
161
c067f164
MB
162%package apidocs
163Summary: gegl library API documentation
164Summary(pl.UTF-8): Dokumentacja API biblioteki gegl
165Group: Documentation
166Requires: gtk-doc-common
38cb6083 167BuildArch: noarch
c067f164
MB
168
169%description apidocs
170gegl library API documentation.
171
172%description apidocs -l pl.UTF-8
173Dokumentacja API biblioteki gegl.
174
efc1bf39
JB
175%package -n vala-gegl
176Summary: Vala API for gegl library
177Summary(pl.UTF-8): API języka Vala dla biblioteki gegl
178Group: Development/Libraries
179Requires: %{name}-devel = %{version}-%{release}
f3156ba0 180BuildArch: noarch
efc1bf39
JB
181
182%description -n vala-gegl
183Vala API for gegl library.
184
185%description -n vala-gegl -l pl.UTF-8
186API języka Vala dla biblioteki gegl.
187
518498c4 188%prep
189%setup -q
15b83213 190%patch1 -p1
fe0ae258 191%patch2 -p1
d7740cee 192%patch3 -p1
01a50bbb 193%patch4 -p1
62e7cf53 194%patch5 -p1
518498c4 195
196%build
01a50bbb
JB
197CPPFLAGS="%{rpmcppflags} -I/usr/include/umfpack"
198%meson build \
199 %{?with_doc:-Ddocs=true} \
200 %{!?with_introspection:-Dintrospection=false} \
201 %{!?with_lua:-Dlua=disabled} \
202 -Dworkshop=true
203
204%ninja_build -C build
518498c4 205
41be2edd 206%if %{with doc}
b3b10a1a
JB
207rmdir build/docs/operations/RAM
208# possible gegl-tester coredumps?
209rm -f build/docs/operations/core*
41be2edd 210%endif
b3b10a1a 211
518498c4 212%install
213rm -rf $RPM_BUILD_ROOT
214
01a50bbb 215%ninja_install -C build
518498c4 216
00609e3b 217%find_lang %{name}-0.4
69db310d 218
518498c4 219%clean
220rm -rf $RPM_BUILD_ROOT
221
222%post -p /sbin/ldconfig
223%postun -p /sbin/ldconfig
224
00609e3b 225%files -f %{name}-0.4.lang
518498c4 226%defattr(644,root,root,755)
01a50bbb 227%doc AUTHORS MAINTAINERS
518498c4 228%attr(755,root,root) %{_bindir}/gegl
a1e55ceb 229%attr(755,root,root) %{_bindir}/gegl-imgcmp
00609e3b
AM
230%attr(755,root,root) %{_libdir}/libgegl-0.4.so.*.*.*
231%attr(755,root,root) %ghost %{_libdir}/libgegl-0.4.so.0
232%attr(755,root,root) %{_libdir}/libgegl-npd-0.4.so
233%attr(755,root,root) %{_libdir}/libgegl-sc-0.4.so
234%{?with_introspection:%{_libdir}/girepository-1.0/Gegl-0.4.typelib}
235%dir %{_libdir}/gegl-0.4
236%attr(755,root,root) %{_libdir}/gegl-0.4/*.so
5c325c2d 237%{_libdir}/gegl-0.4/dropshadow2.json
00609e3b 238%{_libdir}/gegl-0.4/grey2.json
01a50bbb
JB
239%if %{with lua}
240%dir %{_datadir}/gegl-0.4
241%{_datadir}/gegl-0.4/lua
242%endif
518498c4 243
244%files devel
245%defattr(644,root,root,755)
00609e3b
AM
246%attr(755,root,root) %{_libdir}/libgegl-0.4.so
247%{_includedir}/gegl-0.4
248%{?with_introspection:%{_datadir}/gir-1.0/Gegl-0.4.gir}
249%{_pkgconfigdir}/gegl-0.4.pc
250%{_pkgconfigdir}/gegl-sc-0.4.pc
518498c4 251
4fda8829 252%if %{with static_libs}
518498c4 253%files static
254%defattr(644,root,root,755)
00609e3b
AM
255%{_libdir}/libgegl-0.4.a
256%{_libdir}/libgegl-npd-0.4.a
257%{_libdir}/libgegl-sc-0.4.a
4fda8829 258%endif
c067f164 259
ac3efb70 260%if %{with doc}
c067f164
MB
261%files apidocs
262%defattr(644,root,root,755)
b3b10a1a 263%doc build/docs/{operations,*.html,*.png}
c067f164 264%{_gtkdocdir}/gegl
d7387e88 265%endif
efc1bf39
JB
266
267%if %{with vala}
268%files -n vala-gegl
269%defattr(644,root,root,755)
00609e3b
AM
270%{_datadir}/vala/vapi/gegl-0.4.deps
271%{_datadir}/vala/vapi/gegl-0.4.vapi
efc1bf39 272%endif
This page took 0.087134 seconds and 4 git commands to generate.