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