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