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 gnomevfs # Don't use gnome vfs for loading files
7 %bcond_without mmx # Force building without MMX optimazation (Default: auto-detect)
8 %bcond_with inkboard # Enable inkboard support
9 %bcond_with relocation # Enable binary relocation support
12 # just set it nil when non-preview arrives
15 Summary: Scalable vector graphics editor
16 Summary(pl.UTF-8): Edytor skalowalnej grafiki wektorowej
20 License: GPL v2+, LGPL v2.1+
21 Group: X11/Applications/Graphics
22 Source0: http://downloads.sourceforge.net/inkscape/%{name}-%{version}%{beta}.tar.bz2
23 # Source0-md5: 47bd8546e42ba396624eef9eb66b9b6c
24 # workaround for https://bugs.launchpad.net/inkscape/+bug/487038
25 Patch0: %{name}-ldl.patch
26 Patch1: %{name}-0.48.2-types.patch
27 Patch2: %{name}-build.patch
28 URL: http://www.inkscape.org/
29 BuildRequires: ImageMagick-c++-devel
30 BuildRequires: aspell-devel
31 BuildRequires: autoconf >= 2.59-3
32 BuildRequires: automake >= 1:1.9.4-2
33 BuildRequires: boost-devel >= 1.35.0
34 BuildRequires: cairo-devel >= 1.8.0
35 BuildRequires: freetype-devel >= 2.0
36 BuildRequires: gc-devel >= 6.4
37 BuildRequires: gettext-devel
38 BuildRequires: glibmm-devel >= 2.16.0
39 %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.15.2}
40 BuildRequires: gsl-devel
41 BuildRequires: gtk+2-devel >= 2:2.14.0
42 BuildRequires: gtkmm-devel >= 2.10.0
43 BuildRequires: gtkspell-devel >= 2.0.11
44 BuildRequires: intltool >= 0.35.0
45 BuildRequires: lcms-devel >= 1.15
46 BuildRequires: libpng-devel >= 1.2
47 BuildRequires: libsigc++-devel >= 2.0.17
48 BuildRequires: libstdc++-devel >= 6:4.2.2-2
49 BuildRequires: libtool
50 BuildRequires: libwpg-devel
51 BuildRequires: libxml2-devel >= 1:2.6.26
52 BuildRequires: libxslt-devel >= 1.1.17
53 %{?with_inkboard:BuildRequires: loudmouth-devel >= 1.0.3}
54 BuildRequires: pkgconfig
55 BuildRequires: poppler-glib-devel >= 0.12.2
56 BuildRequires: popt-devel
57 BuildRequires: rpm-pythonprov
58 BuildRequires: sed >= 4.0
59 %{?with_xft:BuildRequires: xorg-lib-libXft-devel}
60 BuildRequires: zlib-devel
61 Requires(post,postun): desktop-file-utils
63 %{?with_gnomevfs:Requires: gnome-vfs2 >= 2.15.2}
64 Requires: gtk+2 >= 2:2.14.0
65 Requires: perl-XML-XQL
67 # sr@Latn vs. sr@latin
68 Conflicts: glibc-misc < 6:2.7
69 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
72 Inkscape is a program for viewing, making, and editing two-dimensional
75 %description -l pl.UTF-8
76 Inkscape jest programem do przeglÄ…dania, tworzenia i edycji
77 dwuwymiarowej grafiki wektorowej.
80 %setup -q -n %{name}-%{version}%{beta}
85 %{__rm} po/en_US@piglatin.po
86 %{__sed} -i -e 's|en_US@piglatin||' configure.ac
88 mv po/te_IN.po po/te.po
89 %{__sed} -i -e 's|te_IN|te|' configure.ac
100 --disable-silent-rules \
101 %{!?with_xft: --without-xft} \
102 %{!?with_gnomevfs:--without-gnome-vfs} \
103 %{!?with_mmx:--disable-mmx} \
104 %{?with_relocation:--enable-binreloc} \
105 %{?with_inkboard:--enable-inkboard}
110 rm -rf $RPM_BUILD_ROOT
113 DESTDIR=$RPM_BUILD_ROOT
118 rm -rf $RPM_BUILD_ROOT
122 %update_desktop_database_post
125 %update_desktop_database_postun
127 %files -f %{name}.lang
128 %defattr(644,root,root,755)
129 %doc AUTHORS ChangeLog NEWS README TRANSLATORS doc/HACKING.txt
130 %lang(ca) %doc README.ca.txt
131 %lang(de) %doc README.de.txt
132 %lang(es) %doc README.es.txt
133 %lang(fr) %doc README.fr.txt
134 %lang(it) %doc README.it.txt
135 %lang(de) %doc doc/HACKING.de.txt
136 %lang(fr) %doc doc/HACKING.fr.txt
137 %lang(it) %doc doc/HACKING.it.txt
138 %attr(755,root,root) %{_bindir}/inkscape
139 %attr(755,root,root) %{_bindir}/inkview
140 %dir %{_datadir}/inkscape
141 %{_datadir}/inkscape/[!e]*
142 %{_datadir}/inkscape/examples
143 %dir %{_datadir}/inkscape/extensions
144 %{_datadir}/inkscape/extensions/Poly3DObjects/
145 %{_datadir}/inkscape/extensions/alphabet_soup/
146 %{_datadir}/inkscape/extensions/*.inx
147 %{_datadir}/inkscape/extensions/*.js
148 %{_datadir}/inkscape/extensions/*.xml
149 %{_datadir}/inkscape/extensions/*.xsl
150 %{_datadir}/inkscape/extensions/*.xslt
151 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.pl
152 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.pm
153 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.py
154 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.rb
155 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh
156 %dir %{_datadir}/inkscape/extensions/Barcode
157 %attr(755,root,root) %{_datadir}/inkscape/extensions/Barcode/*.py
158 %dir %{_datadir}/inkscape/extensions/xaml2svg
159 %{_datadir}/inkscape/extensions/xaml2svg/*.xsl
161 %lang(fr) %{_mandir}/fr/man1/*.1*
162 %{_iconsdir}/hicolor/*/apps/inkscape.png
163 %{_desktopdir}/inkscape.desktop