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