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