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