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