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