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