]> git.pld-linux.org Git - packages/inkscape.git/blame - inkscape.spec
- rebuild with ImageMagick 7.0.3
[packages/inkscape.git] / inkscape.spec
CommitLineData
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 15Summary: Scalable vector graphics editor
2ae499ae 16Summary(pl.UTF-8): Edytor skalowalnej grafiki wektorowej
597867c7 17Name: inkscape
a5d5a7c6 18Version: 0.91
c040b220 19Release: 11
8bb0fc46 20License: GPL v2+, LGPL v2.1+
fa7e1cfb 21Group: X11/Applications/Graphics
a5d5a7c6
JR
22#Source0: http://downloads.sourceforge.net/inkscape/%{name}-%{version}%{beta}.tar.bz2
23Source0: https://inkscape.org/en/gallery/item/3860/%{name}-%{version}%{beta}.tar.bz2
24# Source0-md5: 278dfa4514adcde23546370ec2c84581
fa7e1cfb 25# workaround for https://bugs.launchpad.net/inkscape/+bug/487038
8bb0fc46 26Patch0: %{name}-ldl.patch
4ba74276 27Patch1: %{name}-0.48.2-types.patch
51085c65 28Patch2: %{name}-0.91-drop-wait-for-targets.patch
597867c7 29URL: http://www.inkscape.org/
fa7e1cfb
MB
30BuildRequires: ImageMagick-c++-devel
31BuildRequires: aspell-devel
f3f3339a 32BuildRequires: autoconf >= 2.59-3
25641cda 33BuildRequires: automake >= 1:1.9.4-2
6feea007 34BuildRequires: boost-devel >= 1.36
fa7e1cfb 35BuildRequires: cairo-devel >= 1.8.0
35f78de7 36BuildRequires: freetype-devel >= 2.0
e47d40b1 37BuildRequires: gc-devel >= 6.4
676fa0bb 38BuildRequires: gettext-tools
fa7e1cfb 39BuildRequires: glibmm-devel >= 2.16.0
b65d9413 40%{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.15.2}
8bb0fc46 41BuildRequires: gsl-devel
fa7e1cfb 42BuildRequires: gtk+2-devel >= 2:2.14.0
8752c439 43BuildRequires: gtkmm-devel >= 2.10.0
e47d40b1 44BuildRequires: gtkspell-devel >= 2.0.11
45BuildRequires: intltool >= 0.35.0
6feea007
JB
46BuildRequires: lcms2-devel >= 2
47BuildRequires: libgomp-devel
91f416f3 48BuildRequires: libpng-devel >= 1.2
e47d40b1 49BuildRequires: libsigc++-devel >= 2.0.17
8bb0fc46 50BuildRequires: libstdc++-devel >= 6:4.2.2-2
efb4548f 51BuildRequires: libtool
6feea007
JB
52BuildRequires: libwpd-devel >= 0.9
53BuildRequires: libwpg-devel >= 0.2
e47d40b1 54BuildRequires: libxml2-devel >= 1:2.6.26
55BuildRequires: libxslt-devel >= 1.1.17
56%{?with_inkboard:BuildRequires: loudmouth-devel >= 1.0.3}
35f78de7 57BuildRequires: pkgconfig
6feea007 58BuildRequires: poppler-glib-devel >= 0.20.0
efb4548f 59BuildRequires: popt-devel
ee6d403c 60BuildRequires: rpm-pythonprov
fa7e1cfb 61BuildRequires: sed >= 4.0
641594f1 62%{?with_xft:BuildRequires: xorg-lib-libXft-devel}
91f416f3 63BuildRequires: zlib-devel
fa7e1cfb 64Requires(post,postun): desktop-file-utils
6feea007 65Requires: cairo >= 1.8.0
995c2056 66Requires: gc >= 6.4
6feea007 67Requires: glibmm >= 2.16.0
b65d9413 68%{?with_gnomevfs:Requires: gnome-vfs2 >= 2.15.2}
fa7e1cfb 69Requires: gtk+2 >= 2:2.14.0
11204905 70Requires: gtkmm >= 2.24.0
6feea007
JB
71Requires: gtkspell >= 2.0.11
72Requires: libsigc++ >= 2.0.17
73Requires: libxml2 >= 1:2.6.26
74Requires: libxslt >= 1.1.17
e5d3652d 75Requires: perl-XML-XQL
6feea007 76Requires: poppler-glib >= 0.20.0
8ccd877c 77Suggests: python-lxml
2478b7d2 78# sr@Latn vs. sr@latin
79Conflicts: glibc-misc < 6:2.7
80BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
597867c7 81
82%description
efb4548f
JB
83Inkscape is a program for viewing, making, and editing two-dimensional
84vector drawings.
597867c7 85
ab944b4b
JR
86%description -l pl.UTF-8
87Inkscape jest programem do przeglądania, tworzenia i edycji
efb4548f 88dwuwymiarowej grafiki wektorowej.
597867c7 89
90%prep
a52a6383 91%setup -q -n %{name}-%{version}%{beta}
fa7e1cfb 92%patch0 -p1
f6400ea8 93%patch1 -p1
51085c65 94%patch2 -p0
ddf104ba 95
597867c7 96%build
efb4548f 97%{__libtoolize}
ea00493b 98%{__glib_gettextize}
99%{__intltoolize}
efb4548f
JB
100%{__aclocal}
101%{__autoheader}
102%{__automake}
103%{__autoconf}
4d4df98a 104CXXFLAGS="%{rpmcxxflags} -std=c++11"
0202eed1 105%configure \
8eb54fda 106 --disable-silent-rules \
dc92bb62 107 %{!?with_xft: --without-xft} \
b65d9413 108 %{!?with_gnomevfs:--without-gnome-vfs} \
ac61fe9a 109 %{!?with_mmx:--disable-mmx} \
22c15797 110 %{?with_relocation:--enable-binreloc} \
fa7e1cfb 111 %{?with_inkboard:--enable-inkboard}
35f78de7
JB
112
113%{__make}
597867c7 114
115%install
116rm -rf $RPM_BUILD_ROOT
597867c7 117
35f78de7
JB
118%{__make} install \
119 DESTDIR=$RPM_BUILD_ROOT
597867c7 120
6a74624a
JR
121%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/{bn_BD,en_US@piglatin}
122
401cfdca
JB
123%find_lang %{name}
124
597867c7 125%clean
126rm -rf $RPM_BUILD_ROOT
127
dc92bb62 128
22c15797 129%post
fa7e1cfb 130%update_desktop_database_post
22c15797 131
132%postun
fa7e1cfb 133%update_desktop_database_postun
22c15797 134
401cfdca 135%files -f %{name}.lang
597867c7 136%defattr(644,root,root,755)
8bb0fc46 137%doc AUTHORS ChangeLog NEWS README TRANSLATORS doc/HACKING.txt
90b51ec4 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
e5d0a423
KK
143%lang(pt_BR) %doc README.it.txt
144%lang(sk) %doc README.it.txt
145%lang(sr) %doc README.it.txt
8bb0fc46 146%lang(de) %doc doc/HACKING.de.txt
147%lang(fr) %doc doc/HACKING.fr.txt
148%lang(it) %doc doc/HACKING.it.txt
e5d0a423 149%lang(pt_BR) %doc doc/HACKING.it.txt
fa7e1cfb
MB
150%attr(755,root,root) %{_bindir}/inkscape
151%attr(755,root,root) %{_bindir}/inkview
60fad862 152%dir %{_datadir}/inkscape
153%{_datadir}/inkscape/[!e]*
154%{_datadir}/inkscape/examples
155%dir %{_datadir}/inkscape/extensions
a52a6383 156%{_datadir}/inkscape/extensions/Poly3DObjects/
157%{_datadir}/inkscape/extensions/alphabet_soup/
60fad862 158%{_datadir}/inkscape/extensions/*.inx
a52a6383 159%{_datadir}/inkscape/extensions/*.js
34cd2370
PZ
160%{_datadir}/inkscape/extensions/*.xml
161%{_datadir}/inkscape/extensions/*.xsl
d0824210 162%{_datadir}/inkscape/extensions/*.xslt
60fad862 163%attr(755,root,root) %{_datadir}/inkscape/extensions/*.pl
60fad862 164%attr(755,root,root) %{_datadir}/inkscape/extensions/*.py
068d59c7 165%attr(755,root,root) %{_datadir}/inkscape/extensions/*.rb
60fad862 166%attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh
a5d5a7c6
JR
167%dir %{_datadir}/inkscape/extensions/ink2canvas
168%attr(755,root,root) %{_datadir}/inkscape/extensions/ink2canvas/*.py
34cd2370
PZ
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
a5d5a7c6
JR
173%{_datadir}/inkscape/extensions/fontfix.conf
174%{_datadir}/inkscape/extensions/inkscape.extension.rng
175%{_datadir}/inkscape/extensions/jessyInk_video.svg
fa7e1cfb 176%{_mandir}/man1/*.1*
e5d0a423 177%lang(el) %{_mandir}/el/man1/*.1*
fa7e1cfb 178%lang(fr) %{_mandir}/fr/man1/*.1*
e5d0a423
KK
179%lang(ja) %{_mandir}/ja/man1/*.1*
180%lang(sk) %{_mandir}/sk/man1/*.1*
181%lang(zh_TW) %{_mandir}/zh_TW/man1/*.1*
8bb0fc46 182%{_iconsdir}/hicolor/*/apps/inkscape.png
fa7e1cfb 183%{_desktopdir}/inkscape.desktop
This page took 0.143748 seconds and 4 git commands to generate.