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