2 # TODO: check why build requires libselinux-devel (because of some gnome* stuff)
5 %bcond_without xft # Don't use xft scalable font database
6 %bcond_without gnomeprint # Don't use gnome print font database and spooler frontend
7 %bcond_without gnomevfs # Don't use gnome vfs for loading files
8 %bcond_without mmx # Force building without MMX optimazation (Default: auto-detect)
9 %bcond_with inkboard # Enable inkboard support
10 %bcond_with relocation # Enable binary relocation support
13 # just set it nil when non-preview arrives
16 Summary: Scalable vector graphics editor
17 Summary(pl.UTF-8): Edytor skalowalnej grafiki wektorowej
21 License: GPL v2, LGPL v2.1
22 Group: Applications/Graphics
23 Source0: http://dl.sourceforge.net/inkscape/%{name}-%{version}%{beta}.tar.bz2
24 # Source0-md5: 7b497c8f673e40b05295a29f6e2111f4
25 Patch0: %{name}-desktop.patch
26 Patch1: %{name}-poppler.patch
27 Patch2: %{name}-gcc43.patch
28 Patch3: %{name}-gtk2.patch
29 Patch4: %{name}-slider.patch
30 Patch5: %{name}-gcc44.patch
31 Patch6: %{name}-early-png-header.patch
32 Patch7: %{name}-gchar.patch
33 Patch8: %{name}-install.patch
34 URL: http://www.inkscape.org/
35 BuildRequires: autoconf >= 2.59-3
36 BuildRequires: automake >= 1:1.9.4-2
37 BuildRequires: boost-devel >= 1.35.0
38 BuildRequires: freetype-devel >= 2.0
39 BuildRequires: gcc-c++ >= 6:4.2.2-2
40 BuildRequires: gc-devel >= 6.4
41 BuildRequires: gettext-devel
42 %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.15.2}
43 BuildRequires: gtk+2-devel >= 2:2.9.4
44 BuildRequires: gtkmm-devel >= 2.10.0
45 BuildRequires: gtkspell-devel >= 2.0.11
46 BuildRequires: gsl-devel
47 BuildRequires: intltool >= 0.35.0
48 BuildRequires: lcms-devel >= 1.15
49 BuildRequires: libart_lgpl-devel >= 2.3.10
50 %{?with_gnomeprint:BuildRequires: libgnomeprintui-devel >= 2.12.1}
51 BuildRequires: libpng-devel >= 1.2
52 BuildRequires: libsigc++-devel >= 2.0.17
53 BuildRequires: libtool
54 BuildRequires: libxml2-devel >= 1:2.6.26
55 BuildRequires: libxslt-devel >= 1.1.17
56 %{?with_inkboard:BuildRequires: loudmouth-devel >= 1.0.3}
57 BuildRequires: pkgconfig
58 BuildRequires: popt-devel
59 BuildRequires: rpm-pythonprov
60 %{?with_xft:BuildRequires: xorg-lib-libXft-devel}
61 BuildRequires: zlib-devel
62 Requires(post,postun): shared-mime-info
64 %{?with_gnomevfs:Requires: gnome-vfs2 >= 2.15.2}
65 Requires: gtk+2 >= 2:2.9.4
66 Requires: perl-XML-XQL
68 # sr@Latn vs. sr@latin
69 Conflicts: glibc-misc < 6:2.7
70 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
73 Inkscape is a program for viewing, making, and editing two-dimensional
76 %description -l pl.UTF-8
77 Inkscape jest programem do przeglÄ…dania, tworzenia i edycji
78 dwuwymiarowej grafiki wektorowej.
81 %setup -q -n %{name}-%{version}%{beta}
93 rm -f po/ca@valencia.po
94 rm -f po/en_US@piglatin.po
95 sed -i -e 's|ca@valencia||' configure.ac
96 sed -i -e 's|en_US@piglatin||' configure.ac
107 %{!?with_xft: --without-xft} \
108 %{!?with_gnomeprint:--without-gnome-print} \
109 %{?with_gnomeprint:--with-gnome-print} \
110 %{!?with_gnomevfs:--without-gnome-vfs} \
111 %{!?with_mmx:--disable-mmx} \
112 %{?with_relocation:--enable-binreloc} \
113 %{?with_inkboard:--enable-inkboard} \
119 rm -rf $RPM_BUILD_ROOT
122 DESTDIR=$RPM_BUILD_ROOT
124 [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \
125 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin}
129 rm -rf $RPM_BUILD_ROOT
134 update-mime-database %{_datadir}/mime >/dev/null 2>&1 ||:
135 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
139 update-mime-database %{_datadir}/mime >/dev/null 2>&1
140 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
142 %files -f %{name}.lang
143 %defattr(644,root,root,755)
144 %doc AUTHORS ChangeLog HACKING.txt NEWS README TRANSLATORS
145 %lang(ca) %doc README.ca.txt
146 %lang(de) %doc README.de.txt
147 %lang(es) %doc README.es.txt
148 %lang(fr) %doc README.fr.txt
149 %lang(it) %doc README.it.txt
150 %lang(de) %doc HACKING.de.txt
151 %lang(fr) %doc HACKING.fr.txt
152 %lang(it) %doc HACKING.it.txt
153 %attr(755,root,root) %{_bindir}/*
154 %dir %{_datadir}/inkscape
155 %{_datadir}/inkscape/[!e]*
156 %{_datadir}/inkscape/examples
157 %dir %{_datadir}/inkscape/extensions
158 %{_datadir}/inkscape/extensions/Poly3DObjects/
159 %{_datadir}/inkscape/extensions/alphabet_soup/
160 %{_datadir}/inkscape/extensions/*.inx
161 %{_datadir}/inkscape/extensions/*.js
162 %{_datadir}/inkscape/extensions/*.xml
163 %{_datadir}/inkscape/extensions/*.xsl
164 %{_datadir}/inkscape/extensions/*.xslt
165 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.pl
166 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.pm
167 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.py
168 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.rb
169 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh
170 %dir %{_datadir}/inkscape/extensions/Barcode
171 %attr(755,root,root) %{_datadir}/inkscape/extensions/Barcode/*.py
172 %dir %{_datadir}/inkscape/extensions/xaml2svg
173 %{_datadir}/inkscape/extensions/xaml2svg/*.xsl
175 %lang(fr) %{_mandir}/fr/man1/*
177 %{_desktopdir}/*.desktop