File nautilus-sendto.spec of Package nautilus-sendto

#
# spec file for package nautilus-sendto (Version 2.32.0)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#



Name:           nautilus-sendto
Version:        2.32.0
Release:        1
License:        GPLv2+
Summary:        Integrate Nautilus, Evolution, Empathy and Pidgin
Url:            http://www.es.gnome.org/~telemaco/
Group:          Productivity/File utilities
Source:         ftp://ftp.gnome.org/pub/gnome/sources/%{name}/0.13/%{name}-%{version}.tar.bz2
BuildRequires:  evolution-devel
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  libgupnp-av-devel
BuildRequires:  nautilus-devel
BuildRequires:  pidgin-devel
BuildRequires:  translation-update-upstream
Requires:       %{name}-lang = %{version}
Requires:       nautilus
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires

%description
This package provides the functionality to the Nautilus file browser to
send files over e-mail or instant messaging protocols via Evolution,
Empathy and Pidgin.

%package plugin-evolution
License:        GPLv2+
Summary:        Evolution plugin for nautilus-sendto
Group:          Productivity/File utilities
Requires:       %{name} = %{version}
Supplements:    packageand(nautilus-sendto:evolution)

%description plugin-evolution
This package provides the functionality to the Nautilus file browser to
send files over e-mail or instant messaging protocols via Evolution,
Empathy and Pidgin.

%package plugin-pidgin
License:        GPLv2+
Summary:        Pidgin plugin for nautilus-sendto
Group:          Productivity/File utilities
Requires:       %{name} = %{version}
Supplements:    packageand(nautilus-sendto:pidgin)

%description plugin-pidgin
This package provides the functionality to the Nautilus file browser to
send files over e-mail or instant messaging protocols via Evolution,
Empathy and Pidgin.

%package plugin-upnp
License:        GPLv2+
Summary:        UPnP plugin for nautilus-sendto
Group:          Productivity/File utilities
Requires:       %{name} = %{version}
Supplements:    nautilus-sendto

%description plugin-upnp
This package provides the functionality to the Nautilus file browser to
send files over e-mail or instant messaging protocols via Evolution,
Empathy and Pidgin.

%package devel
License:        GPLv2+
Summary:        Development files for nautilus-sendto
Group:          Development/Libraries/GNOME
Requires:       %{name} = %{version}
Requires:       glib2-devel
Requires:       gtk2-devel

%description devel
Development headers and documentation for nautilus-sendto.

%lang_package
%prep
%setup -q
translation-update-upstream

%build
%configure
%__make %{?jobs:-j%jobs}

%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name}
%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

%post
%glib2_gsettings_schema_post

%postun
%glib2_gsettings_schema_postun

%files
%defattr(-, root, root)
%doc AUTHORS NEWS COPYING
%{_bindir}/*
%{_datadir}/GConf/gsettings/nautilus-sendto-convert
%{_datadir}/glib-2.0/schemas/org.gnome.Nautilus.Sendto.gschema.xml
%{_datadir}/nautilus-sendto/
%{_libdir}/nautilus/extensions-2.0/*.so
%dir %{_libdir}/nautilus-sendto
%dir %{_libdir}/nautilus-sendto/plugins
# Explicitly list plugins that should be in this package (they don't bring dependencies)
%{_libdir}/nautilus-sendto/plugins/libnstburn.so
%{_libdir}/nautilus-sendto/plugins/libnstgajim.so
%{_libdir}/nautilus-sendto/plugins/libnstremovable_devices.so
%{_mandir}/man1/nautilus-sendto.1.gz

%files plugin-evolution
%defattr(-, root, root)
%{_libdir}/nautilus-sendto/plugins/libnstevolution.so

%files plugin-pidgin
%defattr(-, root, root)
%{_libdir}/nautilus-sendto/plugins/libnstpidgin.so

%files plugin-upnp
%defattr(-, root, root)
%{_libdir}/nautilus-sendto/plugins/libnstupnp.so

%files lang -f %{name}.lang

%files devel
%defattr(-,root,root)
%{_includedir}/%{name}
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/gtk-doc/html/%{name}

%changelog