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