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