%define name libpri %define version 0.3.2 %define release 3mdk %define major 1 %define libname %mklibname pri %{major} Summary: An implementation of Primate Rate ISDN Name: %{name} Version: %{version} Release: %{release} License: GPL Group: System/Libraries Source0: %{name}-%{version}.tar.bz2 Patch0: libpri-0.3.2-Makefile.patch.bz2 URL: http://www.asteriskpbx.com/ BuildRoot: %{_tmppath}/%{name}-%{version}-root %description libpri is a C implementation of the Primary Rate ISDN specification. It was based on the Bellcore specification SR-NWT-002343 for National ISDN. As of May 12, 2001, it has been tested work with NI-2, Nortel DMS-100, and Lucent 5E Custom protocols on switches from Nortel and Lucent. %package -n %{libname} Summary: An implementation of Primate Rate ISDN Group: System/Libraries %description -n %{libname} libpri is a C implementation of the Primary Rate ISDN specification. It was based on the Bellcore specification SR-NWT-002343 for National ISDN. As of May 12, 2001, it has been tested work with NI-2, Nortel DMS-100, and Lucent 5E Custom protocols on switches from Nortel and Lucent. %package -n %{libname}-devel Summary: Development libraries and headers for %{name} Group: Development/C Provides: %{name}-devel Requires: %{libname} = %{version}-%{release} %description -n %{libname}-devel libpri is an implementation of the Primary Rate ISDN specification (based on the ITU and Bellcore specifications). It supports Lucent 4e and 5e, Nortel DMS-100, and National ISDN switchtypes. This package contains all of the development files that you will need in order to compile %{name} applications. %prep %setup -q -n %{name}-%{version} %patch0 -p0 %build %make CFLAGS="%{optflags}" %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} make \ INSTALL_PREFIX="%{buildroot}" \ install ln -snf libpri.so.1.0 %{buildroot}%{_libdir}/libpri.so.1 ln -snf libpri.so.1.0 %{buildroot}%{_libdir}/libpri.so %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files -n %{libname} %defattr(-,root,root) %doc ChangeLog README TODO %{_libdir}/*.so.* %files -n %{libname}-devel %defattr(-,root,root) %{_includedir}/*.h %{_libdir}/*.so %{_libdir}/*.a %changelog * Thu Jul 10 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.3.2-3mdk - rebuild * Tue Jul 08 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.3.2-2mdk - Copyright/License * Tue Jul 08 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.3.2-1mdk - initial cooker contrib