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