]> git.pld-linux.org Git - packages/inkscape.git/blob - inkscape.spec
- inkscape < 0.44 needs patch for freetype 2.2.x
[packages/inkscape.git] / inkscape.spec
1 #
2 # TODO: needs patch for freetype 2.2.x:
3 # http://www.freetype.org/freetype2/patches/inkscape-0.43-noftinternals.patch
4 # (already in inkscape 0.44)
5 #
6 # Conditional build
7 %bcond_without  xft             # Don't use xft scalable font database
8 %bcond_without  gnome_print     # Don't use gnome print font database and spooler frontend
9 %bcond_without  mmx             # Force building without MMX optimazation (Default: auto-detect)
10 %bcond_with     inkboard        # Enable inkboard support
11 %bcond_with     relocation      # Enable binary relocation support
12 #
13 Summary:        Scalable vector graphics editor
14 Summary(pl):    Edytor skalowalnej grafiki wektorowej
15 Name:           inkscape
16 Version:        0.43
17 Release:        2
18 License:        GPL v2, LGPL v2.1
19 Group:          Applications/Graphics
20 Source0:        http://dl.sourceforge.net/inkscape/%{name}-%{version}.tar.bz2
21 # Source0-md5:  97c606182f5e177eef70c1e8a55efc1f
22 Patch0:         %{name}-c++.patch
23 URL:            http://www.inkscape.org/
24 BuildRequires:  autoconf >= 2.59-3
25 BuildRequires:  automake >= 1:1.9.4-2
26 BuildRequires:  freetype-devel >= 2.0
27 BuildRequires:  gc-devel >= 6.4
28 BuildRequires:  gcc-c++ >= 3.0
29 BuildRequires:  gtk+2-devel >= 2:2.4.0
30 BuildRequires:  gtkmm-devel >= 2.4
31 BuildRequires:  gtkspell-devel >= 2.0
32 BuildRequires:  intltool >= 0.22
33 BuildRequires:  libart_lgpl-devel >= 2.3.10
34 %{?with_gnome_print:BuildRequires:      libgnomeprintui-devel >= 1.116.0}
35 BuildRequires:  libpng-devel >= 1.2
36 BuildRequires:  libsigc++-devel >= 2.0.3
37 BuildRequires:  libtool
38 BuildRequires:  libxml2-devel >= 2.6.0
39 BuildRequires:  libxslt-devel >= 1.0.15
40 %{?with_inkboard:BuildRequires: loudmouth-devel >= 1.0}
41 BuildRequires:  pkgconfig
42 BuildRequires:  popt-devel
43 %{?with_xft:BuildRequires:      xorg-lib-libXft-devel}
44 BuildRequires:  zlib-devel
45 Requires(post,postun):  shared-mime-info
46 Requires:       gc >= 6.4
47 Requires:       gtk+2 >= 2:2.4.0
48 Requires:       perl-XML-XQL
49 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51 %description
52 Inkscape is a program for viewing, making, and editing two-dimensional
53 vector drawings.
54
55 %description -l pl
56 Inkscape jest programem do przeglĀ±dania, tworzenia i edycji
57 dwuwymiarowej grafiki wektorowej.
58
59 %prep
60 %setup -q
61 %patch0 -p1
62
63 %build
64 %{__libtoolize}
65 %{__glib_gettextize}
66 %{__intltoolize}
67 %{__aclocal}
68 %{__autoheader}
69 %{__automake}
70 %{__autoconf}
71 %configure \
72         %{!?with_xft: --without-xft} \
73         %{!?with_gnome_print: --without-gnome-print} \
74         %{?with_gnome_print: --with-gnome-print} \
75         %{!?with_mmx:--disable-mmx} \
76         %{?with_relocation:--enable-binreloc} \
77         %{?with_inkboard:--enable-inkboard} \
78         --disable-static
79
80 %{__make}
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84
85 %{__make} install \
86         DESTDIR=$RPM_BUILD_ROOT
87
88 %find_lang %{name}
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93
94 %post
95 umask 022
96 update-mime-database %{_datadir}/mime >/dev/null 2>&1 ||:
97 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
98
99 %postun
100 umask 022
101 update-mime-database %{_datadir}/mime >/dev/null 2>&1
102 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
103
104 %files -f %{name}.lang
105 %defattr(644,root,root,755)
106 %doc AUTHORS ChangeLog NEWS README TRANSLATORS
107 %lang(ca) %doc README.ca.txt
108 %lang(de) %doc README.de.txt
109 %lang(es) %doc README.es.txt
110 %lang(fr) %doc README.fr.txt
111 %lang(it) %doc README.it.txt
112 %attr(755,root,root) %{_bindir}/*
113 %dir %{_datadir}/inkscape
114 %{_datadir}/inkscape/[!e]*
115 %{_datadir}/inkscape/examples
116 %dir %{_datadir}/inkscape/extensions
117 %{_datadir}/inkscape/extensions/*.inx
118 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.pl
119 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.pm
120 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.py
121 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh
122 %attr(755,root,root) %{_datadir}/inkscape/extensions/svg_dropshadow
123 %{_mandir}/man1/*
124 %lang(fr) %{_mandir}/fr/man1/*
125 %{_pixmapsdir}/*.png
126 %{_desktopdir}/*.desktop
This page took 0.077551 seconds and 4 git commands to generate.