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