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