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