LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libupnpp.spec of Package libupnpp (Project home:StefanBruens:DLNA)

#
# spec file for package libupnpp
#
# Copyright (c) 2014 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:           libupnpp
Version:        0.9.1+git.1416126074.15f268f
Release:        0
%define soname  0_9_1-0
License:        GPL-2.0+
Summary:        C++ wrapper for libupnp
Url:            http://www.lesbonscomptes.com/updmpdcli
Group:          System/Libraries
Source:         %{name}-%{version}.tar.xz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(expat)
BuildRequires:  pkgconfig(libupnp)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
libupnpp is a C++ wrapper over libupnp. It exists mostly for supporting
upmpdcli and upplay

%package %{soname}
Summary:        C++ wrapper for libupnp
Group:          System/Libraries

%description %{soname}
libupnpp is a C++ wrapper over libupnp. It exists mostly for supporting
upmpdcli and upplay

%package devel
Requires:       %{name}-%{soname} = %{version}
Summary:        C++ wrapper for libupnp
Group:          Development/Libraries/C and C++
Requires:       pkgconfig(libupnp)

%description devel
development files for the libupnpp library. libupnpp is a C++ wrapper for
libupnp

%prep
%setup -q

%build
./autogen.sh
%configure \
  --disable-static
make %{?_smp_mflags}

%install
make install DESTDIR=%{buildroot} %{?_smp_mflags}
rm %{buildroot}%{_libdir}/*.la

%post %{soname}
/sbin/ldconfig

%postun %{soname}
/sbin/ldconfig

%files %{soname}
%defattr(-,root,root)
%doc AUTHORS README.asc COPYING
%{_libdir}/libupnpp-*.so.*

%files devel
%defattr(-,root,root)
%{_includedir}/libupnpp
%{_libdir}/libupnpp.so

%changelog