File nautilus-image-converter.spec of Package nautilus-image-converter
#
# spec file for package nautilus-image-converter (Version 0.2.1)
#
# Copyright (c) 2007-2010 Dominique Leuenberger, Amsterdam, The Netherlands.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define nautilus_extdir %(pkg-config --variable=extensiondir libnautilus-extension)
Name: nautilus-image-converter
Summary: Nautilus Image Converter
Version: 0.2.1
Release: 1
License: GPL v2 or later
Url: http://www.bitron.ch/software/nautilus-image-converter.php
Group: Productivity/Graphics/Convertors
Source: %{name}-%{version}.tar.bz2
#PATCH-FIX-UPSTREAM nautilus-image-converter-0.2.1-extensiondir.patch -- Get the extension dir from nautilus.pc
Patch0: nautilus-image-converter-0.2.1-extensiondir.patch
BuildRequires: gnome-vfs2-devel
BuildRequires: gtk2-devel
BuildRequires: intltool
BuildRequires: libglade2-devel
BuildRequires: nautilus-devel
Recommends: ImageMagick
Requires: %{name}-lang = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%requires_eq nautilus
%description
ImageResizer adds a "Resize Images..." menu item to the context menu of
all images. This opens a dialog where you set the desired image size and
file name. A click on "Resize" finally resizes the image(s) using
ImageMagick's convert tool.
%lang_package
%prep
%setup -q
%patch0
%build
autoreconf -fiv
%configure --with-pic
%__make %{?jobs:-j%jobs}
%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name}
%clean
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS
%dir %{nautilus_extdir}
%{nautilus_extdir}/libnautilus-image-converter.so
%{_datadir}/nautilus-image-converter
%files lang -f %{name}.lang
%changelog