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