2 # - http://sourceforge.net/tracker/index.php?func=detail&aid=1056633&group_id=93438&atid=604306
5 %bcond_without xft # Don't use xft scalable font database
6 %bcond_without gnome_print # Don't use gnome print font database and spooler frontend
7 %bcond_without mmx # Force building without MMX optimazation (Default: auto-detect)
8 %bcond_with relocation # Enable binary relocation support
10 Summary: Scalable vector graphics editor
11 Summary(pl): Edytor skalowalnej grafiki wektorowej
15 License: GPL v.2, LGPL v.2.1
16 Group: Applications/Graphics
17 Source0: http://dl.sourceforge.net/inkscape/%{name}-%{version}.tar.bz2
18 # Source0-md5: 5f53659eb47efce8593e39d30ebb1c77
19 Patch0: %{name}-desktop.patch
20 URL: http://www.inkscape.org/
21 BuildRequires: autoconf >= 2.50
22 BuildRequires: automake
23 BuildRequires: freetype-devel >= 2.0
24 BuildRequires: gc-devel
25 BuildRequires: gtk+2-devel >= 2:2.4.0
26 BuildRequires: gtkmm-devel >= 2.4
27 BuildRequires: gtkspell-devel
28 BuildRequires: intltool
29 BuildRequires: libart_lgpl-devel >= 2.3.10
30 %{?with_gnome_print:BuildRequires: libgnomeprintui-devel >= 1.116.0}
31 BuildRequires: libpng-devel
32 BuildRequires: libsigc++-devel >= 2.0.3
33 BuildRequires: libtool
34 BuildRequires: libxml2-devel >= 2.4.24
35 BuildRequires: pkgconfig
36 BuildRequires: popt-devel
37 %{?with_xft:BuildRequires: xft-devel}
38 Requires(post,postun): shared-mime-info
39 Requires: perl-XML-XQL
40 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 Inkscape is a program for viewing, making, and editing two-dimensional
47 Inkscape jest programem do przeglĀ±dania, tworzenia i edycji
48 dwuwymiarowej grafiki wektorowej.
55 cp -f /usr/share/automake/mkinstalldirs .
57 glib-gettextize --copy --force
58 intltoolize --copy --force --automake
64 %{!?with_xft: --without-xft}\
65 %{!?with_gnome_print: --without-gnome-print}\
66 %{?with_gnome_print: --with-gnome-print}\
67 %{!?with_mmx:--disable-mmx} \
68 %{?with_relocation:--enable-binreloc} \
74 rm -rf $RPM_BUILD_ROOT
77 DESTDIR=$RPM_BUILD_ROOT
79 rm -f $RPM_BUILD_ROOT%{_libdir}/inkscape/plugins/*.la
84 rm -rf $RPM_BUILD_ROOT
88 update-mime-database %{_datadir}/mime
89 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
93 update-mime-database %{_datadir}/mime
94 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
96 %files -f %{name}.lang
97 %defattr(644,root,root,755)
98 %doc AUTHORS ChangeLog README
99 %attr(755,root,root) %{_bindir}/*
101 %dir %{_libdir}/inkscape
102 %attr(755,root,root) %{_libdir}/inkscape/plugins/lib*.so.*.*.*
105 %{_desktopdir}/*.desktop