]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: check why build requires libselinux-devel (because of some gnome* stuff) | |
3 | # | |
4 | # Conditional build | |
5 | %bcond_without xft # Don't use xft scalable font database | |
6 | %bcond_without gnomevfs # Don't use gnome vfs for loading files | |
7 | %bcond_without mmx # Force building without MMX optimazation (Default: auto-detect) | |
8 | %bcond_with inkboard # Enable inkboard support | |
9 | %bcond_with relocation # Enable binary relocation support | |
10 | # | |
11 | ||
12 | # just set it nil when non-preview arrives | |
13 | %define beta %{nil} | |
14 | ||
15 | Summary: Scalable vector graphics editor | |
16 | Summary(pl.UTF-8): Edytor skalowalnej grafiki wektorowej | |
17 | Name: inkscape | |
18 | Version: 0.91 | |
19 | Release: 13 | |
20 | License: GPL v2+, LGPL v2.1+ | |
21 | Group: X11/Applications/Graphics | |
22 | #Source0: http://downloads.sourceforge.net/inkscape/%{name}-%{version}%{beta}.tar.bz2 | |
23 | Source0: https://inkscape.org/en/gallery/item/3860/%{name}-%{version}%{beta}.tar.bz2 | |
24 | # Source0-md5: 278dfa4514adcde23546370ec2c84581 | |
25 | # workaround for https://bugs.launchpad.net/inkscape/+bug/487038 | |
26 | Patch0: %{name}-ldl.patch | |
27 | Patch1: %{name}-0.48.2-types.patch | |
28 | Patch2: %{name}-0.91-drop-wait-for-targets.patch | |
29 | URL: http://www.inkscape.org/ | |
30 | BuildRequires: ImageMagick-c++-devel | |
31 | BuildRequires: aspell-devel | |
32 | BuildRequires: autoconf >= 2.59-3 | |
33 | BuildRequires: automake >= 1:1.9.4-2 | |
34 | BuildRequires: boost-devel >= 1.36 | |
35 | BuildRequires: cairo-devel >= 1.8.0 | |
36 | BuildRequires: freetype-devel >= 2.0 | |
37 | BuildRequires: gc-devel >= 6.4 | |
38 | BuildRequires: gettext-tools | |
39 | BuildRequires: glibmm-devel >= 2.16.0 | |
40 | %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.15.2} | |
41 | BuildRequires: gsl-devel | |
42 | BuildRequires: gtk+2-devel >= 2:2.14.0 | |
43 | BuildRequires: gtkmm-devel >= 2.10.0 | |
44 | BuildRequires: gtkspell-devel >= 2.0.11 | |
45 | BuildRequires: intltool >= 0.35.0 | |
46 | BuildRequires: lcms2-devel >= 2 | |
47 | BuildRequires: libgomp-devel | |
48 | BuildRequires: libpng-devel >= 1.2 | |
49 | BuildRequires: libsigc++-devel >= 2.0.17 | |
50 | BuildRequires: libstdc++-devel >= 6:4.2.2-2 | |
51 | BuildRequires: libtool | |
52 | BuildRequires: libwpd-devel >= 0.9 | |
53 | BuildRequires: libwpg-devel >= 0.2 | |
54 | BuildRequires: libxml2-devel >= 1:2.6.26 | |
55 | BuildRequires: libxslt-devel >= 1.1.17 | |
56 | %{?with_inkboard:BuildRequires: loudmouth-devel >= 1.0.3} | |
57 | BuildRequires: pkgconfig | |
58 | BuildRequires: poppler-glib-devel >= 0.20.0 | |
59 | BuildRequires: popt-devel | |
60 | BuildRequires: rpm-pythonprov | |
61 | BuildRequires: sed >= 4.0 | |
62 | %{?with_xft:BuildRequires: xorg-lib-libXft-devel} | |
63 | BuildRequires: zlib-devel | |
64 | Requires(post,postun): desktop-file-utils | |
65 | Requires: cairo >= 1.8.0 | |
66 | Requires: gc >= 6.4 | |
67 | Requires: glibmm >= 2.16.0 | |
68 | %{?with_gnomevfs:Requires: gnome-vfs2 >= 2.15.2} | |
69 | Requires: gtk+2 >= 2:2.14.0 | |
70 | Requires: gtkmm >= 2.24.0 | |
71 | Requires: gtkspell >= 2.0.11 | |
72 | Requires: libsigc++ >= 2.0.17 | |
73 | Requires: libxml2 >= 1:2.6.26 | |
74 | Requires: libxslt >= 1.1.17 | |
75 | Requires: perl-XML-XQL | |
76 | Requires: poppler-glib >= 0.20.0 | |
77 | Suggests: python-lxml | |
78 | # sr@Latn vs. sr@latin | |
79 | Conflicts: glibc-misc < 6:2.7 | |
80 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
81 | ||
82 | %description | |
83 | Inkscape is a program for viewing, making, and editing two-dimensional | |
84 | vector drawings. | |
85 | ||
86 | %description -l pl.UTF-8 | |
87 | Inkscape jest programem do przeglÄ…dania, tworzenia i edycji | |
88 | dwuwymiarowej grafiki wektorowej. | |
89 | ||
90 | %prep | |
91 | %setup -q -n %{name}-%{version}%{beta} | |
92 | %patch0 -p1 | |
93 | %patch1 -p1 | |
94 | %patch2 -p0 | |
95 | ||
96 | %build | |
97 | %{__libtoolize} | |
98 | %{__glib_gettextize} | |
99 | %{__intltoolize} | |
100 | %{__aclocal} | |
101 | %{__autoheader} | |
102 | %{__automake} | |
103 | %{__autoconf} | |
104 | CXXFLAGS="%{rpmcxxflags} -std=c++11" | |
105 | %configure \ | |
106 | --disable-silent-rules \ | |
107 | %{!?with_xft: --without-xft} \ | |
108 | %{!?with_gnomevfs:--without-gnome-vfs} \ | |
109 | %{!?with_mmx:--disable-mmx} \ | |
110 | %{?with_relocation:--enable-binreloc} \ | |
111 | %{?with_inkboard:--enable-inkboard} | |
112 | ||
113 | %{__make} | |
114 | ||
115 | %install | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %{__make} install \ | |
119 | DESTDIR=$RPM_BUILD_ROOT | |
120 | ||
121 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/{bn_BD,en_US@piglatin} | |
122 | ||
123 | %find_lang %{name} | |
124 | ||
125 | %clean | |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
128 | ||
129 | %post | |
130 | %update_desktop_database_post | |
131 | ||
132 | %postun | |
133 | %update_desktop_database_postun | |
134 | ||
135 | %files -f %{name}.lang | |
136 | %defattr(644,root,root,755) | |
137 | %doc AUTHORS ChangeLog NEWS README TRANSLATORS doc/HACKING.txt | |
138 | %lang(ca) %doc README.ca.txt | |
139 | %lang(de) %doc README.de.txt | |
140 | %lang(es) %doc README.es.txt | |
141 | %lang(fr) %doc README.fr.txt | |
142 | %lang(it) %doc README.it.txt | |
143 | %lang(pt_BR) %doc README.it.txt | |
144 | %lang(sk) %doc README.it.txt | |
145 | %lang(sr) %doc README.it.txt | |
146 | %lang(de) %doc doc/HACKING.de.txt | |
147 | %lang(fr) %doc doc/HACKING.fr.txt | |
148 | %lang(it) %doc doc/HACKING.it.txt | |
149 | %lang(pt_BR) %doc doc/HACKING.it.txt | |
150 | %attr(755,root,root) %{_bindir}/inkscape | |
151 | %attr(755,root,root) %{_bindir}/inkview | |
152 | %dir %{_datadir}/inkscape | |
153 | %{_datadir}/inkscape/[!e]* | |
154 | %{_datadir}/inkscape/examples | |
155 | %dir %{_datadir}/inkscape/extensions | |
156 | %{_datadir}/inkscape/extensions/Poly3DObjects/ | |
157 | %{_datadir}/inkscape/extensions/alphabet_soup/ | |
158 | %{_datadir}/inkscape/extensions/*.inx | |
159 | %{_datadir}/inkscape/extensions/*.js | |
160 | %{_datadir}/inkscape/extensions/*.xml | |
161 | %{_datadir}/inkscape/extensions/*.xsl | |
162 | %{_datadir}/inkscape/extensions/*.xslt | |
163 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.pl | |
164 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.py | |
165 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.rb | |
166 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh | |
167 | %dir %{_datadir}/inkscape/extensions/ink2canvas | |
168 | %attr(755,root,root) %{_datadir}/inkscape/extensions/ink2canvas/*.py | |
169 | %dir %{_datadir}/inkscape/extensions/Barcode | |
170 | %attr(755,root,root) %{_datadir}/inkscape/extensions/Barcode/*.py | |
171 | %dir %{_datadir}/inkscape/extensions/xaml2svg | |
172 | %{_datadir}/inkscape/extensions/xaml2svg/*.xsl | |
173 | %{_datadir}/inkscape/extensions/fontfix.conf | |
174 | %{_datadir}/inkscape/extensions/inkscape.extension.rng | |
175 | %{_datadir}/inkscape/extensions/jessyInk_video.svg | |
176 | %{_mandir}/man1/*.1* | |
177 | %lang(el) %{_mandir}/el/man1/*.1* | |
178 | %lang(fr) %{_mandir}/fr/man1/*.1* | |
179 | %lang(ja) %{_mandir}/ja/man1/*.1* | |
180 | %lang(sk) %{_mandir}/sk/man1/*.1* | |
181 | %lang(zh_TW) %{_mandir}/zh_TW/man1/*.1* | |
182 | %{_iconsdir}/hicolor/*/apps/inkscape.png | |
183 | %{_desktopdir}/inkscape.desktop |