]>
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 |
5aead68c AM |
18 | Version: 0.48.4 |
19 | Release: 0.1 | |
8bb0fc46 | 20 | License: GPL v2+, LGPL v2.1+ |
fa7e1cfb | 21 | Group: X11/Applications/Graphics |
8bb0fc46 | 22 | Source0: http://downloads.sourceforge.net/inkscape/%{name}-%{version}%{beta}.tar.bz2 |
5aead68c | 23 | # Source0-md5: 47bd8546e42ba396624eef9eb66b9b6c |
fa7e1cfb | 24 | # workaround for https://bugs.launchpad.net/inkscape/+bug/487038 |
8bb0fc46 | 25 | Patch0: %{name}-ldl.patch |
4ba74276 | 26 | Patch1: %{name}-0.48.2-types.patch |
5aead68c | 27 | Patch2: %{name}-build.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 |
e47d40b1 | 36 | BuildRequires: gc-devel >= 6.4 |
ee6d403c | 37 | BuildRequires: gettext-devel |
fa7e1cfb | 38 | BuildRequires: glibmm-devel >= 2.16.0 |
b65d9413 | 39 | %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.15.2} |
8bb0fc46 | 40 | BuildRequires: gsl-devel |
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 |
44 | BuildRequires: intltool >= 0.35.0 | |
45 | BuildRequires: lcms-devel >= 1.15 | |
91f416f3 | 46 | BuildRequires: libpng-devel >= 1.2 |
e47d40b1 | 47 | BuildRequires: libsigc++-devel >= 2.0.17 |
8bb0fc46 | 48 | BuildRequires: libstdc++-devel >= 6:4.2.2-2 |
efb4548f | 49 | BuildRequires: libtool |
8bb0fc46 | 50 | BuildRequires: libwpg-devel |
e47d40b1 | 51 | BuildRequires: libxml2-devel >= 1:2.6.26 |
52 | BuildRequires: libxslt-devel >= 1.1.17 | |
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 |
f6400ea8 | 82 | %patch1 -p1 |
c4df3d12 | 83 | %patch2 -p1 |
fa7e1cfb | 84 | |
d59a673f | 85 | %{__rm} po/en_US@piglatin.po |
8bb0fc46 | 86 | %{__sed} -i -e 's|en_US@piglatin||' configure.ac |
597867c7 | 87 | |
ddf104ba AF |
88 | mv po/te_IN.po po/te.po |
89 | %{__sed} -i -e 's|te_IN|te|' configure.ac | |
90 | ||
597867c7 | 91 | %build |
efb4548f | 92 | %{__libtoolize} |
ea00493b | 93 | %{__glib_gettextize} |
94 | %{__intltoolize} | |
efb4548f JB |
95 | %{__aclocal} |
96 | %{__autoheader} | |
97 | %{__automake} | |
98 | %{__autoconf} | |
0202eed1 | 99 | %configure \ |
8eb54fda | 100 | --disable-silent-rules \ |
dc92bb62 | 101 | %{!?with_xft: --without-xft} \ |
b65d9413 | 102 | %{!?with_gnomevfs:--without-gnome-vfs} \ |
ac61fe9a | 103 | %{!?with_mmx:--disable-mmx} \ |
22c15797 | 104 | %{?with_relocation:--enable-binreloc} \ |
fa7e1cfb | 105 | %{?with_inkboard:--enable-inkboard} |
35f78de7 JB |
106 | |
107 | %{__make} | |
597867c7 | 108 | |
109 | %install | |
110 | rm -rf $RPM_BUILD_ROOT | |
597867c7 | 111 | |
35f78de7 JB |
112 | %{__make} install \ |
113 | DESTDIR=$RPM_BUILD_ROOT | |
597867c7 | 114 | |
401cfdca JB |
115 | %find_lang %{name} |
116 | ||
597867c7 | 117 | %clean |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
dc92bb62 | 120 | |
22c15797 | 121 | %post |
fa7e1cfb | 122 | %update_desktop_database_post |
22c15797 | 123 | |
124 | %postun | |
fa7e1cfb | 125 | %update_desktop_database_postun |
22c15797 | 126 | |
401cfdca | 127 | %files -f %{name}.lang |
597867c7 | 128 | %defattr(644,root,root,755) |
8bb0fc46 | 129 | %doc AUTHORS ChangeLog NEWS README TRANSLATORS doc/HACKING.txt |
90b51ec4 | 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 | |
e5d0a423 KK |
135 | %lang(pt_BR) %doc README.it.txt |
136 | %lang(sk) %doc README.it.txt | |
137 | %lang(sr) %doc README.it.txt | |
8bb0fc46 | 138 | %lang(de) %doc doc/HACKING.de.txt |
139 | %lang(fr) %doc doc/HACKING.fr.txt | |
140 | %lang(it) %doc doc/HACKING.it.txt | |
e5d0a423 | 141 | %lang(pt_BR) %doc doc/HACKING.it.txt |
fa7e1cfb MB |
142 | %attr(755,root,root) %{_bindir}/inkscape |
143 | %attr(755,root,root) %{_bindir}/inkview | |
60fad862 | 144 | %dir %{_datadir}/inkscape |
145 | %{_datadir}/inkscape/[!e]* | |
146 | %{_datadir}/inkscape/examples | |
147 | %dir %{_datadir}/inkscape/extensions | |
a52a6383 | 148 | %{_datadir}/inkscape/extensions/Poly3DObjects/ |
149 | %{_datadir}/inkscape/extensions/alphabet_soup/ | |
60fad862 | 150 | %{_datadir}/inkscape/extensions/*.inx |
a52a6383 | 151 | %{_datadir}/inkscape/extensions/*.js |
34cd2370 PZ |
152 | %{_datadir}/inkscape/extensions/*.xml |
153 | %{_datadir}/inkscape/extensions/*.xsl | |
d0824210 | 154 | %{_datadir}/inkscape/extensions/*.xslt |
60fad862 | 155 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.pl |
156 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.pm | |
157 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.py | |
068d59c7 | 158 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.rb |
60fad862 | 159 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh |
34cd2370 PZ |
160 | %dir %{_datadir}/inkscape/extensions/Barcode |
161 | %attr(755,root,root) %{_datadir}/inkscape/extensions/Barcode/*.py | |
162 | %dir %{_datadir}/inkscape/extensions/xaml2svg | |
163 | %{_datadir}/inkscape/extensions/xaml2svg/*.xsl | |
fa7e1cfb | 164 | %{_mandir}/man1/*.1* |
e5d0a423 | 165 | %lang(el) %{_mandir}/el/man1/*.1* |
fa7e1cfb | 166 | %lang(fr) %{_mandir}/fr/man1/*.1* |
e5d0a423 KK |
167 | %lang(ja) %{_mandir}/ja/man1/*.1* |
168 | %lang(sk) %{_mandir}/sk/man1/*.1* | |
169 | %lang(zh_TW) %{_mandir}/zh_TW/man1/*.1* | |
8bb0fc46 | 170 | %{_iconsdir}/hicolor/*/apps/inkscape.png |
fa7e1cfb | 171 | %{_desktopdir}/inkscape.desktop |