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