File gupnp-tools.spec of Package gupnp-tools

#
# spec file for package gupnp-tools
#
# Copyright (c) 2012 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:           gupnp-tools
Version:        0.8.4
Release:        0
Summary:        UPnP tools to test and debug UPnP devices and control points
License:        GPL-2.0+
Group:          Productivity/Networking/Other
Url:            http://www.gupnp.org/
Source:         http://download.gnome.org/sources/gupnp-tools/0.8/%{name}-%{version}.tar.xz
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gio-2.0) >= 2.12
BuildRequires:  pkgconfig(gnome-icon-theme) >= 2.20
BuildRequires:  pkgconfig(gssdp-1.0) >= 0.10
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(gtksourceview-3.0) >= 3.0.0
BuildRequires:  pkgconfig(gupnp-1.0) >= 0.13
BuildRequires:  pkgconfig(gupnp-av-1.0) >= 0.5.5
BuildRequires:  pkgconfig(uuid)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
GUPnP Tools are free replacements of Intel UPnP tools that use GUPnP.
They provides the following client and server side tools which enable
one to easily test and debug one's UPnP devices and control points:

  * Universal Control Point: a tool that enables one to discover UPnP
    devices and services, retrieve information about them, subscribe to events
    and invoke actions.

  * Network Light: a virtual light bulb that allows control points to
    switch it on and off, change its dimming level and query its current
    status. It also provides a simple UI to control all the network lights
    available on the network.

  * AV Control Point: a simple media player UI that enables one to
    discover and play multimedia contents available on a network. It is
    strictly a control point and therefore does not have any playback
    capabilities of it's own and relies on external UPnP MediaRenderer devices
    for actual playback.

  * Upload: a simple commandline utility that uploads files to known
    MediaServers. Use Universal Control Point for discovering the
    MediaServers.

%prep
%setup -q

%build
%configure --disable-static
%__make %{?jobs:-j%jobs}

%install
%makeinstall
%suse_update_desktop_file -r gupnp-av-cp GTK Network System Monitor
%suse_update_desktop_file -r gupnp-network-light GTK Network System Monitor
%suse_update_desktop_file -r gupnp-universal-cp GTK Network System Monitor

%clean
rm -rf %{buildroot}

%post
%desktop_database_post

%postun
%desktop_database_postun

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/*.desktop

%changelog