]> 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
2d9961e3 17%define babl_ver 0.1.102
5c325c2d 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
d67361e6 23Version: 0.4.46
c91ce64e 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
d67361e6 28# Source0-md5: 241bde22f9204515121e5fb03a2b9fbd
15b83213
JP
29Patch1: %{name}-ruby1.9.patch
30Patch2: %{name}-build.patch
01a50bbb 31Patch4: %{name}-link.patch
62e7cf53 32Patch5: %{name}-no-lua.patch
5c325c2d 33URL: https://www.gegl.org/
21b17357 34BuildRequires: OpenEXR-devel >= 1.6.1
01a50bbb 35BuildRequires: SDL2-devel >= 2.0.5
07923e4a 36BuildRequires: SuiteSparse-UMFPACK-devel
6a990593 37BuildRequires: asciidoc
5c325c2d 38BuildRequires: babl-devel >= %{babl_ver}
01a50bbb 39BuildRequires: bash
21b17357 40BuildRequires: cairo-devel >= 1.12.2
88cd9c64 41BuildRequires: enscript
21b17357 42BuildRequires: exiv2-devel >= 0.25
5c325c2d 43# libavcodec >= 55.69.100, libavformat >= 55.48.100, libavutil >= 55.92.100, libswscale >= 2.6.100
6e8b462c 44BuildRequires: ffmpeg-devel >= 2.3
0935008a 45BuildRequires: gcc >= 5:4.7
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
0935008a 63BuildRequires: libstdc++-devel >= 6:5
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
7d5522c0 71BuildRequires: maxflow-devel >= 3.0.4
01a50bbb 72BuildRequires: meson >= 0.50.0
5c325c2d 73BuildRequires: mrg-devel >= %{mrg_ver}
01a50bbb 74BuildRequires: ninja >= 1.5
11e6080a 75BuildRequires: pango-devel >= 1:1.38.0
07c05795 76BuildRequires: perl-base >= 5
88cd9c64 77BuildRequires: pkgconfig
b0d78941 78BuildRequires: poppler-glib-devel >= 0.71.0
01a50bbb
JB
79BuildRequires: python3 >= 1:3.2
80%if %{with introspection}
81# for tests only
82#BuildRequires: python-pygobject3-devel >= 3.2.0
83%endif
7f6dd9a8 84BuildRequires: poly2tri-c-devel
01a50bbb 85BuildRequires: rpmbuild(macros) >= 1.736
fe0ae258 86BuildRequires: ruby >= 1.9
01a50bbb 87BuildRequires: tar >= 1:1.22
5c325c2d
JB
88%if %{with vala}
89BuildRequires: vala >= 2:0.20.0
90BuildRequires: vala-babl >= %{babl_ver}
91%endif
01a50bbb 92BuildRequires: xz
07c05795 93BuildRequires: zlib-devel >= 1.2.0
01a50bbb
JB
94Requires: OpenEXR >= 1.6.1
95Requires: SDL2 >= 2.0.5
5c325c2d 96Requires: babl >= %{babl_ver}
07c05795 97Requires: cairo >= 1.12.2
596a9e34
JB
98Requires: gdk-pixbuf2 >= 2.32.0
99Requires: glib2 >= 1:2.44.0
6827d83c 100Requires: jasper-libs >= 1.900.1
01a50bbb 101Requires: json-glib >= 1.2.6
07c05795 102Requires: lcms2 >= 2.8
efc1bf39 103Requires: lensfun >= 0.2.5
1aafda58 104Requires: libraw >= 0.15.4
21b17357 105Requires: librsvg >= 1:2.40.6
01a50bbb 106Requires: libspiro >= 0.5.0
1aafda58 107Requires: libtiff >= 4.0.0
07c05795 108Requires: libwebp >= 0.5.0
7d5522c0 109Requires: maxflow >= 3.0.4
5c325c2d 110Requires: mrg-libs >= %{mrg_ver}
11e6080a 111Requires: pango >= 1:1.38.0
07c05795
JB
112Requires: poppler-glib >= 0.71.0
113Requires: zlib >= 1.2.0
518498c4 114BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
115
116%description
117GEGL (Generic Graphics Library) is a graph based image processing
118framework.
119
79c90bc4 120GEGL's original design was made to scratch GIMP's itches for a new
518498c4 121compositing and processing core. This core is being designed to have
79c90bc4
JB
122minimal dependencies and a simple well defined API.
123
124%description -l pl.UTF-8
125GEGL (Generic Graphics Library) to oparty na grafice szkielet do
126przetwarzania obrazu.
127
128Pierwotny projekt biblioteki GEGL powstał z myślą o nowym rdzeniu do
129składania i przetwarzania obrazu w GIMP-ie. Rdzeń ten jest
130projektowany tak, by miał minimalne zależności i proste, dobrze
131zdefiniowane API.
518498c4 132
133%package devel
134Summary: Header files for gegl library
135Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gegl
136Group: Development/Libraries
79c90bc4 137Requires: %{name} = %{version}-%{release}
5c325c2d 138Requires: babl-devel >= %{babl_ver}
596a9e34 139Requires: glib2-devel >= 1:2.44.0
01a50bbb 140Requires: json-glib-devel >= 1.2.6
07c05795 141Requires: poly2tri-c-devel
518498c4 142
143%description devel
144Header files for gegl library.
145
146%description devel -l pl.UTF-8
147Pliki nagłówkowe biblioteki gegl.
148
149%package static
150Summary: Static gegl library
151Summary(pl.UTF-8): Statyczna biblioteka gegl
152Group: Development/Libraries
153Requires: %{name}-devel = %{version}-%{release}
154
155%description static
156Static gegl library.
157
158%description static -l pl.UTF-8
159Statyczna biblioteka gegl.
160
c067f164
MB
161%package apidocs
162Summary: gegl library API documentation
163Summary(pl.UTF-8): Dokumentacja API biblioteki gegl
164Group: Documentation
165Requires: gtk-doc-common
38cb6083 166BuildArch: noarch
c067f164
MB
167
168%description apidocs
169gegl library API documentation.
170
171%description apidocs -l pl.UTF-8
172Dokumentacja API biblioteki gegl.
173
efc1bf39
JB
174%package -n vala-gegl
175Summary: Vala API for gegl library
176Summary(pl.UTF-8): API języka Vala dla biblioteki gegl
177Group: Development/Libraries
178Requires: %{name}-devel = %{version}-%{release}
f3156ba0 179BuildArch: noarch
efc1bf39
JB
180
181%description -n vala-gegl
182Vala API for gegl library.
183
184%description -n vala-gegl -l pl.UTF-8
185API języka Vala dla biblioteki gegl.
186
518498c4 187%prep
188%setup -q
15b83213 189%patch1 -p1
fe0ae258 190%patch2 -p1
01a50bbb 191%patch4 -p1
62e7cf53 192%patch5 -p1
518498c4 193
194%build
01a50bbb
JB
195%meson build \
196 %{?with_doc:-Ddocs=true} \
60bacb85 197 %{?with_doc:-Dgtk-doc=true} \
01a50bbb
JB
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
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)
60bacb85 260%doc build/docs/{website,*.html,*.txt}
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.473483 seconds and 4 git commands to generate.