LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File gupnp-dlna.spec of Package gupnp-dlna (Project openSUSE:Factory)

#
# spec file for package gupnp-dlna
#
# 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-dlna
Version:        0.6.6
Release:        0
Summary:        A collection of helpers for building DLNA applications
License:        LGPL-2.1+
Group:          Development/Libraries/C and C++
Url:            http://www.gupnp.org/
Source:         http://download.gnome.org/sources/gupnp-dlna/0.6/%{name}-%{version}.tar.xz
# PATCH-FEATURE-UPSTREAM gupnp-dlna-GSTPort.patch -- Port to GStreamer 1.0. Patch taken from upstream git branch.
Patch0:         gupnp-dlna-GSTPort.patch
# Needed for patch0
BuildRequires:  gnome-common
BuildRequires:  gobject-introspection-devel
BuildRequires:  gstreamer-devel
BuildRequires:  gstreamer-plugins-base-devel
BuildRequires:  libxml2-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
GUPnP-DLNA is a collection of helpers for building DLNA media sharing
applications using GUPnP.

%package -n libgupnp-dlna-1_0-2
Summary:        A collection of helpers for building DLNA applications
Group:          Development/Libraries/C and C++

%description -n libgupnp-dlna-1_0-2
GUPnP-DLNA is a collection of helpers for building DLNA media sharing
applications using GUPnP.

%package -n typelib-1_0-GUPnPDLNA-1_0
Summary:        A collection of helpers for building DLNA applications -- Introspection bindings
Group:          Development/Libraries/C and C++

%description -n typelib-1_0-GUPnPDLNA-1_0
GUPnP-DLNA is a collection of helpers for building DLNA media sharing
applications using GUPnP.

This package provides the GObject Introspection bindings for GUPnP-DLNA.

%package -n libgupnp-dlna-devel
Summary:        A collection of helpers for building DLNA applications - Development Files
Group:          Development/Libraries/C and C++
Requires:       libgupnp-dlna-1_0-2 = %{version}
Requires:       typelib-1_0-GUPnPDLNA-1_0 = %{version}

%description -n libgupnp-dlna-devel
GUPnP-DLNA is a collection of helpers for building DLNA media sharing
applications using GUPnP.

%package -n gupnp-dlna-tools
Summary:        A collection of helpers for building DLNA applications
Group:          Development/Tools/Other

%description -n gupnp-dlna-tools
GUPnP-DLNA is a collection of helpers for building DLNA media sharing
applications using GUPnP.

%prep
%setup -q
%patch0 -p1

%build
# Needed for patch0
NOCONFIGURE=1 gnome-autogen.sh
%configure \
    --disable-static
%__make %{?_smp_mflags}

%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print

%clean
rm -rf %{buildroot}

%post -n libgupnp-dlna-1_0-2 -p /sbin/ldconfig

%postun -n libgupnp-dlna-1_0-2 -p /sbin/ldconfig

%files -n libgupnp-dlna-1_0-2
%defattr(-,root,root)
%doc AUTHORS COPYING README TODO
# This directory contains DLNA profiles, needed by the library
%{_datadir}/%{name}/
%{_libdir}/lib*.so.2*

%files -n typelib-1_0-GUPnPDLNA-1_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/GUPnPDLNA-1.0.typelib

%files -n libgupnp-dlna-devel
%defattr(-,root,root)
%{_includedir}/%{name}-1.0/
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/gupnp-dlna-1.0.pc
%{_datadir}/gir-1.0/GUPnPDLNA-1.0.gir
%doc %{_datadir}/gtk-doc/html/%{name}/

%files -n gupnp-dlna-tools
%defattr(-,root,root)
%{_bindir}/gupnp-dlna-info
%{_bindir}/gupnp-dlna-ls-profiles

%changelog