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