3 %bcond_without xft # Don't use xft scalable font database
4 %bcond_without gnome_print # Don't use gnome print font database and spooler frontend
5 %bcond_without mmx # Force building without MMX optimazation (Default: auto-detect)
6 %bcond_with relocation # Enable binary relocation support
8 Summary: Scalable vector graphics editor
9 Summary(pl): Edytor skalowalnej grafiki wektorowej
13 License: GPL v2, LGPL v2.1
14 Group: Applications/Graphics
15 Source0: http://dl.sourceforge.net/inkscape/%{name}-%{version}.tar.bz2
16 # Source0-md5: 5f53659eb47efce8593e39d30ebb1c77
17 URL: http://www.inkscape.org/
18 BuildRequires: autoconf >= 2.59-3
19 BuildRequires: automake >= 1:1.9.4-2
20 BuildRequires: freetype-devel >= 2.0
21 BuildRequires: gc-devel
22 BuildRequires: gtk+2-devel >= 2:2.4.0
23 BuildRequires: gtkmm-devel >= 2.4
24 BuildRequires: gtkspell-devel
25 BuildRequires: intltool
26 BuildRequires: libart_lgpl-devel >= 2.3.10
27 %{?with_gnome_print:BuildRequires: libgnomeprintui-devel >= 1.116.0}
28 BuildRequires: libpng-devel
29 BuildRequires: libsigc++-devel >= 2.0.3
30 BuildRequires: libtool
31 BuildRequires: libxml2-devel >= 2.4.24
32 BuildRequires: pkgconfig
33 BuildRequires: popt-devel
34 %{?with_xft:BuildRequires: xft-devel}
35 Requires(post,postun): shared-mime-info
36 Requires: perl-XML-XQL
37 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 Inkscape is a program for viewing, making, and editing two-dimensional
44 Inkscape jest programem do przeglĀ±dania, tworzenia i edycji
45 dwuwymiarowej grafiki wektorowej.
51 cp -f /usr/share/automake/mkinstalldirs .
53 glib-gettextize --copy --force
54 intltoolize --copy --force --automake
60 %{!?with_xft: --without-xft}\
61 %{!?with_gnome_print: --without-gnome-print}\
62 %{?with_gnome_print: --with-gnome-print}\
63 %{!?with_mmx:--disable-mmx} \
64 %{?with_relocation:--enable-binreloc} \
70 rm -rf $RPM_BUILD_ROOT
73 DESTDIR=$RPM_BUILD_ROOT
75 rm -f $RPM_BUILD_ROOT%{_libdir}/inkscape/plugins/*.la
80 rm -rf $RPM_BUILD_ROOT
84 update-mime-database %{_datadir}/mime
85 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
89 update-mime-database %{_datadir}/mime
90 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
92 %files -f %{name}.lang
93 %defattr(644,root,root,755)
94 %doc AUTHORS ChangeLog README
95 %attr(755,root,root) %{_bindir}/*
97 %dir %{_libdir}/inkscape
98 %dir %{_libdir}/inkscape/plugins
99 # why no -avoid-version?
100 %attr(755,root,root) %{_libdir}/inkscape/plugins/lib*.so*
103 %{_desktopdir}/*.desktop