]> git.pld-linux.org Git - packages/inkscape.git/blobdiff - inkscape.spec
- add BR libxslt-devel
[packages/inkscape.git] / inkscape.spec
index 5d157d19b2ad47fb2edab517bd7cd9abfb03c3d7..e81cbed799a563a60c556de54a6152557e4f5e17 100644 (file)
@@ -1,54 +1,73 @@
 #
 # Conditional build
-%bcond_without popt    #
-%bcond_without xft     #
-%bcond_without gnome   #
-%bcond_without modules #
-%bcond_without mmx     #
-%bcond_without libinkscape
-
-Summary:       Inkscape - a vector illustrator program for GNOME environment
-Summary(pl):   Inkscape - wektorowy program graficzny dla ¶rodowiska GNOME
+%bcond_without xft             # Don't use xft scalable font database
+%bcond_without gnome_print     # Don't use gnome print font database and spooler frontend
+%bcond_without mmx             # Force building without MMX optimazation (Default: auto-detect)
+%bcond_with    relocation      # Enable binary relocation support
+#
+Summary:       Scalable vector graphics editor
+Summary(pl):   Edytor skalowalnej grafiki wektorowej
 Name:          inkscape
-Version:       0.37
+Version:       0.41
 Release:       1
-License:       GPL
-Group:         Graphics
-Source0:       http://dl.sourceforge.net/inkscape/%{name}-%{version}.tar.gz
-# Source0-md5: a53355cd2c2d6b838e75a089afb14d3e
+License:       GPL v2, LGPL v2.1
+Group:         Applications/Graphics
+Source0:       http://dl.sourceforge.net/inkscape/%{name}-%{version}.tar.bz2
+# Source0-md5: 9b4bbfaae688127dca4c3d816a42b21a
+Patch0:                %{name}-gnome_print_compile.patch
 URL:           http://www.inkscape.org/
+BuildRequires: autoconf >= 2.59-3
+BuildRequires: automake >= 1:1.9.4-2
 BuildRequires: freetype-devel >= 2.0
-BuildRequires: gtk+-devel >= 2.0.0
+BuildRequires: gc-devel >= 6.4
+BuildRequires: gtk+2-devel >= 2:2.4.0
+BuildRequires: gtkmm-devel >= 2.4
+BuildRequires: gtkspell-devel
+BuildRequires: intltool
 BuildRequires: libart_lgpl-devel >= 2.3.10
-BuildRequires: libgnomeprintui-devel >= 2.2
+%{?with_gnome_print:BuildRequires:     libgnomeprintui-devel >= 1.116.0}
 BuildRequires: libpng-devel
+BuildRequires: libsigc++-devel >= 2.0.3
+BuildRequires: libtool
 BuildRequires: libxml2-devel >= 2.4.24
+BuildRequires: libxslt-devel >= 1.0.15
 BuildRequires: pkgconfig
-%{?with_popt:BuildRequires:    popt-devel}
+BuildRequires: popt-devel
 %{?with_xft:BuildRequires:     xft-devel}
+Requires(post,postun): shared-mime-info
+Requires:      gc >= 6.4
+Requires:      gtk+2 >= 2:2.4.0
+Requires:      perl-XML-XQL
 Buildroot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Inkscape is (or at least should be) a vector illustrator program for
-the GNOME environment. It is currently in active development and
-approaching general usability.
+Inkscape is a program for viewing, making, and editing two-dimensional
+vector drawings.
 
 %description -l pl
-Inkscape jest (a przynajmniej powinien byæ) wektorowym programem
-graficznym dla ¶rodowiska GNOME. Aktualnie jest aktywnie rozwijany i
-osi±ga ogóln± u¿ywalno¶æ.
+Inkscape jest programem do przegl±dania, tworzenia i edycji
+dwuwymiarowej grafiki wektorowej.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
+cp -f /usr/share/automake/mkinstalldirs .
+%{__libtoolize}
+glib-gettextize --copy --force
+intltoolize --copy --force --automake
+%{__aclocal}
+%{__autoheader}
+%{__automake}
+%{__autoconf}
 %configure \
-       %{!?with_popt: --without-popt}\
        %{!?with_xft: --without-xft}\
-       %{!?with_gnome: --without-gnome-print}\
-       %{!?with_modules: --without-modules}\
-       %{?with_libinkscape: --with-libinkscape} \
-       %{!?with_mmx:--disable-mmx} 
+       %{!?with_gnome_print: --without-gnome-print}\
+       %{?with_gnome_print: --with-gnome-print}\
+       %{!?with_mmx:--disable-mmx} \
+       %{?with_relocation:--enable-binreloc} \
+       --disable-static
 
 %{__make}
 
@@ -58,17 +77,32 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+rm -f $RPM_BUILD_ROOT%{_libdir}/inkscape/plugins/*.la
+
 %find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+umask 022
+update-mime-database %{_datadir}/mime
+[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
+
+%postun
+umask 022
+update-mime-database %{_datadir}/mime
+[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog README
 %attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/inkscape
 %{_datadir}/inkscape
+%dir %{_libdir}/inkscape
+%dir %{_libdir}/inkscape/plugins
+# why no -avoid-version?
+%attr(755,root,root) %{_libdir}/inkscape/plugins/lib*.so*
 %{_mandir}/man1/*
 %{_pixmapsdir}/*.png
 %{_desktopdir}/*.desktop
This page took 0.049729 seconds and 4 git commands to generate.