]>
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 | ||
01a50bbb | 17 | %define babl_version 0.1.72 |
2d36d865 | 18 | %define mrg_version 0.1.2-1.20190322.1 |
7e0a13d7 | 19 | |
518498c4 | 20 | Summary: Generic image processing library |
79c90bc4 | 21 | Summary(pl.UTF-8): Ogólna biblioteka przetwarzania obrazu |
518498c4 | 22 | Name: gegl |
01a50bbb JB |
23 | Version: 0.4.18 |
24 | Release: 1 | |
25 | License: LGPL v3+/GPL v3+ | |
79c90bc4 | 26 | Group: Libraries |
01a50bbb JB |
27 | Source0: https://download.gimp.org/pub/gegl/0.4/%{name}-%{version}.tar.xz |
28 | # Source0-md5: 567f9e6c0a0a1a4145a1a1b254ca9ac5 | |
15b83213 JP |
29 | Patch1: %{name}-ruby1.9.patch |
30 | Patch2: %{name}-build.patch | |
31 | Patch3: umfpack.patch | |
01a50bbb | 32 | Patch4: %{name}-link.patch |
79c90bc4 | 33 | URL: http://www.gegl.org/ |
21b17357 | 34 | BuildRequires: OpenEXR-devel >= 1.6.1 |
01a50bbb | 35 | BuildRequires: SDL2-devel >= 2.0.5 |
52414c2a | 36 | BuildRequires: UMFPACK-devel |
6a990593 | 37 | BuildRequires: asciidoc |
7e0a13d7 | 38 | BuildRequires: babl-devel >= %{babl_version} |
01a50bbb | 39 | BuildRequires: bash |
21b17357 | 40 | BuildRequires: cairo-devel >= 1.12.2 |
88cd9c64 | 41 | BuildRequires: enscript |
21b17357 | 42 | BuildRequires: exiv2-devel >= 0.25 |
07c05795 | 43 | # libavformat >= 55.48.100, libavcodec >= 55.69.100, libavutil >= 52.92.100, libswscale >= 2.6.100 |
6e8b462c | 44 | BuildRequires: ffmpeg-devel >= 2.3 |
596a9e34 | 45 | BuildRequires: gdk-pixbuf2-devel >= 2.32.0 |
07c05795 | 46 | BuildRequires: gettext-tools >= 0.19.8 |
1aafda58 | 47 | BuildRequires: gexiv2-devel |
596a9e34 | 48 | BuildRequires: glib2-devel >= 1:2.44.0 |
64a724f3 | 49 | %{?with_introspection:BuildRequires: gobject-introspection-devel >= 1.32.0} |
88cd9c64 | 50 | BuildRequires: graphviz |
8b4c20ed | 51 | BuildRequires: gtk-doc >= 1.0 |
52414c2a | 52 | BuildRequires: jasper-devel >= 1.900.1 |
01a50bbb | 53 | BuildRequires: json-glib-devel >= 1.2.6 |
21b17357 | 54 | BuildRequires: lcms2-devel >= 2.8 |
efc1bf39 | 55 | BuildRequires: lensfun-devel >= 0.2.5 |
01a50bbb JB |
56 | BuildRequires: libjpeg-devel >= 1.0.0 |
57 | BuildRequires: libnsgif-devel | |
07c05795 | 58 | BuildRequires: libpng-devel >= 2:1.6.0 |
1aafda58 | 59 | BuildRequires: libraw-devel >= 0.15.4 |
21b17357 | 60 | BuildRequires: librsvg-devel >= 1:2.40.6 |
01a50bbb | 61 | BuildRequires: libspiro-devel >= 0.5.0 |
1aafda58 | 62 | BuildRequires: libtiff-devel >= 4.0.0 |
01a50bbb | 63 | BuildRequires: libv4l-devel >= 1.0.1 |
21b17357 | 64 | BuildRequires: libwebp-devel >= 0.5.0 |
4ad808cf | 65 | %if %{with lua} |
b0d78941 | 66 | BuildRequires: luajit-devel >= 2.0.4 |
d3bbf51b | 67 | BuildRequires: lua51-devel >= 5.1.5-2 |
4ad808cf | 68 | %endif |
01a50bbb | 69 | BuildRequires: meson >= 0.50.0 |
7e0a13d7 | 70 | BuildRequires: mrg-devel >= %{mrg_version} |
01a50bbb | 71 | BuildRequires: ninja >= 1.5 |
11e6080a | 72 | BuildRequires: pango-devel >= 1:1.38.0 |
07c05795 | 73 | BuildRequires: perl-base >= 5 |
88cd9c64 | 74 | BuildRequires: pkgconfig |
b0d78941 | 75 | BuildRequires: poppler-glib-devel >= 0.71.0 |
01a50bbb JB |
76 | BuildRequires: python3 >= 1:3.2 |
77 | %if %{with introspection} | |
78 | # for tests only | |
79 | #BuildRequires: python-pygobject3-devel >= 3.2.0 | |
80 | %endif | |
7f6dd9a8 | 81 | BuildRequires: poly2tri-c-devel |
01a50bbb | 82 | BuildRequires: rpmbuild(macros) >= 1.736 |
fe0ae258 | 83 | BuildRequires: ruby >= 1.9 |
01a50bbb | 84 | BuildRequires: tar >= 1:1.22 |
64a724f3 | 85 | %{?with_vala:BuildRequires: vala >= 2:0.20.0} |
01a50bbb | 86 | BuildRequires: xz |
07c05795 | 87 | BuildRequires: zlib-devel >= 1.2.0 |
01a50bbb JB |
88 | Requires: OpenEXR >= 1.6.1 |
89 | Requires: SDL2 >= 2.0.5 | |
7e0a13d7 | 90 | Requires: babl >= %{babl_version} |
07c05795 | 91 | Requires: cairo >= 1.12.2 |
596a9e34 JB |
92 | Requires: gdk-pixbuf2 >= 2.32.0 |
93 | Requires: glib2 >= 1:2.44.0 | |
6827d83c | 94 | Requires: jasper-libs >= 1.900.1 |
01a50bbb | 95 | Requires: json-glib >= 1.2.6 |
07c05795 | 96 | Requires: lcms2 >= 2.8 |
efc1bf39 | 97 | Requires: lensfun >= 0.2.5 |
1aafda58 | 98 | Requires: libraw >= 0.15.4 |
21b17357 | 99 | Requires: librsvg >= 1:2.40.6 |
01a50bbb | 100 | Requires: libspiro >= 0.5.0 |
1aafda58 | 101 | Requires: libtiff >= 4.0.0 |
07c05795 | 102 | Requires: libwebp >= 0.5.0 |
7e0a13d7 | 103 | Requires: mrg-libs >= %{mrg_version} |
11e6080a | 104 | Requires: pango >= 1:1.38.0 |
07c05795 JB |
105 | Requires: poppler-glib >= 0.71.0 |
106 | Requires: zlib >= 1.2.0 | |
518498c4 | 107 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
108 | ||
109 | %description | |
110 | GEGL (Generic Graphics Library) is a graph based image processing | |
111 | framework. | |
112 | ||
79c90bc4 | 113 | GEGL's original design was made to scratch GIMP's itches for a new |
518498c4 | 114 | compositing and processing core. This core is being designed to have |
79c90bc4 JB |
115 | minimal dependencies and a simple well defined API. |
116 | ||
117 | %description -l pl.UTF-8 | |
118 | GEGL (Generic Graphics Library) to oparty na grafice szkielet do | |
119 | przetwarzania obrazu. | |
120 | ||
121 | Pierwotny projekt biblioteki GEGL powstał z myślą o nowym rdzeniu do | |
122 | składania i przetwarzania obrazu w GIMP-ie. Rdzeń ten jest | |
123 | projektowany tak, by miał minimalne zależności i proste, dobrze | |
124 | zdefiniowane API. | |
518498c4 | 125 | |
126 | %package devel | |
127 | Summary: Header files for gegl library | |
128 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gegl | |
129 | Group: Development/Libraries | |
79c90bc4 | 130 | Requires: %{name} = %{version}-%{release} |
7e0a13d7 | 131 | Requires: babl-devel >= %{babl_version} |
596a9e34 | 132 | Requires: glib2-devel >= 1:2.44.0 |
01a50bbb | 133 | Requires: json-glib-devel >= 1.2.6 |
07c05795 | 134 | Requires: poly2tri-c-devel |
518498c4 | 135 | |
136 | %description devel | |
137 | Header files for gegl library. | |
138 | ||
139 | %description devel -l pl.UTF-8 | |
140 | Pliki nagłówkowe biblioteki gegl. | |
141 | ||
142 | %package static | |
143 | Summary: Static gegl library | |
144 | Summary(pl.UTF-8): Statyczna biblioteka gegl | |
145 | Group: Development/Libraries | |
146 | Requires: %{name}-devel = %{version}-%{release} | |
147 | ||
148 | %description static | |
149 | Static gegl library. | |
150 | ||
151 | %description static -l pl.UTF-8 | |
152 | Statyczna biblioteka gegl. | |
153 | ||
c067f164 MB |
154 | %package apidocs |
155 | Summary: gegl library API documentation | |
156 | Summary(pl.UTF-8): Dokumentacja API biblioteki gegl | |
157 | Group: Documentation | |
158 | Requires: gtk-doc-common | |
38cb6083 ER |
159 | %if "%{_rpmversion}" >= "5" |
160 | BuildArch: noarch | |
161 | %endif | |
c067f164 MB |
162 | |
163 | %description apidocs | |
164 | gegl library API documentation. | |
165 | ||
166 | %description apidocs -l pl.UTF-8 | |
167 | Dokumentacja API biblioteki gegl. | |
168 | ||
efc1bf39 JB |
169 | %package -n vala-gegl |
170 | Summary: Vala API for gegl library | |
171 | Summary(pl.UTF-8): API języka Vala dla biblioteki gegl | |
172 | Group: Development/Libraries | |
173 | Requires: %{name}-devel = %{version}-%{release} | |
f3156ba0 ER |
174 | %if "%{_rpmversion}" >= "5" |
175 | BuildArch: noarch | |
176 | %endif | |
efc1bf39 JB |
177 | |
178 | %description -n vala-gegl | |
179 | Vala API for gegl library. | |
180 | ||
181 | %description -n vala-gegl -l pl.UTF-8 | |
182 | API 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 |
192 | CPPFLAGS="%{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 | |
202 | rm -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 |
209 | rm -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 |