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