%define name mISDN2user %define version 1.5 %define libname %mklibname %{name} %define libname_provides %mklibname mISDNuser %define snap 20090602 %define release %mkrel %{snap}.1 Summary: Modular ISDN (mISDN) libraries and utilities version 2 Name: %{name} Version: %{version} Release: %{release} Group: System/Configuration/Hardware License: GPL URL: http://www.misdn.org/index.php/Main_Page Source0: http://www.linux-call-router.de/download/lcr-%{version}/mISDNuser_%{snap}.tar.gz Epoch: 2 Provides: mISDN = %{epoch}:%{version}-%{release} Provides: mISDN2 = %{epoch}:%{version}-%{release} Provides: mISDNuser = %{epoch}:%{version}-%{release} Provides: misdnuser = %{epoch}:%{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version} %description mISDN supports a complete BRI and PRI ETSI compliant DSS1 protocol stack for the TE mode and for the NT mode. It is the successor of the "old" isdn4linux subsystem, in particular its "HiSax" family of drivers. It has growing support for the interface cards of hisax and additionally supports the cool HFCmulti chip based cards %package -n %{libname} Summary: Modular ISDN (mISDN) libraries Group: System/Libraries Epoch: %{epoch} Provides: %{libname_provides} = %{epoch}:%{version}-%{release} %description -n %{libname} Modular ISDN (mISDN) is the new ISDN stack of the linux kernel version 2.6. This package provides the shared mISDN libraries. %package -n %{libname}-devel Summary: Static library and header files for the mISDN libraries Group: Development/C Provides: %{name}-devel = %{epoch}:%{version}-%{release} Provides: lib%{name}-devel = %{epoch}:%{version}-%{release} Requires: %{libname} = %{epoch}:%{version}-%{release} Epoch: %{epoch} %description -n %{libname}-devel Modular ISDN (mISDN) is the new ISDN stack of the linux kernel version 2.6. This package provides shared and static libraries and header files. %prep %setup -q -n mISDNuser # fix strange perms find . -type f -exec chmod 644 {} \; find . -type d -exec chmod 755 {} \; # cvs cleanup for i in `find . -type d -name CVS` `find . -type d -name .svn` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do if [ -e "$i" ]; then rm -r $i; fi >&/dev/null done #sed 's/CFLAGS:= -g -Wall/CFLAGS:= '"$RPM_OPT_FLAGS"' -g -Wall/' -i Makefile %build %make INSTALL_PREFIX=%{buildroot} INSTALL_LIBDIR=%{_libdir} #LDFLAGS="%ldflags" %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %makeinstall INSTALL_PREFIX=%{buildroot} INSTALL_LIBDIR=%{_libdir} %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-,root,root) %doc COPYING.LIB LICENSE %{_bindir}/* %files -n %{libname} %defattr(-,root,root) %{_libdir}/*.so %files -n %{libname}-devel %defattr(-,root,root) %{_includedir}/mISDNuser/*.* %{_libdir}/*.a %changelog * Tue Jun 09 2009 Lonyai Gergely <aleph@mandriva.org> 2:1.5-20090602.1mdv2010.0 + Revision: 384424 - small changes * Thu Feb 19 2009 Lonyai Gergely <aleph@mandriva.org> 2:1.3-20090107.2mdv2009.1 + Revision: 342987 - Missing group description, mISDN2-1.3-20090107.2mdv2009.1 - mISDN2-1.3-20090107.1mdv2009.1 - mISDN2 start - create mISDN2