]> git.pld-linux.org Git - packages/inkscape.git/blame - inkscape.spec
- rel 1
[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
5aead68c 18Version: 0.48.4
d0cbe937 19Release: 1
8bb0fc46 20License: GPL v2+, LGPL v2.1+
fa7e1cfb 21Group: X11/Applications/Graphics
8bb0fc46 22Source0: 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 25Patch0: %{name}-ldl.patch
4ba74276 26Patch1: %{name}-0.48.2-types.patch
5aead68c 27Patch2: %{name}-build.patch
597867c7 28URL: http://www.inkscape.org/
fa7e1cfb
MB
29BuildRequires: ImageMagick-c++-devel
30BuildRequires: aspell-devel
f3f3339a 31BuildRequires: autoconf >= 2.59-3
25641cda 32BuildRequires: automake >= 1:1.9.4-2
6feea007 33BuildRequires: boost-devel >= 1.36
fa7e1cfb 34BuildRequires: cairo-devel >= 1.8.0
35f78de7 35BuildRequires: freetype-devel >= 2.0
e47d40b1 36BuildRequires: gc-devel >= 6.4
ee6d403c 37BuildRequires: gettext-devel
fa7e1cfb 38BuildRequires: glibmm-devel >= 2.16.0
b65d9413 39%{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.15.2}
8bb0fc46 40BuildRequires: gsl-devel
fa7e1cfb 41BuildRequires: gtk+2-devel >= 2:2.14.0
8752c439 42BuildRequires: gtkmm-devel >= 2.10.0
e47d40b1 43BuildRequires: gtkspell-devel >= 2.0.11
44BuildRequires: intltool >= 0.35.0
6feea007
JB
45BuildRequires: lcms2-devel >= 2
46BuildRequires: libgomp-devel
91f416f3 47BuildRequires: libpng-devel >= 1.2
e47d40b1 48BuildRequires: libsigc++-devel >= 2.0.17
8bb0fc46 49BuildRequires: libstdc++-devel >= 6:4.2.2-2
efb4548f 50BuildRequires: libtool
6feea007
JB
51BuildRequires: libwpd-devel >= 0.9
52BuildRequires: libwpg-devel >= 0.2
e47d40b1 53BuildRequires: libxml2-devel >= 1:2.6.26
54BuildRequires: libxslt-devel >= 1.1.17
55%{?with_inkboard:BuildRequires: loudmouth-devel >= 1.0.3}
35f78de7 56BuildRequires: pkgconfig
6feea007 57BuildRequires: poppler-glib-devel >= 0.20.0
efb4548f 58BuildRequires: popt-devel
ee6d403c 59BuildRequires: rpm-pythonprov
fa7e1cfb 60BuildRequires: sed >= 4.0
641594f1 61%{?with_xft:BuildRequires: xorg-lib-libXft-devel}
91f416f3 62BuildRequires: zlib-devel
fa7e1cfb 63Requires(post,postun): desktop-file-utils
6feea007 64Requires: cairo >= 1.8.0
995c2056 65Requires: gc >= 6.4
6feea007 66Requires: glibmm >= 2.16.0
b65d9413 67%{?with_gnomevfs:Requires: gnome-vfs2 >= 2.15.2}
fa7e1cfb 68Requires: gtk+2 >= 2:2.14.0
6feea007
JB
69Requires: gtkmm >= 2.10.0
70Requires: gtkspell >= 2.0.11
71Requires: libsigc++ >= 2.0.17
72Requires: libxml2 >= 1:2.6.26
73Requires: libxslt >= 1.1.17
e5d3652d 74Requires: perl-XML-XQL
6feea007 75Requires: poppler-glib >= 0.20.0
8ccd877c 76Suggests: python-lxml
2478b7d2 77# sr@Latn vs. sr@latin
78Conflicts: glibc-misc < 6:2.7
79BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
597867c7 80
81%description
efb4548f
JB
82Inkscape is a program for viewing, making, and editing two-dimensional
83vector drawings.
597867c7 84
ab944b4b
JR
85%description -l pl.UTF-8
86Inkscape jest programem do przeglądania, tworzenia i edycji
efb4548f 87dwuwymiarowej grafiki wektorowej.
597867c7 88
89%prep
a52a6383 90%setup -q -n %{name}-%{version}%{beta}
fa7e1cfb 91%patch0 -p1
f6400ea8 92%patch1 -p1
c4df3d12 93%patch2 -p1
fa7e1cfb 94
d59a673f 95%{__rm} po/en_US@piglatin.po
8bb0fc46 96%{__sed} -i -e 's|en_US@piglatin||' configure.ac
597867c7 97
ddf104ba
AF
98mv po/te_IN.po po/te.po
99%{__sed} -i -e 's|te_IN|te|' configure.ac
100
597867c7 101%build
efb4548f 102%{__libtoolize}
ea00493b 103%{__glib_gettextize}
104%{__intltoolize}
efb4548f
JB
105%{__aclocal}
106%{__autoheader}
107%{__automake}
108%{__autoconf}
0202eed1 109%configure \
8eb54fda 110 --disable-silent-rules \
dc92bb62 111 %{!?with_xft: --without-xft} \
b65d9413 112 %{!?with_gnomevfs:--without-gnome-vfs} \
ac61fe9a 113 %{!?with_mmx:--disable-mmx} \
22c15797 114 %{?with_relocation:--enable-binreloc} \
fa7e1cfb 115 %{?with_inkboard:--enable-inkboard}
35f78de7
JB
116
117%{__make}
597867c7 118
119%install
120rm -rf $RPM_BUILD_ROOT
597867c7 121
35f78de7
JB
122%{__make} install \
123 DESTDIR=$RPM_BUILD_ROOT
597867c7 124
401cfdca
JB
125%find_lang %{name}
126
597867c7 127%clean
128rm -rf $RPM_BUILD_ROOT
129
dc92bb62 130
22c15797 131%post
fa7e1cfb 132%update_desktop_database_post
22c15797 133
134%postun
fa7e1cfb 135%update_desktop_database_postun
22c15797 136
401cfdca 137%files -f %{name}.lang
597867c7 138%defattr(644,root,root,755)
8bb0fc46 139%doc AUTHORS ChangeLog NEWS README TRANSLATORS doc/HACKING.txt
90b51ec4 140%lang(ca) %doc README.ca.txt
141%lang(de) %doc README.de.txt
142%lang(es) %doc README.es.txt
143%lang(fr) %doc README.fr.txt
144%lang(it) %doc README.it.txt
e5d0a423
KK
145%lang(pt_BR) %doc README.it.txt
146%lang(sk) %doc README.it.txt
147%lang(sr) %doc README.it.txt
8bb0fc46 148%lang(de) %doc doc/HACKING.de.txt
149%lang(fr) %doc doc/HACKING.fr.txt
150%lang(it) %doc doc/HACKING.it.txt
e5d0a423 151%lang(pt_BR) %doc doc/HACKING.it.txt
fa7e1cfb
MB
152%attr(755,root,root) %{_bindir}/inkscape
153%attr(755,root,root) %{_bindir}/inkview
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
fa7e1cfb 174%{_mandir}/man1/*.1*
e5d0a423 175%lang(el) %{_mandir}/el/man1/*.1*
fa7e1cfb 176%lang(fr) %{_mandir}/fr/man1/*.1*
e5d0a423
KK
177%lang(ja) %{_mandir}/ja/man1/*.1*
178%lang(sk) %{_mandir}/sk/man1/*.1*
179%lang(zh_TW) %{_mandir}/zh_TW/man1/*.1*
8bb0fc46 180%{_iconsdir}/hicolor/*/apps/inkscape.png
fa7e1cfb 181%{_desktopdir}/inkscape.desktop
This page took 0.084179 seconds and 4 git commands to generate.