File uam.spec of Package uam

#
# spec file for package uam
#
# Copyright (c) 2014 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:           uam
Version:        0.3.2
Release:        0
Summary:        Tool for mounting pendrives and alikes when inserted
License:        BSD-3-Clause
Group:          System/Base
Url:            http://bitbucket.org/mgorny/uam
Source:         https://bitbucket.org/mgorny/uam/downloads/%{name}-%{version}.tar.bz2
BuildRequires:  pkgconfig(udev)
Requires:       udev
Recommends:     pmount
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
What is it all about? This is just simple tool for mounting pendrives and alikes
when inserted -- something like ivman or functionality integrated in KDE/GNOME.

So what's the difference? Unlike those tools uam doesn't use HAL. Unlike
traditional automounters it doesn't require you to sacrifice memory for three
additional daemons -- HAL, dbus & the mounter itself. Instead you just have to
have udev running (which you'd like to have anyway) and uam will be called by it
everytime an USB stick is inserted.

%prep
%setup -q

%build
%configure --with-udevdir=%{_libexecdir}/udev
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}

%pre
getent group plugdev > /dev/null || groupadd -r plugdev

%files
%defattr(-,root,root)
%doc README COPYING
%dir %{_sysconfdir}/udev/uam-hooks
%dir %{_sysconfdir}/udev/uam-hooks/*
%config(noreplace) %{_sysconfdir}/udev/uam-hooks/mount-failed/90_sw_notify
%config(noreplace) %{_sysconfdir}/udev/uam-hooks/post-mount/90_sw_notify
%config(noreplace) %{_sysconfdir}/udev/uam-hooks/post-mount/95_pmount_cache
%config(noreplace) %{_sysconfdir}/udev/uam-hooks/post-umount/90_sw_notify
%config(noreplace) %{_sysconfdir}/udev/uam-hooks/pre-mount/00_filter_devices
%config(noreplace) %{_sysconfdir}/udev/uam-hooks/pre-mount/00_wait_for_media
%config(noreplace) %{_sysconfdir}/udev/uam-hooks/pre-umount/00_filter_devices
%config(noreplace) %{_sysconfdir}/udev/uam.conf
%{_bindir}/uam-pmount
%{_bindir}/uam-pumount
%dir %{_libexecdir}/udev/uam
%{_libexecdir}/udev/rules.d/80-uam.rules
%{_libexecdir}/udev/uam/array.awk
%{_libexecdir}/udev/uam/find-helper.sh
%{_libexecdir}/udev/uam/mounts.awk
%{_libexecdir}/udev/uam/uam-common.sh
%{_libexecdir}/udev/uam/uam-mount.sh
%{_libexecdir}/udev/uam/uam-umount.sh

%changelog
openSUSE Build Service is sponsored by