File gcdemu.spec of Package gcdemu
#
# spec file for package gcdemu
#
# Copyright (c) 2015 SUSE LINUX 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/
#
%define __requires_exclude typelib\\(AppIndicator(|3)\\)
Name: gcdemu
Version: 3.0.0
Release: 0
Summary: GTK+ application for controlling CDEmu daemon
License: GPL-2.0+
Group: System/GUI/Other
Url: http://cdemu.sf.net/about/gcdemu
Source0: http://downloads.sf.net/cdemu/%{name}-%{version}.tar.bz2
BuildRequires: cmake >= 2.8.5
BuildRequires: gettext >= 0.15
BuildRequires: gobject-introspection-devel
BuildRequires: intltool >= 0.21
BuildRequires: python >= 2.6
BuildRequires: update-desktop-files
Requires: cdemu-daemon >= 3.0.0
Recommends: %{name}-lang
Recommends: typelib(AppIndicator3)
BuildArch: noarch
%glib2_gsettings_schema_requires
%description
It provides a graphic interface that allows performing the key
tasks related to controlling the CDEmu daemon, such as loading and
unloading devices, displaying devices' status and
retrieving/setting devices' debug masks.
In addition, the application listens to signals emitted by
CDEmu daemon and provides notifications via libnotify (provided
that python bindings are installed).
Features:
* GTK+ application.
* Supports communication via either session or system bus.
* Device status display, device loading and unloading.
* Support for getting/setting device's debug masks.
* Daemon and device status changes notification via libnotify.
%lang_package
%prep
%setup -q
%build
%cmake
make %{?_smp_mflags}
%install
%cmake_install
%suse_update_desktop_file -r %{name} System Filesystem
%find_lang %{name}
%post
%desktop_database_post
%glib2_gsettings_schema_post
%postun
%desktop_database_postun
%glib2_gsettings_schema_postun
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}*
%{_datadir}/glib-2.0/schemas/*%{name}.gschema.xml
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog