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