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