File openr2.spec of Package openr2
#
# spec file for package openr2
#
# Copyright (c) 2011 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: openr2
%define lname libopenr2-3
Summary: Library for MFC/R2 telephony signaling protocol over E1 lines
Version: 1.3.3
Release: 0
License: LGPL-2.1
Group: Development/Libraries/C and C++
URL: http://code.google.com/p/openr2/
#DL-URL: https://%name.googlecode.com/files/%name-%version.tar.gz
Source: https://%name.googlecode.com/files/%name-%version.tar.gz
BuildRoot: %_tmppath/%name-%version-build
BuildRequires: dahdi-linux-devel
BuildRequires: pkgconfig
BuildRequires: xz
%description
OpenR2 is a library that implements the MFC/R2 telephony signaling
protocol over E1 lines.
%package -n %lname
Summary: Library for MFC/R2 telephony signaling protocol over E1 lines
Group: System/Libraries
%description -n %lname
OpenR2 is a library that implements the MFC/R2 telephony signaling
protocol over E1 lines.
%package devel
Summary: Development files for libopenr2
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
OpenR2 is a library that implements the MFC/R2 telephony signaling
protocol over E1 lines.
%prep
%setup
%build
%configure --disable-static
make %{?_smp_mflags};
%install
b="%buildroot";
make install DESTDIR="$b";
find "$b/%_libdir" -type f -name "*.la" -delete;
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files
%defattr(-,root,root)
%config %_sysconfdir/r2*.conf
%_bindir/r2*
%_mandir/man*/*
%files -n %lname
%defattr(-,root,root)
%_libdir/lib%{name}*.so.3*
%files devel
%defattr(-,root,root)
%_includedir/%{name}*
%_libdir/lib%{name}*.so