packages mISDNuser.spec
      Pages: < 1 >  DOWNLOAD      
%define pkgver %(echo %version | tr . _)
Name:          mISDNuser
Version:       1.1.9
Release:       1mamba
Summary:       User space tools for the mISDN driver
Group:         System/Kernel and Hardware
Vendor:        openmamba
Distribution:  openmamba
Packager:      Silvan Calarco <silvan.calarco@...>
URL:           http://www.misdn.org
#Source:        http://www.linux-call-router.de/download/lcr-1.5/mISDNuser_%{version}.tar.gz
Source:        http://www.misdn.org/downloads/releases/mISDNuser-%{pkgver}.tar.gz
Source1:       http://www.misdn.org/downloads/releases/mISDN-%{pkgver}.tar.gz
Patch0:        %{name}-1.1.9-soname.patch
License:       GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libncurses-devel
## AUTOBUILDREQ-END
Requires:      libmISDN = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
User space tools for the mISDN 2.0 driver.

%package -n libmISDN
Summary:       Library for supporting the mISDN kernel driver
Group:         System/Libraries    

%description -n libmISDN
Library for supporting the mISDN kernel driver.

%package -n libmISDN-devel
Summary:       Devel package for %{name}
Group:         Development/Libraries    
Requires:      libmISDN = %{?epoch:%epoch:}%{version}-%{release}

%description -n libmISDN-devel
Library for supporting the mISDN kernel driver.
This package contains static libraries and header files need for development.

%prep
%setup -q -n %{name}-%{pkgver} -a1
%patch0 -p1
cp -a mISDN-%{pkgver}/include/linux include

%build
%make -j1 MISDNDIR=`pwd`

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall MISDNDIR=`pwd` INSTALL_PREFIX=%{buildroot}
install -d -m0755 %{buildroot}%{_includedir}
cp -a mISDN-%{pkgver}/include/linux %{buildroot}%{_includedir}

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%post -n libmISDN -p /sbin/ldconfig
%postun -n libmISDN -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_bindir}/loadfirm
%{_bindir}/mISDNdebugtool
%{_bindir}/misdnportinfo
%{_bindir}/sendhwctrl
%{_bindir}/testcon
%{_bindir}/testcon_l2
%{_bindir}/testlayer1
%{_bindir}/testlayer3
%{_bindir}/testlib
%{_bindir}/tstlib
%{_bindir}/voipisdn

%files -n libmISDN
%defattr(-,root,root)
%{_libdir}/libisdnnet.so.*
%{_libdir}/libmISDN.so.*
%{_libdir}/libsuppserv.so.*
%doc CHANGES COPYING.LIB LICENSE

%files -n libmISDN-devel
%defattr(-,root,root)
%dir %{_includedir}/mISDNuser
%{_includedir}/mISDNuser/*.h
%{_includedir}/linux/isdn_compat.h
%{_includedir}/linux/mISDNdebugtool.h
%{_includedir}/linux/mISDNif.h
%{_libdir}/libisdnnet.so
%{_libdir}/libisdnnet.a
%{_libdir}/libisdnnet_pic.a
%{_libdir}/libmISDN.so
%{_libdir}/libmISDN.a
%{_libdir}/libmISDN_pic.a
%{_libdir}/libsuppserv.so
%{_libdir}/libsuppserv.a
%{_libdir}/libsuppserv_pic.a

%changelog
* Fri Aug 28 2009 Silvan Calarco <silvan.calarco@...> 1.1.9-1mamba
- update to 1.1.9