]>
Commit | Line | Data |
---|---|---|
0202eed1 | 1 | # |
9c82b195 | 2 | # TODO: check why build requires libselinux-devel (because of some gnome* stuff) |
4dbaafa2 | 3 | # |
0202eed1 | 4 | # Conditional build |
efb4548f | 5 | %bcond_without xft # Don't use xft scalable font database |
b65d9413 | 6 | %bcond_without gnomevfs # Don't use gnome vfs for loading files |
efb4548f | 7 | %bcond_without mmx # Force building without MMX optimazation (Default: auto-detect) |
dc92bb62 | 8 | %bcond_with inkboard # Enable inkboard support |
ac61fe9a | 9 | %bcond_with relocation # Enable binary relocation support |
efb4548f | 10 | # |
a52a6383 | 11 | |
12 | # just set it nil when non-preview arrives | |
41394c61 | 13 | %define beta %{nil} |
a52a6383 | 14 | |
efb4548f | 15 | Summary: Scalable vector graphics editor |
2ae499ae | 16 | Summary(pl.UTF-8): Edytor skalowalnej grafiki wektorowej |
597867c7 | 17 | Name: inkscape |
a52a6383 | 18 | Version: 0.47 |
da2a0d36 | 19 | Release: 6 |
790f9647 | 20 | License: GPL v2, LGPL v2.1 |
fa7e1cfb | 21 | Group: X11/Applications/Graphics |
a52a6383 | 22 | Source0: http://dl.sourceforge.net/inkscape/%{name}-%{version}%{beta}.tar.bz2 |
41394c61 | 23 | # Source0-md5: 7b497c8f673e40b05295a29f6e2111f4 |
fa7e1cfb MB |
24 | # workaround for https://bugs.launchpad.net/inkscape/+bug/487038 |
25 | Patch0: %{name}-poppler.patch | |
749062c7 MB |
26 | Patch1: %{name}-gcc45.patch |
27 | Patch2: %{name}-ldl.patch | |
597867c7 | 28 | URL: http://www.inkscape.org/ |
fa7e1cfb MB |
29 | BuildRequires: ImageMagick-c++-devel |
30 | BuildRequires: aspell-devel | |
f3f3339a | 31 | BuildRequires: autoconf >= 2.59-3 |
25641cda | 32 | BuildRequires: automake >= 1:1.9.4-2 |
d1ecba76 | 33 | BuildRequires: boost-devel >= 1.35.0 |
fa7e1cfb | 34 | BuildRequires: cairo-devel >= 1.8.0 |
35f78de7 | 35 | BuildRequires: freetype-devel >= 2.0 |
1f3f79b3 | 36 | BuildRequires: gcc-c++ >= 6:4.2.2-2 |
e47d40b1 | 37 | BuildRequires: gc-devel >= 6.4 |
ee6d403c | 38 | BuildRequires: gettext-devel |
fa7e1cfb | 39 | BuildRequires: glibmm-devel >= 2.16.0 |
b65d9413 | 40 | %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.15.2} |
fa7e1cfb | 41 | BuildRequires: gtk+2-devel >= 2:2.14.0 |
8752c439 | 42 | BuildRequires: gtkmm-devel >= 2.10.0 |
e47d40b1 | 43 | BuildRequires: gtkspell-devel >= 2.0.11 |
a52a6383 | 44 | BuildRequires: gsl-devel |
e47d40b1 | 45 | BuildRequires: intltool >= 0.35.0 |
46 | BuildRequires: lcms-devel >= 1.15 | |
91f416f3 | 47 | BuildRequires: libpng-devel >= 1.2 |
e47d40b1 | 48 | BuildRequires: libsigc++-devel >= 2.0.17 |
efb4548f | 49 | BuildRequires: libtool |
e47d40b1 | 50 | BuildRequires: libxml2-devel >= 1:2.6.26 |
51 | BuildRequires: libxslt-devel >= 1.1.17 | |
fa7e1cfb | 52 | BuildRequires: libwpg-devel |
e47d40b1 | 53 | %{?with_inkboard:BuildRequires: loudmouth-devel >= 1.0.3} |
35f78de7 | 54 | BuildRequires: pkgconfig |
fa7e1cfb | 55 | BuildRequires: poppler-glib-devel >= 0.12.2 |
efb4548f | 56 | BuildRequires: popt-devel |
ee6d403c | 57 | BuildRequires: rpm-pythonprov |
fa7e1cfb | 58 | BuildRequires: sed >= 4.0 |
641594f1 | 59 | %{?with_xft:BuildRequires: xorg-lib-libXft-devel} |
91f416f3 | 60 | BuildRequires: zlib-devel |
fa7e1cfb | 61 | Requires(post,postun): desktop-file-utils |
995c2056 | 62 | Requires: gc >= 6.4 |
b65d9413 | 63 | %{?with_gnomevfs:Requires: gnome-vfs2 >= 2.15.2} |
fa7e1cfb | 64 | Requires: gtk+2 >= 2:2.14.0 |
e5d3652d | 65 | Requires: perl-XML-XQL |
8ccd877c | 66 | Suggests: python-lxml |
2478b7d2 | 67 | # sr@Latn vs. sr@latin |
68 | Conflicts: glibc-misc < 6:2.7 | |
69 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
597867c7 | 70 | |
71 | %description | |
efb4548f JB |
72 | Inkscape is a program for viewing, making, and editing two-dimensional |
73 | vector drawings. | |
597867c7 | 74 | |
ab944b4b JR |
75 | %description -l pl.UTF-8 |
76 | Inkscape jest programem do przeglądania, tworzenia i edycji | |
efb4548f | 77 | dwuwymiarowej grafiki wektorowej. |
597867c7 | 78 | |
79 | %prep | |
a52a6383 | 80 | %setup -q -n %{name}-%{version}%{beta} |
fa7e1cfb | 81 | %patch0 -p1 |
749062c7 MB |
82 | %patch1 -p1 |
83 | %patch2 -p1 | |
fa7e1cfb | 84 | |
a539410c | 85 | rm -f po/en_US@piglatin.po |
9c82b195 | 86 | sed -i -e 's|en_US@piglatin||' configure.ac |
597867c7 | 87 | |
597867c7 | 88 | %build |
efb4548f | 89 | %{__libtoolize} |
ea00493b | 90 | %{__glib_gettextize} |
91 | %{__intltoolize} | |
efb4548f JB |
92 | %{__aclocal} |
93 | %{__autoheader} | |
94 | %{__automake} | |
95 | %{__autoconf} | |
0202eed1 | 96 | %configure \ |
dc92bb62 | 97 | %{!?with_xft: --without-xft} \ |
b65d9413 | 98 | %{!?with_gnomevfs:--without-gnome-vfs} \ |
ac61fe9a | 99 | %{!?with_mmx:--disable-mmx} \ |
22c15797 | 100 | %{?with_relocation:--enable-binreloc} \ |
fa7e1cfb | 101 | %{?with_inkboard:--enable-inkboard} |
35f78de7 JB |
102 | |
103 | %{__make} | |
597867c7 | 104 | |
105 | %install | |
106 | rm -rf $RPM_BUILD_ROOT | |
597867c7 | 107 | |
35f78de7 JB |
108 | %{__make} install \ |
109 | DESTDIR=$RPM_BUILD_ROOT | |
597867c7 | 110 | |
401cfdca JB |
111 | %find_lang %{name} |
112 | ||
597867c7 | 113 | %clean |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
dc92bb62 | 116 | |
22c15797 | 117 | %post |
fa7e1cfb | 118 | %update_desktop_database_post |
22c15797 | 119 | |
120 | %postun | |
fa7e1cfb | 121 | %update_desktop_database_postun |
22c15797 | 122 | |
401cfdca | 123 | %files -f %{name}.lang |
597867c7 | 124 | %defattr(644,root,root,755) |
068d59c7 | 125 | %doc AUTHORS ChangeLog HACKING.txt NEWS README TRANSLATORS |
90b51ec4 | 126 | %lang(ca) %doc README.ca.txt |
127 | %lang(de) %doc README.de.txt | |
128 | %lang(es) %doc README.es.txt | |
129 | %lang(fr) %doc README.fr.txt | |
130 | %lang(it) %doc README.it.txt | |
068d59c7 | 131 | %lang(de) %doc HACKING.de.txt |
132 | %lang(fr) %doc HACKING.fr.txt | |
133 | %lang(it) %doc HACKING.it.txt | |
fa7e1cfb MB |
134 | %attr(755,root,root) %{_bindir}/inkscape |
135 | %attr(755,root,root) %{_bindir}/inkview | |
60fad862 | 136 | %dir %{_datadir}/inkscape |
137 | %{_datadir}/inkscape/[!e]* | |
138 | %{_datadir}/inkscape/examples | |
139 | %dir %{_datadir}/inkscape/extensions | |
a52a6383 | 140 | %{_datadir}/inkscape/extensions/Poly3DObjects/ |
141 | %{_datadir}/inkscape/extensions/alphabet_soup/ | |
60fad862 | 142 | %{_datadir}/inkscape/extensions/*.inx |
a52a6383 | 143 | %{_datadir}/inkscape/extensions/*.js |
34cd2370 PZ |
144 | %{_datadir}/inkscape/extensions/*.xml |
145 | %{_datadir}/inkscape/extensions/*.xsl | |
d0824210 | 146 | %{_datadir}/inkscape/extensions/*.xslt |
60fad862 | 147 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.pl |
148 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.pm | |
149 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.py | |
068d59c7 | 150 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.rb |
60fad862 | 151 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh |
34cd2370 PZ |
152 | %dir %{_datadir}/inkscape/extensions/Barcode |
153 | %attr(755,root,root) %{_datadir}/inkscape/extensions/Barcode/*.py | |
154 | %dir %{_datadir}/inkscape/extensions/xaml2svg | |
155 | %{_datadir}/inkscape/extensions/xaml2svg/*.xsl | |
fa7e1cfb MB |
156 | %{_mandir}/man1/*.1* |
157 | %lang(fr) %{_mandir}/fr/man1/*.1* | |
401cfdca | 158 | %{_pixmapsdir}/*.png |
fa7e1cfb | 159 | %{_desktopdir}/inkscape.desktop |