Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 609ee42274ecc56f24f70cdd82931bec > files > 1

mISDN2-1.3-20090107.2mdv2009.1.src.rpm

%define	snap 20090107

%define libname	%mklibname mISDN

Summary:	Modular ISDN (mISDN) libraries version 2
Name:		mISDN2
Version:	1.3
Release:	%mkrel %{snap}.2
Group:		System/Libraries
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
BuildRoot:	%{_tmppath}/%{name}-%{version}-root

%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 mISDNuser
Summary:	Modular ISDN (mISDN) utilities
Group:		System/Configuration/Hardware
Epoch:		%{epoch}

%description -n mISDNuser
Modular ISDN (mISDN) is the new ISDN stack of the linux kernel
version after 2.6.27

This package provides shared and static libraries as well as 
various header files.

%package -n	%{libname}
Summary:	Modular ISDN (mISDN) libraries
Group:		System/Libraries
Epoch:		%{epoch}

%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 -n mISDNuser
%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
* 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