forked from pool/libosmo-abis
121 lines
3.3 KiB
RPMSpec
121 lines
3.3 KiB
RPMSpec
|
#
|
||
|
# spec file for package libosmo-abis
|
||
|
#
|
||
|
# 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-abis
|
||
|
Summary: Osmocom library for A-bis interface
|
||
|
License: AGPL-3.0+ and GPL-2.0+
|
||
|
Group: Development/Libraries/C and C++
|
||
|
Version: 0.1.5
|
||
|
Release: 0
|
||
|
Url: http://osmocom.org/
|
||
|
|
||
|
#Git-Clone: git://git.osmocom.org/libosmo-abis
|
||
|
Source: %name-%version.tar.xz
|
||
|
Patch1: osmo-version.diff
|
||
|
Patch2: osmo-talloc.diff
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
BuildRequires: autoconf
|
||
|
BuildRequires: automake >= 1.6
|
||
|
BuildRequires: libtool
|
||
|
BuildRequires: pkgconfig
|
||
|
BuildRequires: xz
|
||
|
BuildRequires: pkgconfig(libosmocore) >= 0.3.0
|
||
|
BuildRequires: pkgconfig(libosmogsm) >= 0.3.10
|
||
|
BuildRequires: pkgconfig(libosmovty) >= 0.3.0
|
||
|
BuildRequires: pkgconfig(ortp) >= 0.13.1
|
||
|
|
||
|
%description
|
||
|
|
||
|
%package -n libosmoabis1
|
||
|
Summary: A-bis core library
|
||
|
License: AGPL-3.0+
|
||
|
Group: System/Libraries
|
||
|
|
||
|
%description -n libosmoabis1
|
||
|
|
||
|
%package -n libosmoabis-devel
|
||
|
Summary: Development files for the Osmocom A-bis core library
|
||
|
License: AGPL-3.0+
|
||
|
Group: Development/Libraries/C and C++
|
||
|
Requires: libosmoabis1 = %version
|
||
|
Requires: libosmocore-devel >= 0.3.0
|
||
|
Requires: libosmogsm-devel >= 0.3.10
|
||
|
|
||
|
%description -n libosmoabis-devel
|
||
|
|
||
|
%package -n libosmotrau0
|
||
|
Summary: Osmocom TRAU (E1/RTP) library
|
||
|
License: GPL-2.0+
|
||
|
Group: System/Libraries
|
||
|
|
||
|
%description -n libosmotrau0
|
||
|
|
||
|
%package -n libosmotrau-devel
|
||
|
Summary: Development files for the Osmocom TRAU (E1/RTP) library
|
||
|
License: GPL-2.0+
|
||
|
Group: Development/Libraries/C and C++
|
||
|
Requires: libosmotrau0 = %version
|
||
|
|
||
|
%description -n libosmotrau-devel
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
%patch -P 1 -P 2 -p1
|
||
|
|
||
|
%build
|
||
|
autoreconf -fiv
|
||
|
%configure --enable-shared --disable-static --disable-talloc
|
||
|
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 libosmoabis1 -p /sbin/ldconfig
|
||
|
%postun -n libosmoabis1 -p /sbin/ldconfig
|
||
|
%post -n libosmotrau0 -p /sbin/ldconfig
|
||
|
%postun -n libosmotrau0 -p /sbin/ldconfig
|
||
|
|
||
|
%files -n libosmoabis1
|
||
|
%defattr(-,root,root)
|
||
|
%_libdir/libosmoabis.so.1*
|
||
|
|
||
|
%files -n libosmoabis-devel
|
||
|
%defattr(-,root,root)
|
||
|
%dir %_includedir/osmocom
|
||
|
%_includedir/osmocom/abis/
|
||
|
%_libdir/libosmoabis.so
|
||
|
%_libdir/pkgconfig/libosmoabis.pc
|
||
|
|
||
|
%files -n libosmotrau0
|
||
|
%defattr(-,root,root)
|
||
|
%_libdir/libosmotrau.so.0*
|
||
|
|
||
|
%files -n libosmotrau-devel
|
||
|
%defattr(-,root,root)
|
||
|
%dir %_includedir/osmocom
|
||
|
%_includedir/osmocom/trau
|
||
|
%_libdir/libosmotrau.so
|
||
|
%_libdir/pkgconfig/libosmotrau.pc
|
||
|
|
||
|
%changelog
|