]> git.pld-linux.org Git - packages/gegl.git/blame - gegl.spec
- release 12 (by relup.sh)
[packages/gegl.git] / gegl.spec
CommitLineData
9a0ac5c2
JB
1#
2# Conditional build:
69db310d
JB
3%bcond_with mmx # use MMX instructions
4%bcond_with sse # use SSE instructions
be2ddda6 5%bcond_without doc # apidocs
4fda8829 6%bcond_without static_libs # static library
8b7a24b4
JR
7# reenable when new babl will arrive that actually is able to build
8%bcond_with introspection # API introspection
d7740cee 9# reenable when new babl will arrive that actually is able to build
69db310d 10%bcond_with vala # Vala API
38cb6083 11
9a0ac5c2
JB
12%ifarch %{x8664} athlon pentium3 pentium4
13%define with_mmx 1
14%endif
15%ifarch %{x8664} pentium3 pentium4
16%define with_sse 1
17%endif
69db310d
JB
18%if %{without introspection}
19%undefine with_vala
20%endif
518498c4 21Summary: Generic image processing library
79c90bc4 22Summary(pl.UTF-8): Ogólna biblioteka przetwarzania obrazu
518498c4 23Name: gegl
373eb325 24Version: 0.2.0
33087ed0 25Release: 12
6a990593 26License: LGPL v3+
79c90bc4 27Group: Libraries
ac6a89c9 28Source0: http://ftp.gimp.org/pub/gegl/0.2/%{name}-%{version}.tar.bz2
373eb325 29# Source0-md5: 32b00002f1f1e316115c4ed922e1dec8
c067f164 30Patch0: %{name}-lua.patch
78abcc66 31Patch1: %{name}-ffmpeg.patch
fe0ae258 32Patch2: %{name}-ruby1.9.patch
d7740cee 33Patch3: %{name}-build.patch
69db310d 34Patch4: %{name}-introspection.patch
99666750
JR
35Patch5: umfpack.patch
36Patch6: CVE-2012-4433.patch
79c90bc4 37URL: http://www.gegl.org/
38cb6083 38%{?with_introspection:BuildRequires: /usr/share/gir-1.0/Babl-0.1.gir}
518498c4 39BuildRequires: OpenEXR-devel
88cd9c64 40BuildRequires: SDL-devel
52414c2a 41BuildRequires: UMFPACK-devel
6a990593 42BuildRequires: asciidoc
88cd9c64 43BuildRequires: autoconf >= 2.54
efc1bf39 44BuildRequires: automake >= 1:1.11
373eb325 45BuildRequires: babl-devel >= 0.1.10
6a990593 46BuildRequires: cairo-devel
88cd9c64 47BuildRequires: enscript
52414c2a 48BuildRequires: exiv2-devel
1a693983 49BuildRequires: ffmpeg-devel >= 0.8
52414c2a 50BuildRequires: gdk-pixbuf2-devel >= 2.18.0
efc1bf39 51BuildRequires: glib2-devel >= 1:2.28.0
69db310d 52%{?with_introspection:BuildRequires: gobject-introspection-devel >= 0.10.0}
88cd9c64 53BuildRequires: graphviz
8b4c20ed 54BuildRequires: gtk-doc >= 1.0
69db310d 55BuildRequires: intltool >= 0.40.1
52414c2a 56BuildRequires: jasper-devel >= 1.900.1
efc1bf39 57BuildRequires: lensfun-devel >= 0.2.5
518498c4 58BuildRequires: libjpeg-devel
8b4c20ed 59BuildRequires: libopenraw-devel >= 0.0.5
6a990593 60BuildRequires: libpng-devel
88cd9c64 61BuildRequires: librsvg-devel >= 1:2.14.0
8b4c20ed 62BuildRequires: libspiro-devel
efc1bf39
JB
63BuildRequires: libtool >= 2:2.2
64BuildRequires: libv4l-devel
6a990593
JB
65BuildRequires: lua51-devel >= 5.1.0
66BuildRequires: pango-devel >= 1:1.10
88cd9c64
JB
67BuildRequires: perl-base
68BuildRequires: pkgconfig
fe0ae258 69BuildRequires: ruby >= 1.9
efc1bf39 70%{?with_vala:BuildRequires: vala}
373eb325 71Requires: babl >= 0.1.10
52414c2a 72Requires: gdk-pixbuf2 >= 2.18.0
38cb6083 73Requires: glib2 >= 1:2.28.0
6827d83c 74Requires: jasper-libs >= 1.900.1
efc1bf39 75Requires: lensfun >= 0.2.5
8b4c20ed
JB
76Requires: libopenraw >= 0.0.5
77Requires: librsvg >= 1:2.14.0
518498c4 78BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
79
80%description
81GEGL (Generic Graphics Library) is a graph based image processing
82framework.
83
79c90bc4 84GEGL's original design was made to scratch GIMP's itches for a new
518498c4 85compositing and processing core. This core is being designed to have
79c90bc4
JB
86minimal dependencies and a simple well defined API.
87
88%description -l pl.UTF-8
89GEGL (Generic Graphics Library) to oparty na grafice szkielet do
90przetwarzania obrazu.
91
92Pierwotny projekt biblioteki GEGL powstał z myślą o nowym rdzeniu do
93składania i przetwarzania obrazu w GIMP-ie. Rdzeń ten jest
94projektowany tak, by miał minimalne zależności i proste, dobrze
95zdefiniowane API.
518498c4 96
97%package devel
98Summary: Header files for gegl library
99Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gegl
100Group: Development/Libraries
79c90bc4 101Requires: %{name} = %{version}-%{release}
373eb325 102Requires: babl-devel >= 0.1.10
efc1bf39 103Requires: glib2-devel >= 1:2.28.0
518498c4 104
105%description devel
106Header files for gegl library.
107
108%description devel -l pl.UTF-8
109Pliki nagłówkowe biblioteki gegl.
110
111%package static
112Summary: Static gegl library
113Summary(pl.UTF-8): Statyczna biblioteka gegl
114Group: Development/Libraries
115Requires: %{name}-devel = %{version}-%{release}
116
117%description static
118Static gegl library.
119
120%description static -l pl.UTF-8
121Statyczna biblioteka gegl.
122
c067f164
MB
123%package apidocs
124Summary: gegl library API documentation
125Summary(pl.UTF-8): Dokumentacja API biblioteki gegl
126Group: Documentation
127Requires: gtk-doc-common
38cb6083
ER
128%if "%{_rpmversion}" >= "5"
129BuildArch: noarch
130%endif
c067f164
MB
131
132%description apidocs
133gegl library API documentation.
134
135%description apidocs -l pl.UTF-8
136Dokumentacja API biblioteki gegl.
137
efc1bf39
JB
138%package -n vala-gegl
139Summary: Vala API for gegl library
140Summary(pl.UTF-8): API języka Vala dla biblioteki gegl
141Group: Development/Libraries
142Requires: %{name}-devel = %{version}-%{release}
143
144%description -n vala-gegl
145Vala API for gegl library.
146
147%description -n vala-gegl -l pl.UTF-8
148API języka Vala dla biblioteki gegl.
149
518498c4 150%prep
151%setup -q
152%patch0 -p1
56a09838 153%patch1 -p0
fe0ae258 154%patch2 -p1
d7740cee 155%patch3 -p1
69db310d 156%patch4 -p1
99666750
JR
157%patch5 -p1
158%patch6 -p1
518498c4 159
160%build
88cd9c64 161%{__libtoolize}
72767853 162%{__aclocal} -I m4
518498c4 163%{__autoconf}
88cd9c64 164%{__autoheader}
518498c4 165%{__automake}
c067f164 166%configure \
52414c2a 167 CPPFLAGS="%{rpmcppflags} -I/usr/include/umfpack" \
ac3efb70 168 --enable-docs%{!?with_doc:=no} \
69db310d 169 %{?with_introspection:--enable-introspection} \
9a0ac5c2
JB
170 %{!?with_mmx:--disable-mmx} \
171 %{!?with_sse:--disable-sse} \
8b4c20ed 172 --disable-silent-rules \
4fda8829
JB
173 %{?with_static_libs:--enable-static} \
174 --with-vala%{!?with_vala:=no}
518498c4 175%{__make}
176
177%install
178rm -rf $RPM_BUILD_ROOT
179
180%{__make} install \
c067f164 181 DESTDIR=$RPM_BUILD_ROOT \
fe0ae258 182 gtkdochtmldir=%{_gtkdocdir}/gegl
c067f164 183
4fda8829
JB
184# obsoleted by pkg-config
185%{__rm} $RPM_BUILD_ROOT%{_libdir}/libgegl-0.2.la
186# dlopened modules
187%{__rm} $RPM_BUILD_ROOT%{_libdir}/gegl-0.2/*.la
188%if %{with static_libs}
189%{__rm} $RPM_BUILD_ROOT%{_libdir}/gegl-0.2/*.a
190%endif
518498c4 191
69db310d
JB
192%find_lang %{name}-0.2
193
518498c4 194%clean
195rm -rf $RPM_BUILD_ROOT
196
197%post -p /sbin/ldconfig
198%postun -p /sbin/ldconfig
199
69db310d 200%files -f %{name}-0.2.lang
518498c4 201%defattr(644,root,root,755)
202%doc AUTHORS ChangeLog NEWS README
203%attr(755,root,root) %{_bindir}/gegl
91ee1e2d 204%attr(755,root,root) %{_libdir}/libgegl-0.2.so.*.*.*
205%attr(755,root,root) %ghost %{_libdir}/libgegl-0.2.so.0
69db310d 206%{?with_introspection:%{_libdir}/girepository-1.0/Gegl-0.2.typelib}
91ee1e2d 207%dir %{_libdir}/gegl-0.2
208%attr(755,root,root) %{_libdir}/gegl-0.2/*.so
518498c4 209
210%files devel
211%defattr(644,root,root,755)
91ee1e2d 212%attr(755,root,root) %{_libdir}/libgegl-0.2.so
91ee1e2d 213%{_includedir}/gegl-0.2
69db310d 214%{?with_introspection:%{_datadir}/gir-1.0/Gegl-0.2.gir}
0a79b4c5 215%{_pkgconfigdir}/gegl-0.2.pc
518498c4 216
4fda8829 217%if %{with static_libs}
518498c4 218%files static
219%defattr(644,root,root,755)
91ee1e2d 220%{_libdir}/libgegl-0.2.a
4fda8829 221%endif
c067f164 222
ac3efb70 223%if %{with doc}
c067f164
MB
224%files apidocs
225%defattr(644,root,root,755)
226%{_gtkdocdir}/gegl
d7387e88 227%endif
efc1bf39
JB
228
229%if %{with vala}
230%files -n vala-gegl
231%defattr(644,root,root,755)
91ee1e2d 232%{_datadir}/vala/vapi/gegl-0.2.vapi
efc1bf39 233%endif
This page took 0.077798 seconds and 4 git commands to generate.