File udisks-glue.spec of Package udisks-glue
#
# spec file for package udisks-glue
#
# Copyright (c) 2013 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: udisks-glue
BuildRequires: dbus-1-glib-devel
BuildRequires: libconfuse-devel
BuildRequires: pkg-config
BuildRequires: udisks-devel
Url: https://github.com/fernandotcl/udisks-glue
Summary: Daemon to Associate udisks events to actions like automounting
License: BSD-2-Clause
Group: System/Daemons
Version: 1.3.1
Release: 0
Source0: https://github.com/downloads/fernandotcl/udisks-glue/%{name}-%{version}.tar.gz
Patch0: udisks-glue-fix.patch
Patch1: udisks-glue-glib236.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
udisks-glue is a tool that can associate udisks events to user-defined
actions. In that sense, udisks-glue is almost "glue code"[1], hence the name.
udisks (formely known as DeviceKit-disks) is an abstraction layer on top of
the Linux disks subsystems that, in conjunction with the other DeviceKit
subprojects, aims to be a replacement for the now almost defunct HAL project.
Like most other recent Linux desktop frameworks, udisks exposes its API via
DBus to its clients (often desktop environments). Users wishing to have more
control about what happens when specific disk-related events often have to use
a tool like halevt[2] or ivmon[3], which work on top of HAL. Now that HAL is
no longer being actively developed and most distributions are considering
dropping support for it, those users will have to migrate to a new tool, and
udisks-glue might as well fill that gap.
udisks-glue should eventually offer the most useful features found in the
aforementioned projects. As of now, however, only the most basic functionality
is available (mounting and unmounting removable media). Contributions are
welcome.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
export CFLAGS="$RPM_OPT_FLAGS"
%configure
make
%check
make check
%install
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc LICENSE README
%{_bindir}/*
%{_mandir}/*/*
%changelog