]>
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 JB |
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 | |
efb4548f | 8 | %bcond_without mmx # Force building without MMX optimazation (Default: auto-detect) |
dc92bb62 | 9 | %bcond_with inkboard # Enable inkboard support |
ac61fe9a | 10 | %bcond_with relocation # Enable binary relocation support |
efb4548f JB |
11 | # |
12 | Summary: Scalable vector graphics editor | |
2ae499ae | 13 | Summary(pl.UTF-8): Edytor skalowalnej grafiki wektorowej |
597867c7 | 14 | Name: inkscape |
9c82b195 | 15 | Version: 0.45.1 |
1f3f79b3 | 16 | Release: 3 |
790f9647 | 17 | License: GPL v2, LGPL v2.1 |
643226af | 18 | Group: Applications/Graphics |
a35f5b7e | 19 | Source0: http://dl.sourceforge.net/inkscape/%{name}-%{version}.tar.gz |
9c82b195 | 20 | # Source0-md5: 1ac63dfd5d78a676599bf5cf6d22e493 |
a35f5b7e | 21 | Patch0: %{name}-ac.patch |
95724bf1 | 22 | Patch1: %{name}-desktop.patch |
597867c7 | 23 | URL: http://www.inkscape.org/ |
f3f3339a | 24 | BuildRequires: autoconf >= 2.59-3 |
25641cda | 25 | BuildRequires: automake >= 1:1.9.4-2 |
91a1edf5 | 26 | BuildRequires: boost-any-devel |
27 | BuildRequires: boost-bind-devel | |
35f78de7 | 28 | BuildRequires: freetype-devel >= 2.0 |
1f3f79b3 | 29 | BuildRequires: gcc-c++ >= 6:4.2.2-2 |
e47d40b1 | 30 | BuildRequires: gc-devel >= 6.4 |
ee6d403c | 31 | BuildRequires: gettext-devel |
b65d9413 | 32 | %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.15.2} |
e47d40b1 | 33 | BuildRequires: gtk+2-devel >= 2:2.9.4 |
10491a52 | 34 | BuildRequires: gtkmm-devel >= 2.4 |
e47d40b1 | 35 | BuildRequires: gtkspell-devel >= 2.0.11 |
36 | BuildRequires: intltool >= 0.35.0 | |
37 | BuildRequires: lcms-devel >= 1.15 | |
35f78de7 | 38 | BuildRequires: libart_lgpl-devel >= 2.3.10 |
b65d9413 | 39 | %{?with_gnomeprint:BuildRequires: libgnomeprintui-devel >= 2.12.1} |
91f416f3 | 40 | BuildRequires: libpng-devel >= 1.2 |
e47d40b1 | 41 | BuildRequires: libsigc++-devel >= 2.0.17 |
efb4548f | 42 | BuildRequires: libtool |
e47d40b1 | 43 | BuildRequires: libxml2-devel >= 1:2.6.26 |
44 | BuildRequires: libxslt-devel >= 1.1.17 | |
45 | %{?with_inkboard:BuildRequires: loudmouth-devel >= 1.0.3} | |
35f78de7 | 46 | BuildRequires: pkgconfig |
efb4548f | 47 | BuildRequires: popt-devel |
ee6d403c | 48 | BuildRequires: rpm-pythonprov |
641594f1 | 49 | %{?with_xft:BuildRequires: xorg-lib-libXft-devel} |
91f416f3 | 50 | BuildRequires: zlib-devel |
22c15797 | 51 | Requires(post,postun): shared-mime-info |
995c2056 | 52 | Requires: gc >= 6.4 |
b65d9413 | 53 | %{?with_gnomevfs:Requires: gnome-vfs2 >= 2.15.2} |
e47d40b1 | 54 | Requires: gtk+2 >= 2:2.9.4 |
e5d3652d | 55 | Requires: perl-XML-XQL |
597867c7 | 56 | Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
57 | ||
58 | %description | |
efb4548f JB |
59 | Inkscape is a program for viewing, making, and editing two-dimensional |
60 | vector drawings. | |
597867c7 | 61 | |
ab944b4b JR |
62 | %description -l pl.UTF-8 |
63 | Inkscape jest programem do przeglądania, tworzenia i edycji | |
efb4548f | 64 | dwuwymiarowej grafiki wektorowej. |
597867c7 | 65 | |
66 | %prep | |
67 | %setup -q | |
a35f5b7e | 68 | %patch0 -p1 |
95724bf1 | 69 | %patch1 -p1 |
a539410c | 70 | rm -f po/en_US@piglatin.po |
9c82b195 | 71 | sed -i -e 's|en_US@piglatin||' configure.ac |
597867c7 | 72 | |
597867c7 | 73 | %build |
efb4548f | 74 | %{__libtoolize} |
ea00493b | 75 | %{__glib_gettextize} |
76 | %{__intltoolize} | |
efb4548f JB |
77 | %{__aclocal} |
78 | %{__autoheader} | |
79 | %{__automake} | |
80 | %{__autoconf} | |
0202eed1 | 81 | %configure \ |
dc92bb62 | 82 | %{!?with_xft: --without-xft} \ |
b65d9413 JB |
83 | %{!?with_gnomeprint:--without-gnome-print} \ |
84 | %{?with_gnomeprint:--with-gnome-print} \ | |
85 | %{!?with_gnomevfs:--without-gnome-vfs} \ | |
ac61fe9a | 86 | %{!?with_mmx:--disable-mmx} \ |
22c15797 | 87 | %{?with_relocation:--enable-binreloc} \ |
dc92bb62 | 88 | %{?with_inkboard:--enable-inkboard} \ |
22c15797 | 89 | --disable-static |
35f78de7 JB |
90 | |
91 | %{__make} | |
597867c7 | 92 | |
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
597867c7 | 95 | |
35f78de7 JB |
96 | %{__make} install \ |
97 | DESTDIR=$RPM_BUILD_ROOT | |
597867c7 | 98 | |
401cfdca JB |
99 | %find_lang %{name} |
100 | ||
597867c7 | 101 | %clean |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
dc92bb62 | 104 | |
22c15797 | 105 | %post |
106 | umask 022 | |
81f55a8d | 107 | update-mime-database %{_datadir}/mime >/dev/null 2>&1 ||: |
22c15797 | 108 | [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||: |
109 | ||
110 | %postun | |
111 | umask 022 | |
81f55a8d | 112 | update-mime-database %{_datadir}/mime >/dev/null 2>&1 |
22c15797 | 113 | [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 |
114 | ||
401cfdca | 115 | %files -f %{name}.lang |
597867c7 | 116 | %defattr(644,root,root,755) |
068d59c7 | 117 | %doc AUTHORS ChangeLog HACKING.txt NEWS README TRANSLATORS |
90b51ec4 | 118 | %lang(ca) %doc README.ca.txt |
119 | %lang(de) %doc README.de.txt | |
120 | %lang(es) %doc README.es.txt | |
121 | %lang(fr) %doc README.fr.txt | |
122 | %lang(it) %doc README.it.txt | |
068d59c7 | 123 | %lang(de) %doc HACKING.de.txt |
124 | %lang(fr) %doc HACKING.fr.txt | |
125 | %lang(it) %doc HACKING.it.txt | |
401cfdca | 126 | %attr(755,root,root) %{_bindir}/* |
60fad862 | 127 | %dir %{_datadir}/inkscape |
128 | %{_datadir}/inkscape/[!e]* | |
129 | %{_datadir}/inkscape/examples | |
130 | %dir %{_datadir}/inkscape/extensions | |
d0824210 | 131 | %{_datadir}/inkscape/extensions/*.cmd |
60fad862 | 132 | %{_datadir}/inkscape/extensions/*.inx |
068d59c7 | 133 | %{_datadir}/inkscape/extensions/*.txt |
d0824210 | 134 | %{_datadir}/inkscape/extensions/*.xslt |
60fad862 | 135 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.pl |
136 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.pm | |
137 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.py | |
068d59c7 | 138 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.rb |
60fad862 | 139 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh |
140 | %attr(755,root,root) %{_datadir}/inkscape/extensions/svg_dropshadow | |
401cfdca | 141 | %{_mandir}/man1/* |
7e690412 | 142 | %lang(fr) %{_mandir}/fr/man1/* |
401cfdca JB |
143 | %{_pixmapsdir}/*.png |
144 | %{_desktopdir}/*.desktop |