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