]> git.pld-linux.org Git - packages/frontline.git/blobdiff - frontline.spec
- release 5 to rebuild with new libart_lgpl
[packages/frontline.git] / frontline.spec
index f78fa6418a9b62e14a7dbe884c22fb320cff1c8a..273dc177f08fac7ef190f6e69c0e64e5669620ec 100644 (file)
@@ -1,39 +1,43 @@
 #
 # Conditional build:
-# _without_gimp        - without GIMP 1.2.x plugin
+%bcond_with    gimp    # without GIMP 1.2.x plugin
 #
 Summary:       GUI FRONT end for autotrace that extracts outLINE from images
 Summary(pl):   Graficzny interfejs do autotrace wyci±gaj±cego obrysy z obrazków
 Name:          frontline
 Version:       0.5.4
-Release:       2
+Release:       5
 License:       GPL
 Group:         X11/Applications/Graphics
 Source0:       http://dl.sourceforge.net/autotrace/%{name}-%{version}.tar.gz
+# Source0-md5: 5fc2c3459b153dbc2b3138c1133f927e
 Patch0:                %{name}-shared.patch
 URL:           http://autotrace.sourceforge.net/frontline/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: autotrace-devel >= 0.31.1
 BuildRequires: gettext-devel
-%{!?_without_gimp:BuildRequires:       gimp-devel >= 1.2.1}
-%{!?_without_gimp:BuildRequires:       gimp-devel < 1.3}
+%{?with_gimp:BuildRequires:    gimp-devel >= 1.2.1}
+%{?with_gimp:BuildRequires:    gimp-devel < 1.3}
 BuildRequires: gnome-libs-devel >= 1.4.0
 BuildRequires: imlib-devel >= 1.8.2
 BuildRequires: libart_lgpl >= 2.3.8
 BuildRequires: libtool
+BuildRequires: pkgconfig
 BuildRequires: popt-devel
 Requires:      %{name}-libs = %{version}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                gimpplugindir   %(gimp-config --gimpplugindir)
+%if %{with gimp}
+%define                gimpplugindir   %(gimptool --gimpplugindir)
+%endif
 
 %description
 Frontline provides a GTK+/GNOME based GUI front end for autotrace
 (http://autotrace.sourceforge.net/). This package contains the
-`fontline' command, which runs as a stand alone program. It will work
-well with Gnome desktop and nautilus.
-   
+`frontline' command, which runs as a stand alone program. It will work
+well with GNOME desktop and nautilus.
+
 %description -l pl
 Frontline udostêpnia oparty na GTK+/GNOME graficzny interfejs do
 autotrace (http://autotrace.sourceforge.net/). Ten pakiet zawiera
@@ -95,7 +99,8 @@ GIMPa.
 %patch -p1
 
 %build
-%{?_without_gimp:echo 'AC_DEFUN([AM_PATH_GIMP],[$3])' >> acinclude.m4}
+%{!?with_gimp:echo 'AC_DEFUN([AM_PATH_GIMP],[$3])' >> acinclude.m4}
+%{__gettextize}
 %{__libtoolize}
 %{__aclocal} -I %{_aclocaldir}/gnome
 %{__autoconf}
@@ -150,7 +155,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
 
-%if 0%{!?_without_gimp:1}
+%if %{with gimp}
 %files -n gimp-plugin-frontline
 %defattr(644,root,root,755)
 %attr(755,root,root) %{gimpplugindir}/plug-ins/trace
This page took 0.085596 seconds and 4 git commands to generate.