]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with mmx # use MMX instructions | |
4 | %bcond_with sse # use SSE instructions | |
5 | %bcond_without doc # apidocs | |
6 | %bcond_without static_libs # static library | |
7 | %bcond_without introspection # API introspection | |
8 | %bcond_without vala # Vala API | |
9 | ||
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 | |
16 | %if %{without introspection} | |
17 | %undefine with_vala | |
18 | %endif | |
19 | ||
20 | %define babl_version 0.1.44 | |
21 | %define mrg_version 0.1.2-1.20180122.1 | |
22 | ||
23 | Summary: Generic image processing library | |
24 | Summary(pl.UTF-8): Ogólna biblioteka przetwarzania obrazu | |
25 | Name: gegl | |
26 | Version: 0.3.30 | |
27 | Release: 1 | |
28 | License: LGPL v3+ | |
29 | Group: Libraries | |
30 | Source0: https://download.gimp.org/pub/gegl/0.3/%{name}-%{version}.tar.bz2 | |
31 | # Source0-md5: c23a0ba775bf0f51afa7a999b3b430a3 | |
32 | Patch2: %{name}-ruby1.9.patch | |
33 | Patch3: %{name}-build.patch | |
34 | Patch5: umfpack.patch | |
35 | URL: http://www.gegl.org/ | |
36 | BuildRequires: OpenEXR-devel >= 1.6.1 | |
37 | BuildRequires: SDL-devel >= 1.2.0 | |
38 | BuildRequires: UMFPACK-devel | |
39 | BuildRequires: asciidoc | |
40 | BuildRequires: autoconf >= 2.54 | |
41 | BuildRequires: automake >= 1:1.11 | |
42 | BuildRequires: babl-devel >= %{babl_version} | |
43 | BuildRequires: cairo-devel >= 1.12.2 | |
44 | BuildRequires: enscript | |
45 | BuildRequires: exiv2-devel >= 0.25 | |
46 | # libavformat >= 55.48.100, libavcodec >= 55.69.100, libswscale >= 2.6.100 | |
47 | BuildRequires: ffmpeg-devel >= 2.3 | |
48 | BuildRequires: gdk-pixbuf2-devel >= 2.32.0 | |
49 | BuildRequires: gettext-tools | |
50 | BuildRequires: gexiv2-devel | |
51 | BuildRequires: glib2-devel >= 1:2.44.0 | |
52 | %{?with_introspection:BuildRequires: gobject-introspection-devel >= 1.32.0} | |
53 | BuildRequires: graphviz | |
54 | BuildRequires: gtk-doc >= 1.0 | |
55 | BuildRequires: intltool >= 0.40.1 | |
56 | BuildRequires: jasper-devel >= 1.900.1 | |
57 | BuildRequires: json-glib-devel | |
58 | BuildRequires: lcms2-devel >= 2.8 | |
59 | BuildRequires: lensfun-devel >= 0.2.5 | |
60 | BuildRequires: libjpeg-devel | |
61 | BuildRequires: libpng-devel | |
62 | BuildRequires: libraw-devel >= 0.15.4 | |
63 | BuildRequires: librsvg-devel >= 1:2.40.6 | |
64 | BuildRequires: libspiro-devel | |
65 | BuildRequires: libtiff-devel >= 4.0.0 | |
66 | BuildRequires: libtool >= 2:2.2 | |
67 | BuildRequires: libv4l-devel >= 1.0.1 | |
68 | BuildRequires: libwebp-devel >= 0.5.0 | |
69 | BuildRequires: lua51-devel >= 5.1.5-2 | |
70 | BuildRequires: mrg-devel >= %{mrg_version} | |
71 | BuildRequires: pango-devel >= 1:1.38.0 | |
72 | BuildRequires: perl-base | |
73 | BuildRequires: pkgconfig | |
74 | BuildRequires: python >= 1:2.5.0 | |
75 | # either one? | |
76 | #BuildRequires: python-pygobject-devel >= 2.26 | |
77 | BuildRequires: python-pygobject3-devel >= 3.2 | |
78 | BuildRequires: poly2tri-c-devel | |
79 | BuildRequires: ruby >= 1.9 | |
80 | %{?with_vala:BuildRequires: vala >= 2:0.20.0} | |
81 | Requires: babl >= %{babl_version} | |
82 | Requires: gdk-pixbuf2 >= 2.32.0 | |
83 | Requires: glib2 >= 1:2.44.0 | |
84 | Requires: jasper-libs >= 1.900.1 | |
85 | Requires: lensfun >= 0.2.5 | |
86 | Requires: libraw >= 0.15.4 | |
87 | Requires: librsvg >= 1:2.40.6 | |
88 | Requires: libtiff >= 4.0.0 | |
89 | Requires: mrg-libs >= %{mrg_version} | |
90 | Requires: pango >= 1:1.38.0 | |
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 | ||
97 | GEGL's original design was made to scratch GIMP's itches for a new | |
98 | compositing and processing core. This core is being designed to have | |
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. | |
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 | |
114 | Requires: %{name} = %{version}-%{release} | |
115 | Requires: babl-devel >= %{babl_version} | |
116 | Requires: glib2-devel >= 1:2.44.0 | |
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 | ||
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 | |
141 | %if "%{_rpmversion}" >= "5" | |
142 | BuildArch: noarch | |
143 | %endif | |
144 | ||
145 | %description apidocs | |
146 | gegl library API documentation. | |
147 | ||
148 | %description apidocs -l pl.UTF-8 | |
149 | Dokumentacja API biblioteki gegl. | |
150 | ||
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} | |
156 | %if "%{_rpmversion}" >= "5" | |
157 | BuildArch: noarch | |
158 | %endif | |
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 | ||
166 | %prep | |
167 | %setup -q | |
168 | %patch2 -p1 | |
169 | %patch3 -p1 | |
170 | %patch5 -p1 | |
171 | ||
172 | %build | |
173 | %{__libtoolize} | |
174 | %{__aclocal} -I m4 | |
175 | %{__autoconf} | |
176 | %{__autoheader} | |
177 | %{__automake} | |
178 | %configure \ | |
179 | CPPFLAGS="%{rpmcppflags} -I/usr/include/umfpack" \ | |
180 | --enable-docs%{!?with_doc:=no} \ | |
181 | %{?with_introspection:--enable-introspection} \ | |
182 | %{!?with_mmx:--disable-mmx} \ | |
183 | %{!?with_sse:--disable-sse} \ | |
184 | --disable-silent-rules \ | |
185 | %{?with_static_libs:--enable-static} \ | |
186 | --with-vala%{!?with_vala:=no} | |
187 | %{__make} | |
188 | ||
189 | %install | |
190 | rm -rf $RPM_BUILD_ROOT | |
191 | ||
192 | %{__make} install \ | |
193 | DESTDIR=$RPM_BUILD_ROOT \ | |
194 | gtkdochtmldir=%{_gtkdocdir}/gegl | |
195 | ||
196 | # obsoleted by pkg-config | |
197 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgegl*-0.3.la | |
198 | # dlopened modules | |
199 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gegl-0.3/*.la | |
200 | %if %{with static_libs} | |
201 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gegl-0.3/*.a | |
202 | %endif | |
203 | ||
204 | %find_lang %{name}-0.3 | |
205 | ||
206 | %clean | |
207 | rm -rf $RPM_BUILD_ROOT | |
208 | ||
209 | %post -p /sbin/ldconfig | |
210 | %postun -p /sbin/ldconfig | |
211 | ||
212 | %files -f %{name}-0.3.lang | |
213 | %defattr(644,root,root,755) | |
214 | %doc AUTHORS ChangeLog NEWS README | |
215 | %attr(755,root,root) %{_bindir}/gcut | |
216 | %attr(755,root,root) %{_bindir}/gegl | |
217 | %attr(755,root,root) %{_bindir}/gegl-imgcmp | |
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 | |
226 | ||
227 | %files devel | |
228 | %defattr(644,root,root,755) | |
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 | |
234 | ||
235 | %if %{with static_libs} | |
236 | %files static | |
237 | %defattr(644,root,root,755) | |
238 | %{_libdir}/libgegl-0.3.a | |
239 | %{_libdir}/libgegl-npd-0.3.a | |
240 | %{_libdir}/libgegl-sc-0.3.a | |
241 | %endif | |
242 | ||
243 | %if %{with doc} | |
244 | %files apidocs | |
245 | %defattr(644,root,root,755) | |
246 | %{_gtkdocdir}/gegl | |
247 | %endif | |
248 | ||
249 | %if %{with vala} | |
250 | %files -n vala-gegl | |
251 | %defattr(644,root,root,755) | |
252 | %{_datadir}/vala/vapi/gegl-0.3.deps | |
253 | %{_datadir}/vala/vapi/gegl-0.3.vapi | |
254 | %endif |