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