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