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