File gupnp-av.spec of Package gupnp-av

#
# spec file for package gupnp-av
#
# 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-av
Version:        0.10.3
Release:        0
Summary:        Library to ease the handling and implementation of UPnP A/V profiles
License:        LGPL-2.0+
Group:          Development/Libraries/C and C++
Url:            http://www.gupnp.org/
Source:         http://download.gnome.org/sources/gupnp-av/0.10/%{name}-%{version}.tar.xz
BuildRequires:  gobject-introspection-devel
BuildRequires:  libgupnp-devel >= 0.17.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
GUPnP A/V is a small utility library that aims to ease the handling and
implementation of UPnP A/V profiles.

%package -n libgupnp-av-1_0-2
Summary:        Library to ease the handling and implementation of UPnP A/V profiles
Group:          Development/Libraries/C and C++

%description -n libgupnp-av-1_0-2
GUPnP A/V is a small utility library that aims to ease the handling and
implementation of UPnP A/V profiles.

%package -n typelib-1_0-GUPnPAV-1_0
Summary:        Library to ease the handling and implementation of UPnP A/V profiles -- Introspection bindings
Group:          System/Libraries

%description -n typelib-1_0-GUPnPAV-1_0
GUPnP A/V is a small utility library that aims to ease the handling and
implementation of UPnP A/V profiles.

This package provides the GObject Introspection bindings for GUPnP A/V.

%package -n libgupnp-av-devel
Summary:        Library to ease the handling and implementation of UPnP A/V profiles - Development Files
Group:          Development/Libraries/C and C++
Requires:       libgupnp-av-1_0-2 = %{version}
Requires:       typelib-1_0-GUPnPAV-1_0 = %{version}

%description -n libgupnp-av-devel
GUPnP A/V is a small utility library that aims to ease the handling and
implementation of UPnP A/V profiles.

%prep
%setup -q

%build
%configure --disable-static
%__make %{?_smp_mflags}

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

%clean
rm -rf %{buildroot}

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

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

%files -n libgupnp-av-1_0-2
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_libdir}/*.so.*

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

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

%changelog