]>
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 |
a1e55ceb JR |
22 | Version: 0.3.0 |
23 | Release: 1 | |
6a990593 | 24 | License: LGPL v3+ |
79c90bc4 | 25 | Group: Libraries |
a1e55ceb JR |
26 | Source0: http://ftp.gimp.org/pub/gegl/0.3/%{name}-%{version}.tar.bz2 |
27 | # Source0-md5: 6d71daab78377d5074a74651bbf7a76a | |
c067f164 | 28 | Patch0: %{name}-lua.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 |
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 | 68 | BuildRequires: python >= 1:2.5.0 |
7f6dd9a8 | 69 | # either one? |
64a724f3 JB |
70 | #BuildRequires: python-pygobject-devel >= 2.26 |
71 | BuildRequires: python-pygobject3-devel >= 3.2 | |
7f6dd9a8 | 72 | BuildRequires: poly2tri-c-devel |
fe0ae258 | 73 | BuildRequires: ruby >= 1.9 |
64a724f3 JB |
74 | %{?with_vala:BuildRequires: vala >= 2:0.20.0} |
75 | Requires: babl >= 0.1.12 | |
52414c2a | 76 | Requires: gdk-pixbuf2 >= 2.18.0 |
64a724f3 | 77 | Requires: glib2 >= 1:2.36.0 |
6827d83c | 78 | Requires: jasper-libs >= 1.900.1 |
efc1bf39 | 79 | Requires: lensfun >= 0.2.5 |
8b4c20ed JB |
80 | Requires: libopenraw >= 0.0.5 |
81 | Requires: librsvg >= 1:2.14.0 | |
518498c4 | 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 | ||
79c90bc4 | 88 | GEGL's original design was made to scratch GIMP's itches for a new |
518498c4 | 89 | compositing and processing core. This core is being designed to have |
79c90bc4 JB |
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. | |
518498c4 | 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 | |
79c90bc4 | 105 | Requires: %{name} = %{version}-%{release} |
64a724f3 JB |
106 | Requires: babl-devel >= 0.1.12 |
107 | Requires: glib2-devel >= 1:2.36.0 | |
518498c4 | 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 | ||
c067f164 MB |
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 | |
38cb6083 ER |
132 | %if "%{_rpmversion}" >= "5" |
133 | BuildArch: noarch | |
134 | %endif | |
c067f164 MB |
135 | |
136 | %description apidocs | |
137 | gegl library API documentation. | |
138 | ||
139 | %description apidocs -l pl.UTF-8 | |
140 | Dokumentacja API biblioteki gegl. | |
141 | ||
efc1bf39 JB |
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 | ||
518498c4 | 154 | %prep |
155 | %setup -q | |
156 | %patch0 -p1 | |
fe0ae258 | 157 | %patch2 -p1 |
d7740cee | 158 | %patch3 -p1 |
99666750 | 159 | %patch5 -p1 |
518498c4 | 160 | |
161 | %build | |
88cd9c64 | 162 | %{__libtoolize} |
72767853 | 163 | %{__aclocal} -I m4 |
518498c4 | 164 | %{__autoconf} |
88cd9c64 | 165 | %{__autoheader} |
518498c4 | 166 | %{__automake} |
c067f164 | 167 | %configure \ |
52414c2a | 168 | CPPFLAGS="%{rpmcppflags} -I/usr/include/umfpack" \ |
ac3efb70 | 169 | --enable-docs%{!?with_doc:=no} \ |
69db310d | 170 | %{?with_introspection:--enable-introspection} \ |
9a0ac5c2 JB |
171 | %{!?with_mmx:--disable-mmx} \ |
172 | %{!?with_sse:--disable-sse} \ | |
8b4c20ed | 173 | --disable-silent-rules \ |
4fda8829 JB |
174 | %{?with_static_libs:--enable-static} \ |
175 | --with-vala%{!?with_vala:=no} | |
518498c4 | 176 | %{__make} |
177 | ||
178 | %install | |
179 | rm -rf $RPM_BUILD_ROOT | |
180 | ||
181 | %{__make} install \ | |
c067f164 | 182 | DESTDIR=$RPM_BUILD_ROOT \ |
fe0ae258 | 183 | gtkdochtmldir=%{_gtkdocdir}/gegl |
c067f164 | 184 | |
4fda8829 | 185 | # obsoleted by pkg-config |
a1e55ceb | 186 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgegl*-0.3.la |
4fda8829 | 187 | # dlopened modules |
a1e55ceb | 188 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gegl-0.3/*.la |
4fda8829 | 189 | %if %{with static_libs} |
a1e55ceb | 190 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gegl-0.3/*.a |
4fda8829 | 191 | %endif |
64a724f3 JB |
192 | # examples with too common names |
193 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/{hello-world,sdl-draw} | |
518498c4 | 194 | |
a1e55ceb | 195 | %find_lang %{name}-0.3 |
69db310d | 196 | |
518498c4 | 197 | %clean |
198 | rm -rf $RPM_BUILD_ROOT | |
199 | ||
200 | %post -p /sbin/ldconfig | |
201 | %postun -p /sbin/ldconfig | |
202 | ||
a1e55ceb | 203 | %files -f %{name}-0.3.lang |
518498c4 | 204 | %defattr(644,root,root,755) |
205 | %doc AUTHORS ChangeLog NEWS README | |
a1e55ceb | 206 | %attr(755,root,root) %{_bindir}/2geglbuffer |
518498c4 | 207 | %attr(755,root,root) %{_bindir}/gegl |
a1e55ceb JR |
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 | |
a1e55ceb JR |
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 | |
518498c4 | 222 | |
223 | %files devel | |
224 | %defattr(644,root,root,755) | |
a1e55ceb JR |
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 | |
518498c4 | 230 | |
4fda8829 | 231 | %if %{with static_libs} |
518498c4 | 232 | %files static |
233 | %defattr(644,root,root,755) | |
a1e55ceb JR |
234 | %{_libdir}/libgegl-0.3.a |
235 | %{_libdir}/libgegl-npd-0.3.a | |
236 | %{_libdir}/libgegl-sc-0.3.a | |
4fda8829 | 237 | %endif |
c067f164 | 238 | |
ac3efb70 | 239 | %if %{with doc} |
c067f164 MB |
240 | %files apidocs |
241 | %defattr(644,root,root,755) | |
242 | %{_gtkdocdir}/gegl | |
d7387e88 | 243 | %endif |
efc1bf39 JB |
244 | |
245 | %if %{with vala} | |
246 | %files -n vala-gegl | |
247 | %defattr(644,root,root,755) | |
a1e55ceb JR |
248 | %{_datadir}/vala/vapi/gegl-0.3.deps |
249 | %{_datadir}/vala/vapi/gegl-0.3.vapi | |
efc1bf39 | 250 | %endif |