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