2 # TODO: needs patch for freetype 2.2.x:
3 # http://www.freetype.org/freetype2/patches/inkscape-0.43-noftinternals.patch
4 # (already in inkscape 0.44)
7 %bcond_without xft # Don't use xft scalable font database
8 %bcond_without gnome_print # Don't use gnome print font database and spooler frontend
9 %bcond_without mmx # Force building without MMX optimazation (Default: auto-detect)
10 %bcond_with inkboard # Enable inkboard support
11 %bcond_with relocation # Enable binary relocation support
13 Summary: Scalable vector graphics editor
14 Summary(pl): Edytor skalowalnej grafiki wektorowej
18 License: GPL v2, LGPL v2.1
19 Group: Applications/Graphics
20 Source0: http://dl.sourceforge.net/inkscape/%{name}-%{version}.tar.bz2
21 # Source0-md5: 97c606182f5e177eef70c1e8a55efc1f
22 Patch0: %{name}-c++.patch
23 URL: http://www.inkscape.org/
24 BuildRequires: autoconf >= 2.59-3
25 BuildRequires: automake >= 1:1.9.4-2
26 BuildRequires: freetype-devel >= 2.0
27 BuildRequires: gc-devel >= 6.4
28 BuildRequires: gcc-c++ >= 3.0
29 BuildRequires: gtk+2-devel >= 2:2.4.0
30 BuildRequires: gtkmm-devel >= 2.4
31 BuildRequires: gtkspell-devel >= 2.0
32 BuildRequires: intltool >= 0.22
33 BuildRequires: libart_lgpl-devel >= 2.3.10
34 %{?with_gnome_print:BuildRequires: libgnomeprintui-devel >= 1.116.0}
35 BuildRequires: libpng-devel >= 1.2
36 BuildRequires: libsigc++-devel >= 2.0.3
37 BuildRequires: libtool
38 BuildRequires: libxml2-devel >= 2.6.0
39 BuildRequires: libxslt-devel >= 1.0.15
40 %{?with_inkboard:BuildRequires: loudmouth-devel >= 1.0}
41 BuildRequires: pkgconfig
42 BuildRequires: popt-devel
43 %{?with_xft:BuildRequires: xorg-lib-libXft-devel}
44 BuildRequires: zlib-devel
45 Requires(post,postun): shared-mime-info
47 Requires: gtk+2 >= 2:2.4.0
48 Requires: perl-XML-XQL
49 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52 Inkscape is a program for viewing, making, and editing two-dimensional
56 Inkscape jest programem do przeglĀ±dania, tworzenia i edycji
57 dwuwymiarowej grafiki wektorowej.
72 %{!?with_xft: --without-xft} \
73 %{!?with_gnome_print: --without-gnome-print} \
74 %{?with_gnome_print: --with-gnome-print} \
75 %{!?with_mmx:--disable-mmx} \
76 %{?with_relocation:--enable-binreloc} \
77 %{?with_inkboard:--enable-inkboard} \
83 rm -rf $RPM_BUILD_ROOT
86 DESTDIR=$RPM_BUILD_ROOT
91 rm -rf $RPM_BUILD_ROOT
96 update-mime-database %{_datadir}/mime >/dev/null 2>&1 ||:
97 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
101 update-mime-database %{_datadir}/mime >/dev/null 2>&1
102 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
104 %files -f %{name}.lang
105 %defattr(644,root,root,755)
106 %doc AUTHORS ChangeLog NEWS README TRANSLATORS
107 %lang(ca) %doc README.ca.txt
108 %lang(de) %doc README.de.txt
109 %lang(es) %doc README.es.txt
110 %lang(fr) %doc README.fr.txt
111 %lang(it) %doc README.it.txt
112 %attr(755,root,root) %{_bindir}/*
113 %dir %{_datadir}/inkscape
114 %{_datadir}/inkscape/[!e]*
115 %{_datadir}/inkscape/examples
116 %dir %{_datadir}/inkscape/extensions
117 %{_datadir}/inkscape/extensions/*.inx
118 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.pl
119 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.pm
120 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.py
121 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh
122 %attr(755,root,root) %{_datadir}/inkscape/extensions/svg_dropshadow
124 %lang(fr) %{_mandir}/fr/man1/*
126 %{_desktopdir}/*.desktop