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