File mISDNuser.spec of Package mISDNuser

# spec file for package mISDNuser
# 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

Name:           mISDNuser
License:        GPL-2.0 ; LGPL-2.1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Group:          Hardware/ISDN
Summary:        Tools and library for mISDN
Version:        2.0.2+git28
Release:        0
#Git-Clone:	git://
Source0:        %{name}-%{version}.tar.bz2
Patch1:         misdn-fixes.diff

This package contains libmisdn and some tools to use the mISDN driver.
mISDN is the new modular ISDN driver for Linux.

%package -n libmisdn0
Summary:        mISDN core library
Group:          System/Libraries

%description -n libmisdn0
The mISDN core library.

%package -n libsuppserv0
Summary:        Library for ISDN Supplementary Services
Group:          System/Libraries

%description -n libsuppserv0
The mISDN library for Supplemental Services support.

%package devel
Summary:        C header files for mISDN
Group:          Development/Libraries/C and C++
Requires:       libmisdn0 = %version, libsuppserv0 = %version

%description devel
This package contain the header files and libraries for
mISDNuser development.

%setup -qn %name
%patch -P 1 -p1

if [ ! -e configure ]; then
	autoreconf -fi;
%configure --disable-static
make %{?_smp_mflags};

make install DESTDIR="$b";
find "$b/%_libdir" -type f -name "*.la" -delete;

%post -n libmisdn0 -p /sbin/ldconfig

%postun -n libmisdn0 -p /sbin/ldconfig

%post -n libsuppserv0 -p /sbin/ldconfig

%postun -n libsuppserv0 -p /sbin/ldconfig


%files -n libmisdn0

%files -n libsuppserv0

%files devel