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