File dropbox.spec of Package dropbox

#
# spec file for package 
#
# 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/
#

# norootforbuild

Name:           dropbox
Version:        0.6.9
Release:        1
License:        GPLv2
Summary:        Secure backup, sync and sharing made easy
Url:            http://dropbox.com/
Group:          Productivity/Archiving/Backup
Source:         http://linux.dropbox.com/packages/nautilus-dropbox-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  docutils
BuildRequires:  libnotify-devel
BuildRequires:  nautilus-devel
BuildRequires:  python-gtk
BuildRequires:  update-desktop-files
Requires:       python-gtk
Provides:       dropbox-cli = %{version}
Obsoletes:      dropbox-cli < %{version}

%description
This package provides the core CLI dropbox application.

%package -n nautilus-dropbox
Summary:        Secure backup, sync and sharing made easy
Group:          Productivity/Archiving/Backup
Requires:       dropbox = %{version}
Requires:       nautilus

%description -n nautilus-dropbox
This package just provide a nautilus integration plugin.
A handy tool that can be used either in a GUI or on
the commandline to backup, sync and share files.

%prep
%setup -q -n nautilus-dropbox-%{version}

%build
%configure
make %{?_smp_flags}

%install
%make_install
rm -f %{buildroot}%{_libdir}/nautilus/extensions-2.0/libnautilus-dropbox.{a,la}
%suse_update_desktop_file dropbox

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/dropbox
%{_datadir}/applications/dropbox.desktop
%{_mandir}/man1/dropbox.*
%{_datadir}/icons/hicolor/*/apps/*.png

%files -n nautilus-dropbox
%defattr(-,root,root)
%{_libdir}/nautilus/extensions-2.0/libnautilus-dropbox.so
%dir %{_datadir}/nautilus-dropbox
%dir %{_datadir}/nautilus-dropbox/emblems
%{_datadir}/nautilus-dropbox/emblems/*.icon
%{_datadir}/nautilus-dropbox/emblems/*.png

%changelog
openSUSE Build Service is sponsored by