File gnome-mount.spec of Package gnome-mount

#
# spec file for package gnome-mount (Version 0.8)
#
# 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:           gnome-mount
BuildRequires:  fdupes
BuildRequires:  gconf2-devel
BuildRequires:  gnome-keyring-devel
BuildRequires:  hal-devel
BuildRequires:  intltool
BuildRequires:  libglade2-devel
BuildRequires:  libnotify-devel
BuildRequires:  nautilus-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
Version:        0.8
Release:        8
Url:            http://www.freedesktop.org/wiki/Software/hal
Group:          System/GUI/GNOME
License:        GPL v2 or later
Summary:        The GNOME Mount Program
Source:         http://hal.freedesktop.org/releases/%{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE gnome-mount-old-hal.patch sbrabec@novell.com -- only for 10.2 and older
Patch:          gnome-mount-old-hal.patch
# PATCH-FIX-UPSTREAM gnome-mount-default-mount-options.patch bnc334591 bgo487547 jpr@novell.com
Patch2:         gnome-mount-default-mount-options.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       %{name}-lang = %{version}
Provides:       %{name}-devel = %{version}-%{release}
%gconf_schemas_prereq

%description
The GNOME Volume Manager monitors volume-related events and responds
using a user-specified policy.	The GNOME Volume Manager can automount
hotplugged drives, automount inserted removable media, autorun
programs, automatically play audio CDs and video DVDs, and
automatically import photos from a digital camera.  The GNOME Volume
Manager does this entirely in userspace and without polling.

The GNOME Volume Manager sits at the top end of a larger picture that
aims to integrate the Linux system from the kernel on up through the
desktop and its applications.



Authors:
--------
    David Zeuthen <davidz@redhat.com>

%lang_package
%prep
%setup -q
translation-update-upstream
%if %suse_version < 1020
%patch
%endif
%patch2

%build
autoreconf -f -i
# FIXME: Build as root modifies system!
#   gnome-mount-0.5: --disable-schemas-install is not implemented.
%configure --disable-static --with-pic
%__make %{?jobs:-j%jobs}

%install
%makeinstall
%find_lang %{name}
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} + 
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre
%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%files -f %{name}.lst
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog HACKING NEWS README TODO
%{_bindir}/*
%{_datadir}/gnome-mount
%{_libdir}/nautilus/extensions-2.0/*.so
%{_libdir}/pkgconfig/gnome-mount.pc
%doc %{_mandir}/man1/gnome-mount*.*

%files lang -f %{name}.lang

%changelog
* Wed Apr 15 2009 crrodriguez@suse.de
- use --disable-static instead of removing "*.a"
* Mon Mar 16 2009 sbrabec@suse.cz
- Added support for translation-update-upstream (FATE#301344).
* Mon Feb 23 2009 vuntz@novell.com
- Remove BuildRequires: eel-devel, perl-XML-Parser
- Add BuildRequires: gconf2-devel, gnome-keyring-devel, hal-devel
* Thu Sep 11 2008 jpr@novell.com
- Update to version 0.8:
  * Get rid of libgnomeui dependency
  * Don't show lock dialogs if underlying device is locked in HAL
  * Mention partition number for the unlock dialog
  * Make eject work on the main block device
  * Translations
- Remove gnome-mount-svn-until-0.8.patch, it was a diff of
  unreleased upstream (which is now released)
* Thu Feb 28 2008 jpr@suse.de
- Add gnome-mount-svn-until-0.8.patch to build the nautilus
  extension correctly (#358451)
* Wed Feb 06 2008 maw@suse.de
- Install relevant files to %%{_libdir}/nautilus/extensions-2.0
  (bnc#358451)
- Add gnome-mount-nautilus-paths.patch to make that possible.
* Wed Nov 21 2007 jpr@suse.de
- Default to 'utf8' option for vfat devices (#337615)
* Thu Oct 18 2007 jpr@suse.de
- Update to 0.7
- Support for PolicyKit if HAL supports PolicyKit
- Minor bug fixes
- Translations
- Default to 'flush' for vfat devices (#334591)
* Wed Aug 08 2007 maw@suse.de
- Use %%fdupes
- Split off a -lang subpackage.
* Wed Aug 01 2007 jpr@suse.de
- Update to 0.6
- Default to shortname=lower for vfat (BGO #390201)
- Better handling of NTFS (BGO #394947)
- Get rid of libgnomeui dependency
- Reduce build requires
- Remove upstreamed patch
* Tue Jul 24 2007 sbrabec@suse.cz
- Accept hal-storage version 0.5.8_git200704021230 in factory.
* Thu Jul 19 2007 sbrabec@suse.cz
- Patched for builds with older HAL version.
* Tue Dec 19 2006 sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
* Tue Nov 21 2006 aj@suse.de
- Reduce BuildRequires.
- Fix build warnings.
* Tue Nov 21 2006 jpr@suse.de
-update to 0.5:
  -use mount(1) for volumes mentioned in /etc/fstab (#215392, #222627)
  -fixes for Solaris (Artem Kachitchkine)
  -read mount point and settings from gconf
  -man page for the terminal obsessive
  -extension for Nautilus
  -notifications for volumes taking a long time to unmount
  -translation updates
* Mon Sep 04 2006 ro@suse.de
- fix one place with a function missing a return value
* Thu Aug 31 2006 fejj@suse.de
- New package
openSUSE Build Service is sponsored by