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