]>
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 |
97bf4ae0 | 19 | Release: 3 |
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 | |
597867c7 | 26 | URL: http://www.inkscape.org/ |
fa7e1cfb MB |
27 | BuildRequires: ImageMagick-c++-devel |
28 | BuildRequires: aspell-devel | |
f3f3339a | 29 | BuildRequires: autoconf >= 2.59-3 |
25641cda | 30 | BuildRequires: automake >= 1:1.9.4-2 |
d1ecba76 | 31 | BuildRequires: boost-devel >= 1.35.0 |
fa7e1cfb | 32 | BuildRequires: cairo-devel >= 1.8.0 |
35f78de7 | 33 | BuildRequires: freetype-devel >= 2.0 |
1f3f79b3 | 34 | BuildRequires: gcc-c++ >= 6:4.2.2-2 |
e47d40b1 | 35 | BuildRequires: gc-devel >= 6.4 |
ee6d403c | 36 | BuildRequires: gettext-devel |
fa7e1cfb | 37 | BuildRequires: glibmm-devel >= 2.16.0 |
b65d9413 | 38 | %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.15.2} |
fa7e1cfb | 39 | BuildRequires: gtk+2-devel >= 2:2.14.0 |
8752c439 | 40 | BuildRequires: gtkmm-devel >= 2.10.0 |
e47d40b1 | 41 | BuildRequires: gtkspell-devel >= 2.0.11 |
a52a6383 | 42 | BuildRequires: gsl-devel |
e47d40b1 | 43 | BuildRequires: intltool >= 0.35.0 |
44 | BuildRequires: lcms-devel >= 1.15 | |
91f416f3 | 45 | BuildRequires: libpng-devel >= 1.2 |
e47d40b1 | 46 | BuildRequires: libsigc++-devel >= 2.0.17 |
efb4548f | 47 | BuildRequires: libtool |
e47d40b1 | 48 | BuildRequires: libxml2-devel >= 1:2.6.26 |
49 | BuildRequires: libxslt-devel >= 1.1.17 | |
fa7e1cfb | 50 | BuildRequires: libwpg-devel |
e47d40b1 | 51 | %{?with_inkboard:BuildRequires: loudmouth-devel >= 1.0.3} |
35f78de7 | 52 | BuildRequires: pkgconfig |
fa7e1cfb | 53 | BuildRequires: poppler-glib-devel >= 0.12.2 |
efb4548f | 54 | BuildRequires: popt-devel |
ee6d403c | 55 | BuildRequires: rpm-pythonprov |
fa7e1cfb | 56 | BuildRequires: sed >= 4.0 |
641594f1 | 57 | %{?with_xft:BuildRequires: xorg-lib-libXft-devel} |
91f416f3 | 58 | BuildRequires: zlib-devel |
fa7e1cfb | 59 | Requires(post,postun): desktop-file-utils |
995c2056 | 60 | Requires: gc >= 6.4 |
b65d9413 | 61 | %{?with_gnomevfs:Requires: gnome-vfs2 >= 2.15.2} |
fa7e1cfb | 62 | Requires: gtk+2 >= 2:2.14.0 |
e5d3652d | 63 | Requires: perl-XML-XQL |
8ccd877c | 64 | Suggests: python-lxml |
2478b7d2 | 65 | # sr@Latn vs. sr@latin |
66 | Conflicts: glibc-misc < 6:2.7 | |
67 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
597867c7 | 68 | |
69 | %description | |
efb4548f JB |
70 | Inkscape is a program for viewing, making, and editing two-dimensional |
71 | vector drawings. | |
597867c7 | 72 | |
ab944b4b JR |
73 | %description -l pl.UTF-8 |
74 | Inkscape jest programem do przeglądania, tworzenia i edycji | |
efb4548f | 75 | dwuwymiarowej grafiki wektorowej. |
597867c7 | 76 | |
77 | %prep | |
a52a6383 | 78 | %setup -q -n %{name}-%{version}%{beta} |
fa7e1cfb MB |
79 | %patch0 -p1 |
80 | ||
a539410c | 81 | rm -f po/en_US@piglatin.po |
9c82b195 | 82 | sed -i -e 's|en_US@piglatin||' configure.ac |
597867c7 | 83 | |
597867c7 | 84 | %build |
efb4548f | 85 | %{__libtoolize} |
ea00493b | 86 | %{__glib_gettextize} |
87 | %{__intltoolize} | |
efb4548f JB |
88 | %{__aclocal} |
89 | %{__autoheader} | |
90 | %{__automake} | |
91 | %{__autoconf} | |
0202eed1 | 92 | %configure \ |
dc92bb62 | 93 | %{!?with_xft: --without-xft} \ |
b65d9413 | 94 | %{!?with_gnomevfs:--without-gnome-vfs} \ |
ac61fe9a | 95 | %{!?with_mmx:--disable-mmx} \ |
22c15797 | 96 | %{?with_relocation:--enable-binreloc} \ |
fa7e1cfb | 97 | %{?with_inkboard:--enable-inkboard} |
35f78de7 JB |
98 | |
99 | %{__make} | |
597867c7 | 100 | |
101 | %install | |
102 | rm -rf $RPM_BUILD_ROOT | |
597867c7 | 103 | |
35f78de7 JB |
104 | %{__make} install \ |
105 | DESTDIR=$RPM_BUILD_ROOT | |
597867c7 | 106 | |
401cfdca JB |
107 | %find_lang %{name} |
108 | ||
597867c7 | 109 | %clean |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
dc92bb62 | 112 | |
22c15797 | 113 | %post |
fa7e1cfb | 114 | %update_desktop_database_post |
22c15797 | 115 | |
116 | %postun | |
fa7e1cfb | 117 | %update_desktop_database_postun |
22c15797 | 118 | |
401cfdca | 119 | %files -f %{name}.lang |
597867c7 | 120 | %defattr(644,root,root,755) |
068d59c7 | 121 | %doc AUTHORS ChangeLog HACKING.txt NEWS README TRANSLATORS |
90b51ec4 | 122 | %lang(ca) %doc README.ca.txt |
123 | %lang(de) %doc README.de.txt | |
124 | %lang(es) %doc README.es.txt | |
125 | %lang(fr) %doc README.fr.txt | |
126 | %lang(it) %doc README.it.txt | |
068d59c7 | 127 | %lang(de) %doc HACKING.de.txt |
128 | %lang(fr) %doc HACKING.fr.txt | |
129 | %lang(it) %doc HACKING.it.txt | |
fa7e1cfb MB |
130 | %attr(755,root,root) %{_bindir}/inkscape |
131 | %attr(755,root,root) %{_bindir}/inkview | |
60fad862 | 132 | %dir %{_datadir}/inkscape |
133 | %{_datadir}/inkscape/[!e]* | |
134 | %{_datadir}/inkscape/examples | |
135 | %dir %{_datadir}/inkscape/extensions | |
a52a6383 | 136 | %{_datadir}/inkscape/extensions/Poly3DObjects/ |
137 | %{_datadir}/inkscape/extensions/alphabet_soup/ | |
60fad862 | 138 | %{_datadir}/inkscape/extensions/*.inx |
a52a6383 | 139 | %{_datadir}/inkscape/extensions/*.js |
34cd2370 PZ |
140 | %{_datadir}/inkscape/extensions/*.xml |
141 | %{_datadir}/inkscape/extensions/*.xsl | |
d0824210 | 142 | %{_datadir}/inkscape/extensions/*.xslt |
60fad862 | 143 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.pl |
144 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.pm | |
145 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.py | |
068d59c7 | 146 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.rb |
60fad862 | 147 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh |
34cd2370 PZ |
148 | %dir %{_datadir}/inkscape/extensions/Barcode |
149 | %attr(755,root,root) %{_datadir}/inkscape/extensions/Barcode/*.py | |
150 | %dir %{_datadir}/inkscape/extensions/xaml2svg | |
151 | %{_datadir}/inkscape/extensions/xaml2svg/*.xsl | |
fa7e1cfb MB |
152 | %{_mandir}/man1/*.1* |
153 | %lang(fr) %{_mandir}/fr/man1/*.1* | |
401cfdca | 154 | %{_pixmapsdir}/*.png |
fa7e1cfb | 155 | %{_desktopdir}/inkscape.desktop |