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