File nautilus-share.spec of Package nautilus-share

#
# spec file for package nautilus-share (Version 0.7.2)
#
# Copyright (c) 2009 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:           nautilus-share
BuildRequires:  fdupes
BuildRequires:  gnome-patch-translation
BuildRequires:  intltool
BuildRequires:  libglade2-devel
BuildRequires:  nautilus-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
Version:        0.7.2
Release:        79
Url:            http://gentoo.ovibes.net/nautilus-share/
Group:          Productivity/Networking/Samba
License:        GPL v2 or later
Summary:        A Quick and Easy Way to Share Folders in Nautilus Via Samba
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}-po.tar.gz 
# PATCH-FIX-UPSTREAM nautilus-share-drop-eel.patch vuntz@novell.com -- Do not use eel nor gnome-vfs anymore, patch sent by mail to the maintainer
Patch0:         nautilus-share-drop-eel.patch
Patch7:         nautilus-share-bnc358451-extension-dir.patch
Requires:       gnome-icon-theme samba >= 3.0.21a-4.2
Requires:       %{name}-lang = %{version}
AutoReqProv:    on
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Application for the GNOME desktop integrated in Nautilus, that allows
simple use of Nautilus shares without signing in as root.

Features: * A new entry in your Nautilus right-click menu with a
   nice icon.

* A simple dialog to share your folder, which allows you to choose a
   name and decide whether to make it read-only.

* Possibility to access it from the Properties tab of your folder.

* Possibility to see whether a share name already exists by simply
   typing it.

* Nautilus displays a palm icon to visually show you which folders are
shared.



Authors:
--------
    Sebastien Estienne <sebastien.estienne@gmail.com>
    Ed Catmur <ed@catmur.co.uk>
    VoJcEK <vojcek@tlen.pl>
    Michael Kanis <mkanis@gmx.de>
    WareKala <warekala@hotmail.com>
    Mirko Maischberger <mirko@lilik.it>
    Aaron Kurtz <a.kurtz@hardsun.net>
    Lucius Curado <luciux@gmail.com>

%lang_package
%prep
%setup -a1 
%patch0 -p1
translation-update-upstream
%patch7 -p1

%build
autoreconf -f -i
%configure
make %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
%find_lang %{name}
rm $RPM_BUILD_ROOT%{_libdir}/*/*/*.*a
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-, root, root)
%doc AUTHORS COPYING README TODO
%{_datadir}/nautilus-share
%{_libdir}/nautilus/extensions-2.0/*.so

%files lang -f %{name}.lang

%changelog
* Mon Feb 16 2009 sbrabec@suse.cz
- Added support for translation-update-upstream (FATE#301344).
* Fri Jan 30 2009 vuntz@novell.com
- Add nautilus-share-drop-eel.patch to let us drop eel and
  gnome-vfs dependecies.
- Adjust BuildRequires.
* Mon Jan 12 2009 mauro@suse.de 
- Translations update.
* Sat Dec 06 2008 mauro@suse.de
- Translation update
* Thu Apr 03 2008 hpj@suse.de
- Upgraded to version 0.7.2.
- Removed upstreamed patches:
  * nautilus-share-183413-restore-write-permissions.diff
  * nautilus-share-181811-guest-permissions.diff
  * nautilus-share-170212-restore-modified-permissions.diff
  * nautilus-share-potfiles.patch
  * nautilus-share-new-potfiles.patch
* Tue Mar 11 2008 maw@suse.de
- Fix build: nautilus modules now go in
  %%{_libdir}/nautilus/extension-2.0.
* Tue Mar 04 2008 federico@novell.com
- Added nautilus-share-bnc358451-extension-dir.patch to fix the
  nautilus-share part of
  https://bugzilla.novell.com/show_bug.cgi?id=358451 - fix the
  directory in which Nautilus extensions get installed.
* Thu Oct 11 2007 sbrabec@suse.cz
- Removed bogus dependency on mDNSResponder.
* Tue Aug 07 2007 maw@suse.de
- Use %%fdupes
- Split off a -lang subpackage.
* Wed Jan 17 2007 sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
* Sat Oct 14 2006 danw@suse.de
- Remove dead patches
* Tue Sep 26 2006 jhargadon@suse.de
- update to version 0.7.0
- Remove the requirements for d-bus and libdaemon
- Remove the smbshared entries; we only need the extension's .so now
* Mon Jun 26 2006 sbrabec@suse.cz
- Added missing file to POTFILES.in (#183392).
* Thu Jun 15 2006 federico@novell.com
- Added nautilus-share-183413-restore-write-permissions.diff to fix
  https://bugzilla.novell.com/show_bug.cgi?id=183413.  This makes
  nautilus-share remove the write permissions from a usershared folder
  as soon as possible, when the share is modified to be read-only.
* Fri Jun 09 2006 federico@novell.com
- Added nautilus-share-181811-guest-permissions.diff to fix bug
  https://bugzilla.novell.com/show_bug.cgi?id=181811.  This will add
  the "guest_ok=y" option to the "net usershare" command line, as well
  as adding group permissions to the shared folder if appropriate.
* Wed May 03 2006 federico@novell.com
- Added nautilus-share-170212-restore-modified-permissions.diff to fix
  https://bugzilla.novell.com/show_bug.cgi?id=170212.  We now restore
  the permissions of a folder when unsharing it.
* Wed Feb 22 2006 federico@novell.com
- Updated nautilus-share-net-usershare.diff to fix
  https://bugzilla.novell.com/show_bug.cgi?id=152552.  Now we don't
  change the folder's permissions unconditionally; instead, we ask the
  user first.
- Do not install all the obsolete d-bus and smbshared parts; nautilus-share
  now requires just the .so extension and its data files.
* Tue Feb 21 2006 sbrabec@suse.cz
- Do not restart dbus on update (#152554).
* Mon Feb 20 2006 federico@novell.com
- Updated nautilus-share-net-usershare.diff to fix
  https://bugzilla.novell.com/show_bug.cgi?id=149615; nautilus-share
  will now automatically change the permissions of the shared folder
  if they are not enough for sharing.
* Mon Feb 06 2006 federico@novell.com
- Updated nautilus-share-net-usershare.diff to fix the crash in
  https://bugzilla.novell.com/show_bug.cgi?id=147065.
* Wed Feb 01 2006 sbrabec@suse.cz
- Fixed POTFILES.
- Use translation compendium gnome-patch-translation.
* Fri Jan 27 2006 federico@novell.com
- Fix error reporting so that if Samba's "net usershare" is misconfigured,
  nautilus-share will be able to tell you about it.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 23 2006 federico@novell.com
- Added nautilus-share-net-usershare.diff.  This makes nautilus-share
  use the new "net usershare" command from Samba instead of a
  home-grown scheme for sharing a user's personal files.  This
  requires samba-3.0.21a-4.2 or later.
- Added a build dependency on intltool.
* Wed Nov 02 2005 dmueller@suse.de
- don't build as root
* Fri Sep 23 2005 sbrabec@suse.cz
- New SuSE package, version 0.6.4.
openSUSE Build Service is sponsored by