]>
Commit | Line | Data |
---|---|---|
9a0ac5c2 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with mmx # use MMX instructions | |
4 | %bcond_with sse # use SSE instructions | |
5 | # | |
6 | %ifarch %{x8664} athlon pentium3 pentium4 | |
7 | %define with_mmx 1 | |
8 | %endif | |
9 | %ifarch %{x8664} pentium3 pentium4 | |
10 | %define with_sse 1 | |
11 | %endif | |
518498c4 | 12 | Summary: Generic image processing library |
79c90bc4 | 13 | Summary(pl.UTF-8): Ogólna biblioteka przetwarzania obrazu |
518498c4 | 14 | Name: gegl |
04291d9d | 15 | Version: 0.1.0 |
6b22542a | 16 | Release: 3 |
6a990593 | 17 | License: LGPL v3+ |
79c90bc4 | 18 | Group: Libraries |
04291d9d AM |
19 | Source0: ftp://ftp.gtk.org/pub/gegl/0.1/%{name}-%{version}.tar.bz2 |
20 | # Source0-md5: 5a989ad617801c5dbec3d47c30bd64f0 | |
c067f164 | 21 | Patch0: %{name}-lua.patch |
78abcc66 | 22 | Patch1: %{name}-ffmpeg.patch |
79c90bc4 | 23 | URL: http://www.gegl.org/ |
518498c4 | 24 | BuildRequires: OpenEXR-devel |
88cd9c64 | 25 | BuildRequires: SDL-devel |
6a990593 | 26 | BuildRequires: asciidoc |
88cd9c64 | 27 | BuildRequires: autoconf >= 2.54 |
518498c4 | 28 | BuildRequires: automake |
04291d9d | 29 | BuildRequires: babl-devel >= 0.1.0 |
6a990593 | 30 | BuildRequires: cairo-devel |
88cd9c64 | 31 | BuildRequires: enscript |
aec257f6 | 32 | BuildRequires: ffmpeg-devel >= 0.4.9-4.20080930.1 |
6a990593 | 33 | BuildRequires: glib2-devel >= 1:2.14.1 |
88cd9c64 | 34 | BuildRequires: graphviz |
c067f164 MB |
35 | BuildRequires: gtk+2-devel >= 2:2.12.0 |
36 | BuildRequires: gtk-doc | |
518498c4 | 37 | BuildRequires: libjpeg-devel |
6a990593 | 38 | BuildRequires: libpng-devel |
88cd9c64 JB |
39 | BuildRequires: librsvg-devel >= 1:2.14.0 |
40 | BuildRequires: libtool | |
6a990593 JB |
41 | BuildRequires: lua51-devel >= 5.1.0 |
42 | BuildRequires: pango-devel >= 1:1.10 | |
88cd9c64 JB |
43 | BuildRequires: perl-base |
44 | BuildRequires: pkgconfig | |
45 | BuildRequires: ruby | |
518498c4 | 46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
48 | %description | |
49 | GEGL (Generic Graphics Library) is a graph based image processing | |
50 | framework. | |
51 | ||
79c90bc4 | 52 | GEGL's original design was made to scratch GIMP's itches for a new |
518498c4 | 53 | compositing and processing core. This core is being designed to have |
79c90bc4 JB |
54 | minimal dependencies and a simple well defined API. |
55 | ||
56 | %description -l pl.UTF-8 | |
57 | GEGL (Generic Graphics Library) to oparty na grafice szkielet do | |
58 | przetwarzania obrazu. | |
59 | ||
60 | Pierwotny projekt biblioteki GEGL powstał z myślą o nowym rdzeniu do | |
61 | składania i przetwarzania obrazu w GIMP-ie. Rdzeń ten jest | |
62 | projektowany tak, by miał minimalne zależności i proste, dobrze | |
63 | zdefiniowane API. | |
518498c4 | 64 | |
65 | %package devel | |
66 | Summary: Header files for gegl library | |
67 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gegl | |
68 | Group: Development/Libraries | |
79c90bc4 | 69 | Requires: %{name} = %{version}-%{release} |
6a990593 JB |
70 | Requires: babl-devel >= 0.0.20 |
71 | Requires: glib2-devel >= 1:2.14.1 | |
518498c4 | 72 | |
73 | %description devel | |
74 | Header files for gegl library. | |
75 | ||
76 | %description devel -l pl.UTF-8 | |
77 | Pliki nagłówkowe biblioteki gegl. | |
78 | ||
79 | %package static | |
80 | Summary: Static gegl library | |
81 | Summary(pl.UTF-8): Statyczna biblioteka gegl | |
82 | Group: Development/Libraries | |
83 | Requires: %{name}-devel = %{version}-%{release} | |
84 | ||
85 | %description static | |
86 | Static gegl library. | |
87 | ||
88 | %description static -l pl.UTF-8 | |
89 | Statyczna biblioteka gegl. | |
90 | ||
c067f164 MB |
91 | %package apidocs |
92 | Summary: gegl library API documentation | |
93 | Summary(pl.UTF-8): Dokumentacja API biblioteki gegl | |
94 | Group: Documentation | |
95 | Requires: gtk-doc-common | |
96 | ||
97 | %description apidocs | |
98 | gegl library API documentation. | |
99 | ||
100 | %description apidocs -l pl.UTF-8 | |
101 | Dokumentacja API biblioteki gegl. | |
102 | ||
518498c4 | 103 | %prep |
104 | %setup -q | |
105 | %patch0 -p1 | |
78abcc66 | 106 | %patch1 -p1 |
518498c4 | 107 | |
108 | %build | |
88cd9c64 | 109 | %{__libtoolize} |
518498c4 | 110 | %{__aclocal} |
111 | %{__autoconf} | |
88cd9c64 | 112 | %{__autoheader} |
518498c4 | 113 | %{__automake} |
c067f164 | 114 | %configure \ |
9a0ac5c2 JB |
115 | %{!?with_mmx:--disable-mmx} \ |
116 | %{!?with_sse:--disable-sse} \ | |
c067f164 | 117 | --enable-static |
518498c4 | 118 | %{__make} |
119 | ||
120 | %install | |
121 | rm -rf $RPM_BUILD_ROOT | |
122 | ||
123 | %{__make} install \ | |
c067f164 MB |
124 | DESTDIR=$RPM_BUILD_ROOT \ |
125 | help_dir=$RPM_BUILD_ROOT%{_gtkdocdir}/gegl | |
126 | ||
127 | rm -f $RPM_BUILD_ROOT%{_libdir}/gegl-0.0/*.{a,la} | |
518498c4 | 128 | |
129 | %clean | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
132 | %post -p /sbin/ldconfig | |
133 | %postun -p /sbin/ldconfig | |
134 | ||
135 | %files | |
136 | %defattr(644,root,root,755) | |
137 | %doc AUTHORS ChangeLog NEWS README | |
138 | %attr(755,root,root) %{_bindir}/gegl | |
c067f164 MB |
139 | %attr(755,root,root) %{_libdir}/libgegl-0.0.so.*.*.* |
140 | %attr(755,root,root) %ghost %{_libdir}/libgegl-0.0.so.0 | |
141 | %dir %{_libdir}/gegl-0.0 | |
142 | %attr(755,root,root) %{_libdir}/gegl-0.0/*.so | |
518498c4 | 143 | |
144 | %files devel | |
145 | %defattr(644,root,root,755) | |
c067f164 MB |
146 | %attr(755,root,root) %{_libdir}/libgegl-0.0.so |
147 | %{_libdir}/libgegl-0.0.la | |
148 | %{_includedir}/gegl-0.0 | |
518498c4 | 149 | %{_pkgconfigdir}/gegl.pc |
150 | ||
151 | %files static | |
152 | %defattr(644,root,root,755) | |
c067f164 MB |
153 | %{_libdir}/libgegl-0.0.a |
154 | ||
155 | %files apidocs | |
156 | %defattr(644,root,root,755) | |
157 | %{_gtkdocdir}/gegl |