]> git.pld-linux.org Git - packages/gegl.git/blame - gegl.spec
- updated to 0.4.16
[packages/gegl.git] / gegl.spec
CommitLineData
9a0ac5c2 1#
975cab40
AG
2# TODO:
3# - links against zstd (some of the BR: misses dep on zstd)
4#
9a0ac5c2 5# Conditional build:
69db310d
JB
6%bcond_with mmx # use MMX instructions
7%bcond_with sse # use SSE instructions
be2ddda6 8%bcond_without doc # apidocs
4ad808cf 9%bcond_without lua # without lua support
4fda8829 10%bcond_without static_libs # static library
a1e55ceb
JR
11%bcond_without introspection # API introspection
12%bcond_without vala # Vala API
38cb6083 13
9a0ac5c2
JB
14%ifarch %{x8664} athlon pentium3 pentium4
15%define with_mmx 1
16%endif
17%ifarch %{x8664} pentium3 pentium4
18%define with_sse 1
19%endif
69db310d
JB
20%if %{without introspection}
21%undefine with_vala
22%endif
7e0a13d7 23
4ad808cf
AG
24%ifarch x32
25%undefine with_lua
26%endif
27
2d36d865
AG
28%define babl_version 0.1.62
29%define mrg_version 0.1.2-1.20190322.1
7e0a13d7 30
518498c4 31Summary: Generic image processing library
79c90bc4 32Summary(pl.UTF-8): Ogólna biblioteka przetwarzania obrazu
518498c4 33Name: gegl
07c05795
JB
34Version: 0.4.16
35Release: 1
6a990593 36License: LGPL v3+
79c90bc4 37Group: Libraries
00609e3b 38Source0: https://download.gimp.org/pub/gegl/0.4/%{name}-%{version}.tar.bz2
07c05795 39# Source0-md5: cb17ac529a882f25f54c0115c63d4027
15b83213
JP
40Patch1: %{name}-ruby1.9.patch
41Patch2: %{name}-build.patch
42Patch3: umfpack.patch
ca3bc429 43Patch5: %{name}-without-lua.patch
79c90bc4 44URL: http://www.gegl.org/
21b17357
MB
45BuildRequires: OpenEXR-devel >= 1.6.1
46BuildRequires: SDL-devel >= 1.2.0
52414c2a 47BuildRequires: UMFPACK-devel
6a990593 48BuildRequires: asciidoc
88cd9c64 49BuildRequires: autoconf >= 2.54
efc1bf39 50BuildRequires: automake >= 1:1.11
7e0a13d7 51BuildRequires: babl-devel >= %{babl_version}
21b17357 52BuildRequires: cairo-devel >= 1.12.2
88cd9c64 53BuildRequires: enscript
21b17357 54BuildRequires: exiv2-devel >= 0.25
07c05795 55# libavformat >= 55.48.100, libavcodec >= 55.69.100, libavutil >= 52.92.100, libswscale >= 2.6.100
6e8b462c 56BuildRequires: ffmpeg-devel >= 2.3
596a9e34 57BuildRequires: gdk-pixbuf2-devel >= 2.32.0
07c05795 58BuildRequires: gettext-tools >= 0.19.8
1aafda58 59BuildRequires: gexiv2-devel
596a9e34 60BuildRequires: glib2-devel >= 1:2.44.0
64a724f3 61%{?with_introspection:BuildRequires: gobject-introspection-devel >= 1.32.0}
88cd9c64 62BuildRequires: graphviz
8b4c20ed 63BuildRequires: gtk-doc >= 1.0
52414c2a 64BuildRequires: jasper-devel >= 1.900.1
64a724f3 65BuildRequires: json-glib-devel
21b17357 66BuildRequires: lcms2-devel >= 2.8
efc1bf39 67BuildRequires: lensfun-devel >= 0.2.5
518498c4 68BuildRequires: libjpeg-devel
07c05795 69BuildRequires: libpng-devel >= 2:1.6.0
1aafda58 70BuildRequires: libraw-devel >= 0.15.4
21b17357 71BuildRequires: librsvg-devel >= 1:2.40.6
8b4c20ed 72BuildRequires: libspiro-devel
1aafda58 73BuildRequires: libtiff-devel >= 4.0.0
efc1bf39 74BuildRequires: libtool >= 2:2.2
07c05795
JB
75# as of 0.4.16, internal copy of code is used
76#BuildRequires: libv4l-devel >= 1.0.1
21b17357 77BuildRequires: libwebp-devel >= 0.5.0
4ad808cf 78%if %{with lua}
b0d78941 79BuildRequires: luajit-devel >= 2.0.4
d3bbf51b 80BuildRequires: lua51-devel >= 5.1.5-2
4ad808cf 81%endif
7e0a13d7 82BuildRequires: mrg-devel >= %{mrg_version}
11e6080a 83BuildRequires: pango-devel >= 1:1.38.0
07c05795 84BuildRequires: perl-base >= 5
88cd9c64 85BuildRequires: pkgconfig
b0d78941 86BuildRequires: poppler-glib-devel >= 0.71.0
64a724f3 87BuildRequires: python >= 1:2.5.0
7f6dd9a8 88# either one?
64a724f3
JB
89#BuildRequires: python-pygobject-devel >= 2.26
90BuildRequires: python-pygobject3-devel >= 3.2
7f6dd9a8 91BuildRequires: poly2tri-c-devel
fe0ae258 92BuildRequires: ruby >= 1.9
64a724f3 93%{?with_vala:BuildRequires: vala >= 2:0.20.0}
07c05795 94BuildRequires: zlib-devel >= 1.2.0
7e0a13d7 95Requires: babl >= %{babl_version}
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
07c05795 100Requires: lcms2 >= 2.8
efc1bf39 101Requires: lensfun >= 0.2.5
1aafda58 102Requires: libraw >= 0.15.4
21b17357 103Requires: librsvg >= 1:2.40.6
1aafda58 104Requires: libtiff >= 4.0.0
07c05795 105Requires: libwebp >= 0.5.0
7e0a13d7 106Requires: mrg-libs >= %{mrg_version}
11e6080a 107Requires: pango >= 1:1.38.0
07c05795
JB
108Requires: poppler-glib >= 0.71.0
109Requires: zlib >= 1.2.0
518498c4 110BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
111
112%description
113GEGL (Generic Graphics Library) is a graph based image processing
114framework.
115
79c90bc4 116GEGL's original design was made to scratch GIMP's itches for a new
518498c4 117compositing and processing core. This core is being designed to have
79c90bc4
JB
118minimal dependencies and a simple well defined API.
119
120%description -l pl.UTF-8
121GEGL (Generic Graphics Library) to oparty na grafice szkielet do
122przetwarzania obrazu.
123
124Pierwotny projekt biblioteki GEGL powstał z myślą o nowym rdzeniu do
125składania i przetwarzania obrazu w GIMP-ie. Rdzeń ten jest
126projektowany tak, by miał minimalne zależności i proste, dobrze
127zdefiniowane API.
518498c4 128
129%package devel
130Summary: Header files for gegl library
131Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gegl
132Group: Development/Libraries
79c90bc4 133Requires: %{name} = %{version}-%{release}
7e0a13d7 134Requires: babl-devel >= %{babl_version}
596a9e34 135Requires: glib2-devel >= 1:2.44.0
07c05795
JB
136Requires: json-glib-devel
137Requires: poly2tri-c-devel
518498c4 138
139%description devel
140Header files for gegl library.
141
142%description devel -l pl.UTF-8
143Pliki nagłówkowe biblioteki gegl.
144
145%package static
146Summary: Static gegl library
147Summary(pl.UTF-8): Statyczna biblioteka gegl
148Group: Development/Libraries
149Requires: %{name}-devel = %{version}-%{release}
150
151%description static
152Static gegl library.
153
154%description static -l pl.UTF-8
155Statyczna biblioteka gegl.
156
c067f164
MB
157%package apidocs
158Summary: gegl library API documentation
159Summary(pl.UTF-8): Dokumentacja API biblioteki gegl
160Group: Documentation
161Requires: gtk-doc-common
38cb6083
ER
162%if "%{_rpmversion}" >= "5"
163BuildArch: noarch
164%endif
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
ER
177%if "%{_rpmversion}" >= "5"
178BuildArch: noarch
179%endif
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
d7740cee 191%patch3 -p1
ca3bc429 192%patch5 -p1
518498c4 193
194%build
88cd9c64 195%{__libtoolize}
72767853 196%{__aclocal} -I m4
518498c4 197%{__autoconf}
88cd9c64 198%{__autoheader}
518498c4 199%{__automake}
c067f164 200%configure \
52414c2a 201 CPPFLAGS="%{rpmcppflags} -I/usr/include/umfpack" \
ac3efb70 202 --enable-docs%{!?with_doc:=no} \
69db310d 203 %{?with_introspection:--enable-introspection} \
9a0ac5c2
JB
204 %{!?with_mmx:--disable-mmx} \
205 %{!?with_sse:--disable-sse} \
8b4c20ed 206 --disable-silent-rules \
4fda8829 207 %{?with_static_libs:--enable-static} \
4ad808cf
AG
208 --with-vala%{!?with_vala:=no} \
209 %{__with_without lua}
518498c4 210%{__make}
211
212%install
213rm -rf $RPM_BUILD_ROOT
214
215%{__make} install \
c067f164 216 DESTDIR=$RPM_BUILD_ROOT \
fe0ae258 217 gtkdochtmldir=%{_gtkdocdir}/gegl
c067f164 218
4fda8829 219# obsoleted by pkg-config
00609e3b 220%{__rm} $RPM_BUILD_ROOT%{_libdir}/libgegl*-0.4.la
4fda8829 221# dlopened modules
00609e3b 222%{__rm} $RPM_BUILD_ROOT%{_libdir}/gegl-0.4/*.la
4fda8829 223%if %{with static_libs}
00609e3b 224%{__rm} $RPM_BUILD_ROOT%{_libdir}/gegl-0.4/*.a
4fda8829 225%endif
518498c4 226
00609e3b 227%find_lang %{name}-0.4
69db310d 228
518498c4 229%clean
230rm -rf $RPM_BUILD_ROOT
231
232%post -p /sbin/ldconfig
233%postun -p /sbin/ldconfig
234
00609e3b 235%files -f %{name}-0.4.lang
518498c4 236%defattr(644,root,root,755)
237%doc AUTHORS ChangeLog NEWS README
7e0a13d7 238%attr(755,root,root) %{_bindir}/gcut
518498c4 239%attr(755,root,root) %{_bindir}/gegl
a1e55ceb 240%attr(755,root,root) %{_bindir}/gegl-imgcmp
00609e3b
AM
241%attr(755,root,root) %{_libdir}/libgegl-0.4.so.*.*.*
242%attr(755,root,root) %ghost %{_libdir}/libgegl-0.4.so.0
243%attr(755,root,root) %{_libdir}/libgegl-npd-0.4.so
244%attr(755,root,root) %{_libdir}/libgegl-sc-0.4.so
245%{?with_introspection:%{_libdir}/girepository-1.0/Gegl-0.4.typelib}
246%dir %{_libdir}/gegl-0.4
247%attr(755,root,root) %{_libdir}/gegl-0.4/*.so
248%{_libdir}/gegl-0.4/grey2.json
518498c4 249
250%files devel
251%defattr(644,root,root,755)
00609e3b
AM
252%attr(755,root,root) %{_libdir}/libgegl-0.4.so
253%{_includedir}/gegl-0.4
254%{?with_introspection:%{_datadir}/gir-1.0/Gegl-0.4.gir}
255%{_pkgconfigdir}/gegl-0.4.pc
256%{_pkgconfigdir}/gegl-sc-0.4.pc
518498c4 257
4fda8829 258%if %{with static_libs}
518498c4 259%files static
260%defattr(644,root,root,755)
00609e3b
AM
261%{_libdir}/libgegl-0.4.a
262%{_libdir}/libgegl-npd-0.4.a
263%{_libdir}/libgegl-sc-0.4.a
4fda8829 264%endif
c067f164 265
ac3efb70 266%if %{with doc}
c067f164
MB
267%files apidocs
268%defattr(644,root,root,755)
269%{_gtkdocdir}/gegl
d7387e88 270%endif
efc1bf39
JB
271
272%if %{with vala}
273%files -n vala-gegl
274%defattr(644,root,root,755)
00609e3b
AM
275%{_datadir}/vala/vapi/gegl-0.4.deps
276%{_datadir}/vala/vapi/gegl-0.4.vapi
efc1bf39 277%endif
This page took 0.120496 seconds and 4 git commands to generate.