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