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