]> git.pld-linux.org Git - packages/inkscape.git/blame - inkscape.spec
- release 13 (by relup.sh)
[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
8eb54fda 18Version: 0.48.2
6f15a7d6 19Release: 13
8bb0fc46 20License: GPL v2+, LGPL v2.1+
fa7e1cfb 21Group: X11/Applications/Graphics
8bb0fc46 22Source0: http://downloads.sourceforge.net/inkscape/%{name}-%{version}%{beta}.tar.bz2
8eb54fda 23# Source0-md5: f60b98013bd1121b2cc301f3485076ba
fa7e1cfb 24# workaround for https://bugs.launchpad.net/inkscape/+bug/487038
8bb0fc46 25Patch0: %{name}-ldl.patch
4ba74276
AM
26Patch1: %{name}-0.48.2-types.patch
27Patch2: %{name}-0.48.2-glib.patch
28Patch3: %{name}-0.48.2-png.patch
29Patch4: %{name}-0.48.2-png-write.patch
30Patch5: %{name}-0.48.2-gcc47.patch
31Patch6: %{name}-0.48.2-poppler_020.patch
597867c7 32URL: http://www.inkscape.org/
fa7e1cfb
MB
33BuildRequires: ImageMagick-c++-devel
34BuildRequires: aspell-devel
f3f3339a 35BuildRequires: autoconf >= 2.59-3
25641cda 36BuildRequires: automake >= 1:1.9.4-2
d1ecba76 37BuildRequires: boost-devel >= 1.35.0
fa7e1cfb 38BuildRequires: cairo-devel >= 1.8.0
35f78de7 39BuildRequires: freetype-devel >= 2.0
e47d40b1 40BuildRequires: gc-devel >= 6.4
ee6d403c 41BuildRequires: gettext-devel
fa7e1cfb 42BuildRequires: glibmm-devel >= 2.16.0
b65d9413 43%{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.15.2}
8bb0fc46 44BuildRequires: gsl-devel
fa7e1cfb 45BuildRequires: gtk+2-devel >= 2:2.14.0
8752c439 46BuildRequires: gtkmm-devel >= 2.10.0
e47d40b1 47BuildRequires: gtkspell-devel >= 2.0.11
48BuildRequires: intltool >= 0.35.0
49BuildRequires: lcms-devel >= 1.15
91f416f3 50BuildRequires: libpng-devel >= 1.2
e47d40b1 51BuildRequires: libsigc++-devel >= 2.0.17
8bb0fc46 52BuildRequires: libstdc++-devel >= 6:4.2.2-2
efb4548f 53BuildRequires: libtool
8bb0fc46 54BuildRequires: libwpg-devel
e47d40b1 55BuildRequires: libxml2-devel >= 1:2.6.26
56BuildRequires: libxslt-devel >= 1.1.17
57%{?with_inkboard:BuildRequires: loudmouth-devel >= 1.0.3}
35f78de7 58BuildRequires: pkgconfig
fa7e1cfb 59BuildRequires: poppler-glib-devel >= 0.12.2
efb4548f 60BuildRequires: popt-devel
ee6d403c 61BuildRequires: rpm-pythonprov
fa7e1cfb 62BuildRequires: sed >= 4.0
641594f1 63%{?with_xft:BuildRequires: xorg-lib-libXft-devel}
91f416f3 64BuildRequires: zlib-devel
fa7e1cfb 65Requires(post,postun): desktop-file-utils
995c2056 66Requires: gc >= 6.4
b65d9413 67%{?with_gnomevfs:Requires: gnome-vfs2 >= 2.15.2}
fa7e1cfb 68Requires: gtk+2 >= 2:2.14.0
e5d3652d 69Requires: perl-XML-XQL
8ccd877c 70Suggests: python-lxml
2478b7d2 71# sr@Latn vs. sr@latin
72Conflicts: glibc-misc < 6:2.7
73BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
597867c7 74
75%description
efb4548f
JB
76Inkscape is a program for viewing, making, and editing two-dimensional
77vector drawings.
597867c7 78
ab944b4b
JR
79%description -l pl.UTF-8
80Inkscape jest programem do przeglądania, tworzenia i edycji
efb4548f 81dwuwymiarowej grafiki wektorowej.
597867c7 82
83%prep
a52a6383 84%setup -q -n %{name}-%{version}%{beta}
fa7e1cfb 85%patch0 -p1
f6400ea8 86%patch1 -p1
c4df3d12 87%patch2 -p1
4ba74276
AM
88%patch3 -p0
89%patch4 -p0
90%patch5 -p0
91%patch6 -p1
fa7e1cfb 92
d59a673f 93%{__rm} po/en_US@piglatin.po
8bb0fc46 94%{__sed} -i -e 's|en_US@piglatin||' configure.ac
597867c7 95
ddf104ba
AF
96mv po/te_IN.po po/te.po
97%{__sed} -i -e 's|te_IN|te|' configure.ac
98
597867c7 99%build
efb4548f 100%{__libtoolize}
ea00493b 101%{__glib_gettextize}
102%{__intltoolize}
efb4548f
JB
103%{__aclocal}
104%{__autoheader}
105%{__automake}
106%{__autoconf}
0202eed1 107%configure \
8eb54fda 108 --disable-silent-rules \
dc92bb62 109 %{!?with_xft: --without-xft} \
b65d9413 110 %{!?with_gnomevfs:--without-gnome-vfs} \
ac61fe9a 111 %{!?with_mmx:--disable-mmx} \
22c15797 112 %{?with_relocation:--enable-binreloc} \
fa7e1cfb 113 %{?with_inkboard:--enable-inkboard}
35f78de7
JB
114
115%{__make}
597867c7 116
117%install
118rm -rf $RPM_BUILD_ROOT
597867c7 119
35f78de7
JB
120%{__make} install \
121 DESTDIR=$RPM_BUILD_ROOT
597867c7 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
8bb0fc46 143%lang(de) %doc doc/HACKING.de.txt
144%lang(fr) %doc doc/HACKING.fr.txt
145%lang(it) %doc doc/HACKING.it.txt
fa7e1cfb
MB
146%attr(755,root,root) %{_bindir}/inkscape
147%attr(755,root,root) %{_bindir}/inkview
60fad862 148%dir %{_datadir}/inkscape
149%{_datadir}/inkscape/[!e]*
150%{_datadir}/inkscape/examples
151%dir %{_datadir}/inkscape/extensions
a52a6383 152%{_datadir}/inkscape/extensions/Poly3DObjects/
153%{_datadir}/inkscape/extensions/alphabet_soup/
60fad862 154%{_datadir}/inkscape/extensions/*.inx
a52a6383 155%{_datadir}/inkscape/extensions/*.js
34cd2370
PZ
156%{_datadir}/inkscape/extensions/*.xml
157%{_datadir}/inkscape/extensions/*.xsl
d0824210 158%{_datadir}/inkscape/extensions/*.xslt
60fad862 159%attr(755,root,root) %{_datadir}/inkscape/extensions/*.pl
160%attr(755,root,root) %{_datadir}/inkscape/extensions/*.pm
161%attr(755,root,root) %{_datadir}/inkscape/extensions/*.py
068d59c7 162%attr(755,root,root) %{_datadir}/inkscape/extensions/*.rb
60fad862 163%attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh
34cd2370
PZ
164%dir %{_datadir}/inkscape/extensions/Barcode
165%attr(755,root,root) %{_datadir}/inkscape/extensions/Barcode/*.py
166%dir %{_datadir}/inkscape/extensions/xaml2svg
167%{_datadir}/inkscape/extensions/xaml2svg/*.xsl
fa7e1cfb
MB
168%{_mandir}/man1/*.1*
169%lang(fr) %{_mandir}/fr/man1/*.1*
8bb0fc46 170%{_iconsdir}/hicolor/*/apps/inkscape.png
fa7e1cfb 171%{_desktopdir}/inkscape.desktop
This page took 0.056173 seconds and 4 git commands to generate.