libosmo-netif/libosmo-netif.spec

99 lines
2.8 KiB
RPMSpec

#
# spec file for package libosmo-netif
#
# Copyright (c) 2013 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: libosmo-netif
Summary: Osmocom library for muxed audio
Version: 0.0.4
Release: 0
License: AGPL-3.0+ and GPL-2.0+
Group: Development/Libraries/C and C++
Url: http://openbsc.osmocom.org/trac/
#Git-Clone: git://git.osmocom.org/libosmo-netif
#Git-Web: http://git.osmocom.org/libosmo-netif/
#Snapshot: 0.0.4
#Update osmo-version.diff too!
Source: %name-%version.tar.xz
Patch1: osmo-version.diff
Patch2: osmo-cppflags.diff
Patch3: osmo-ldadd.diff
Patch4: osmo-allincludes.diff
Patch5: osmo-talloc.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
#BuildRequires: dahdi-linux-devel
BuildRequires: libtool >= 2
BuildRequires: pkg-config
BuildRequires: xz
BuildRequires: pkgconfig(libosmoabis) >= 0.0.7
BuildRequires: pkgconfig(libosmocore) >= 0.3.0
BuildRequires: pkgconfig(libosmogsm) >= 0.3.0
BuildRequires: pkgconfig(libosmovty) >= 0.3.0
BuildRequires: pkgconfig(ortp) >= 0.15.0
%description
%package -n libosmonetif2
Summary: Osmocom library for muxed audio
License: AGPL-3.0+
Group: System/Libraries
%description -n libosmonetif2
%package -n libosmonetif-devel
Summary: Development files for the Osmocom muxed audio library
License: AGPL-3.0+
Group: Development/Libraries/C and C++
Requires: libosmonetif2 = %version
%description -n libosmonetif-devel
%prep
%setup -qn %name
%patch -P 1 -P 2 -P 3 -P 4 -P 5 -p1
%build
autoreconf -fiv
%configure --enable-shared --disable-static
make %{?_smp_mflags}
%install
b="%buildroot"
make %{?_smp_mflags} install DESTDIR="$b"
find "$b/%_libdir" -type f -name "*.la" -delete
%check
make %{?_smp_mflags} check
%post -n libosmonetif2 -p /sbin/ldconfig
%postun -n libosmonetif2 -p /sbin/ldconfig
%files -n libosmonetif2
%defattr(-,root,root)
%_libdir/libosmonetif.so.2*
%files -n libosmonetif-devel
%defattr(-,root,root)
%dir %_includedir/osmocom
%_includedir/osmocom/netif/
%_libdir/libosmonetif.so
%_libdir/pkgconfig/libosmo-netif.pc
%changelog