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 http://bugs.opensuse.org/
#
Name: mISDNuser
URL: http://misdn.org/
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://git.misdn.org/mISDNuser
#Changelog: http://misdn.org/index.php/MISDN_Release_Notes
Source0: %{name}-%{version}.tar.bz2
Patch1: misdn-fixes.diff
%description
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.
%prep
%setup -qn %name
%patch -P 1 -p1
%build
if [ ! -e configure ]; then
autoreconf -fi;
fi;
%configure --disable-static
make %{?_smp_mflags};
%install
b="%buildroot";
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
%defattr(-,root,root)
%_bindir/*
%_sbindir/*
%files -n libmisdn0
%defattr(-,root,root)
%_libdir/libmisdn.so.0*
%files -n libsuppserv0
%defattr(-,root,root)
%_libdir/libsuppserv.so.0*
%files devel
%defattr(-,root,root)
%_includedir/mISDN
%_libdir/*.so
%changelog