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