3 %bcond_without gnome # without gnome-print support
5 Summary: A GNOME Vector Graphics Application
6 Summary(pl.UTF-8): Aplikacja do grafiki wektorowej dla GNOME
11 Group: Applications/Graphics
12 Source0: http://dl.sourceforge.net/sodipodi/%{name}-%{version}.tar.gz
13 # Source0-md5: 396cd78526e5a8102fd11114f45a70fe
14 Patch0: %{name}-desktop.patch
15 Patch1: %{name}-home_etc.patch
16 Patch2: %{name}-locale_names.patch
17 Patch3: %{name}-libpng15.patch
18 Patch4: format-security.patch
19 URL: http://sodipodi.sourceforge.net/
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: freetype-devel
23 BuildRequires: gettext-tools
24 BuildRequires: gtk+2-devel >= 1:2.0.0
25 BuildRequires: libart_lgpl-devel >= 2.3.10
26 %{?with_gnome:BuildRequires: libgnomeprint-devel >= 2.0.0}
27 %{?with_gnome:BuildRequires: libgnomeprintui-devel >= 2.0.0}
28 BuildRequires: libpng-devel
29 BuildRequires: libxml2-devel >= 2.4.24
30 BuildRequires: pkgconfig
31 BuildRequires: popt-devel
32 # sr@Latn vs. sr@latin
33 Conflicts: glibc-misc < 6:2.7
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 %define _noautoreq 'perl(XML::XQL)' 'perl(XML::XQL::DOM)'
39 Sodipodi is a general vector drawing program for GNOME environment.
41 %description -l pl.UTF-8
42 Sodipodi jest ogólnym programem do rysowania wektorowego dla
54 mv -f po/sr\@{Latn,latin}.po
58 %{?with_gnome:--with-gnome-print}
63 rm -rf $RPM_BUILD_ROOT
66 DESTDIR=$RPM_BUILD_ROOT \
67 Graphicsdir=%{_desktopdir}
72 rm -rf $RPM_BUILD_ROOT
76 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
80 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
82 %files -f %{name}.lang
83 %defattr(644,root,root,755)
84 %doc AUTHORS ChangeLog NEWS README TODO
85 %attr(755,root,root) %{_bindir}/*
89 %{_desktopdir}/*.desktop