]>
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 |
34cd2370 | 15 | Version: 0.46 |
cd1c46ef | 16 | Release: 8 |
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 |
34cd2370 | 20 | # Source0-md5: 3bae9034047379012127e52f9b138d32 |
83524a04 | 21 | Patch0: %{name}-desktop.patch |
22 | Patch1: %{name}-poppler.patch | |
23 | Patch2: %{name}-gcc43.patch | |
24 | Patch3: %{name}-gtk2.patch | |
52fc679d | 25 | Patch4: %{name}-slider.patch |
26 | Patch5: %{name}-gcc44.patch | |
27 | Patch6: %{name}-early-png-header.patch | |
28 | Patch7: %{name}-gchar.patch | |
29 | Patch8: %{name}-install.patch | |
597867c7 | 30 | URL: http://www.inkscape.org/ |
f3f3339a | 31 | BuildRequires: autoconf >= 2.59-3 |
25641cda | 32 | BuildRequires: automake >= 1:1.9.4-2 |
d1ecba76 | 33 | BuildRequires: boost-devel >= 1.35.0 |
35f78de7 | 34 | BuildRequires: freetype-devel >= 2.0 |
1f3f79b3 | 35 | BuildRequires: gcc-c++ >= 6:4.2.2-2 |
e47d40b1 | 36 | BuildRequires: gc-devel >= 6.4 |
ee6d403c | 37 | BuildRequires: gettext-devel |
b65d9413 | 38 | %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.15.2} |
e47d40b1 | 39 | BuildRequires: gtk+2-devel >= 2:2.9.4 |
8752c439 | 40 | BuildRequires: gtkmm-devel >= 2.10.0 |
e47d40b1 | 41 | BuildRequires: gtkspell-devel >= 2.0.11 |
42 | BuildRequires: intltool >= 0.35.0 | |
43 | BuildRequires: lcms-devel >= 1.15 | |
35f78de7 | 44 | BuildRequires: libart_lgpl-devel >= 2.3.10 |
b65d9413 | 45 | %{?with_gnomeprint:BuildRequires: libgnomeprintui-devel >= 2.12.1} |
91f416f3 | 46 | BuildRequires: libpng-devel >= 1.2 |
e47d40b1 | 47 | BuildRequires: libsigc++-devel >= 2.0.17 |
efb4548f | 48 | BuildRequires: libtool |
e47d40b1 | 49 | BuildRequires: libxml2-devel >= 1:2.6.26 |
50 | BuildRequires: libxslt-devel >= 1.1.17 | |
51 | %{?with_inkboard:BuildRequires: loudmouth-devel >= 1.0.3} | |
35f78de7 | 52 | BuildRequires: pkgconfig |
efb4548f | 53 | BuildRequires: popt-devel |
ee6d403c | 54 | BuildRequires: rpm-pythonprov |
641594f1 | 55 | %{?with_xft:BuildRequires: xorg-lib-libXft-devel} |
91f416f3 | 56 | BuildRequires: zlib-devel |
22c15797 | 57 | Requires(post,postun): shared-mime-info |
995c2056 | 58 | Requires: gc >= 6.4 |
b65d9413 | 59 | %{?with_gnomevfs:Requires: gnome-vfs2 >= 2.15.2} |
e47d40b1 | 60 | Requires: gtk+2 >= 2:2.9.4 |
e5d3652d | 61 | Requires: perl-XML-XQL |
8ccd877c | 62 | Suggests: python-lxml |
2478b7d2 | 63 | # sr@Latn vs. sr@latin |
64 | Conflicts: glibc-misc < 6:2.7 | |
65 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
597867c7 | 66 | |
67 | %description | |
efb4548f JB |
68 | Inkscape is a program for viewing, making, and editing two-dimensional |
69 | vector drawings. | |
597867c7 | 70 | |
ab944b4b JR |
71 | %description -l pl.UTF-8 |
72 | Inkscape jest programem do przeglądania, tworzenia i edycji | |
efb4548f | 73 | dwuwymiarowej grafiki wektorowej. |
597867c7 | 74 | |
75 | %prep | |
76 | %setup -q | |
83524a04 | 77 | %patch0 -p1 |
95724bf1 | 78 | %patch1 -p1 |
d1ccbd82 MB |
79 | %patch2 -p1 |
80 | %patch3 -p1 | |
52fc679d | 81 | %patch4 -p1 |
82 | %patch5 -p1 | |
83 | %patch6 -p1 | |
84 | %patch7 -p1 | |
85 | %patch8 -p1 | |
86 | ||
83524a04 | 87 | |
a1de9875 | 88 | rm -f po/ca@valencia.po |
a539410c | 89 | rm -f po/en_US@piglatin.po |
a1de9875 | 90 | sed -i -e 's|ca@valencia||' configure.ac |
9c82b195 | 91 | sed -i -e 's|en_US@piglatin||' configure.ac |
597867c7 | 92 | |
597867c7 | 93 | %build |
efb4548f | 94 | %{__libtoolize} |
ea00493b | 95 | %{__glib_gettextize} |
96 | %{__intltoolize} | |
efb4548f JB |
97 | %{__aclocal} |
98 | %{__autoheader} | |
99 | %{__automake} | |
100 | %{__autoconf} | |
0202eed1 | 101 | %configure \ |
dc92bb62 | 102 | %{!?with_xft: --without-xft} \ |
b65d9413 JB |
103 | %{!?with_gnomeprint:--without-gnome-print} \ |
104 | %{?with_gnomeprint:--with-gnome-print} \ | |
105 | %{!?with_gnomevfs:--without-gnome-vfs} \ | |
ac61fe9a | 106 | %{!?with_mmx:--disable-mmx} \ |
22c15797 | 107 | %{?with_relocation:--enable-binreloc} \ |
dc92bb62 | 108 | %{?with_inkboard:--enable-inkboard} \ |
22c15797 | 109 | --disable-static |
35f78de7 JB |
110 | |
111 | %{__make} | |
597867c7 | 112 | |
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
597867c7 | 115 | |
35f78de7 JB |
116 | %{__make} install \ |
117 | DESTDIR=$RPM_BUILD_ROOT | |
597867c7 | 118 | |
2478b7d2 | 119 | [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \ |
120 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin} | |
401cfdca JB |
121 | %find_lang %{name} |
122 | ||
597867c7 | 123 | %clean |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
dc92bb62 | 126 | |
22c15797 | 127 | %post |
128 | umask 022 | |
81f55a8d | 129 | update-mime-database %{_datadir}/mime >/dev/null 2>&1 ||: |
22c15797 | 130 | [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||: |
131 | ||
132 | %postun | |
133 | umask 022 | |
81f55a8d | 134 | update-mime-database %{_datadir}/mime >/dev/null 2>&1 |
22c15797 | 135 | [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 |
136 | ||
401cfdca | 137 | %files -f %{name}.lang |
597867c7 | 138 | %defattr(644,root,root,755) |
068d59c7 | 139 | %doc AUTHORS ChangeLog HACKING.txt NEWS README TRANSLATORS |
90b51ec4 | 140 | %lang(ca) %doc README.ca.txt |
141 | %lang(de) %doc README.de.txt | |
142 | %lang(es) %doc README.es.txt | |
143 | %lang(fr) %doc README.fr.txt | |
144 | %lang(it) %doc README.it.txt | |
068d59c7 | 145 | %lang(de) %doc HACKING.de.txt |
146 | %lang(fr) %doc HACKING.fr.txt | |
147 | %lang(it) %doc HACKING.it.txt | |
401cfdca | 148 | %attr(755,root,root) %{_bindir}/* |
60fad862 | 149 | %dir %{_datadir}/inkscape |
150 | %{_datadir}/inkscape/[!e]* | |
151 | %{_datadir}/inkscape/examples | |
152 | %dir %{_datadir}/inkscape/extensions | |
d0824210 | 153 | %{_datadir}/inkscape/extensions/*.cmd |
60fad862 | 154 | %{_datadir}/inkscape/extensions/*.inx |
068d59c7 | 155 | %{_datadir}/inkscape/extensions/*.txt |
34cd2370 PZ |
156 | %{_datadir}/inkscape/extensions/*.xml |
157 | %{_datadir}/inkscape/extensions/*.xsl | |
d0824210 | 158 | %{_datadir}/inkscape/extensions/*.xslt |
60fad862 | 159 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.pl |
160 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.pm | |
161 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.py | |
068d59c7 | 162 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.rb |
60fad862 | 163 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh |
34cd2370 PZ |
164 | %dir %{_datadir}/inkscape/extensions/Barcode |
165 | %attr(755,root,root) %{_datadir}/inkscape/extensions/Barcode/*.py | |
166 | %dir %{_datadir}/inkscape/extensions/xaml2svg | |
167 | %{_datadir}/inkscape/extensions/xaml2svg/*.xsl | |
401cfdca | 168 | %{_mandir}/man1/* |
7e690412 | 169 | %lang(fr) %{_mandir}/fr/man1/* |
401cfdca JB |
170 | %{_pixmapsdir}/*.png |
171 | %{_desktopdir}/*.desktop |