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