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