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 inkboard # Enable inkboard support
7 %bcond_with relocation # Enable binary relocation support
9 Summary: Scalable vector graphics editor
10 Summary(pl): Edytor skalowalnej grafiki wektorowej
14 License: GPL v2, LGPL v2.1
15 Group: Applications/Graphics
16 Source0: http://dl.sourceforge.net/inkscape/%{name}-%{version}.tar.bz2
17 # Source0-md5: 97c606182f5e177eef70c1e8a55efc1f
18 URL: http://www.inkscape.org/
19 BuildRequires: autoconf >= 2.59-3
20 BuildRequires: automake >= 1:1.9.4-2
21 BuildRequires: freetype-devel >= 2.0
22 BuildRequires: gc-devel >= 6.4
23 BuildRequires: gcc-c++ >= 3.0
24 BuildRequires: gtk+2-devel >= 2:2.4.0
25 BuildRequires: gtkmm-devel >= 2.4
26 BuildRequires: gtkspell-devel >= 2.0
27 BuildRequires: intltool >= 0.22
28 BuildRequires: libart_lgpl-devel >= 2.3.10
29 %{?with_gnome_print:BuildRequires: libgnomeprintui-devel >= 1.116.0}
30 BuildRequires: libpng-devel >= 1.2
31 BuildRequires: libsigc++-devel >= 2.0.3
32 BuildRequires: libtool
33 BuildRequires: libxml2-devel >= 2.6.0
34 BuildRequires: libxslt-devel >= 1.0.15
35 %{?with_inkboard:BuildRequires: loudmouth-devel >= 1.0}
36 BuildRequires: pkgconfig
37 BuildRequires: popt-devel
38 %{?with_xft:BuildRequires: xft-devel}
39 BuildRequires: zlib-devel
40 Requires(post,postun): shared-mime-info
42 Requires: gtk+2 >= 2:2.4.0
43 Requires: perl-XML-XQL
44 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 Inkscape is a program for viewing, making, and editing two-dimensional
51 Inkscape jest programem do przeglĀ±dania, tworzenia i edycji
52 dwuwymiarowej grafiki wektorowej.
66 %{!?with_xft: --without-xft} \
67 %{!?with_gnome_print: --without-gnome-print} \
68 %{?with_gnome_print: --with-gnome-print} \
69 %{!?with_mmx:--disable-mmx} \
70 %{?with_relocation:--enable-binreloc} \
71 %{?with_inkboard:--enable-inkboard} \
77 rm -rf $RPM_BUILD_ROOT
80 DESTDIR=$RPM_BUILD_ROOT
85 rm -rf $RPM_BUILD_ROOT
90 update-mime-database %{_datadir}/mime >/dev/null 2>&1 ||:
91 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
95 update-mime-database %{_datadir}/mime >/dev/null 2>&1
96 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
98 %files -f %{name}.lang
99 %defattr(644,root,root,755)
100 %doc AUTHORS ChangeLog NEWS README TRANSLATORS
101 %lang(ca) %doc README.ca.txt
102 %lang(de) %doc README.de.txt
103 %lang(es) %doc README.es.txt
104 %lang(fr) %doc README.fr.txt
105 %lang(it) %doc README.it.txt
106 %attr(755,root,root) %{_bindir}/*
107 %dir %{_datadir}/inkscape
108 %{_datadir}/inkscape/[!e]*
109 %{_datadir}/inkscape/examples
110 %dir %{_datadir}/inkscape/extensions
111 %{_datadir}/inkscape/extensions/*.inx
112 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.pl
113 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.pm
114 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.py
115 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh
116 %attr(755,root,root) %{_datadir}/inkscape/extensions/svg_dropshadow
118 %lang(fr) %{_mandir}/fr/man1/*
120 %{_desktopdir}/*.desktop