diff -r d2e66a0e1aa8 -r 073c5bb92328 libpri/libpri.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libpri/libpri.spec Mon Nov 09 20:43:31 2009 +0100 @@ -0,0 +1,90 @@ +## +## libpri.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2009 Michael Schloh von Bennewitz +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# package information +Name: libpri +Summary: Primary Rate ISDN Logic +URL: http://www.asterisk.org/ +Vendor: Mark Spencer et al. +Packager: Michael Schloh von Bennewitz +Distribution: Michael Schloh von Bennewitz +Class: EVAL +Group: VoIP +License: GPL +Version: 1.4.10.2 +Release: 20091110 + +# list of sources +Source0: http://downloads.asterisk.org/pub/telephony/libpri/libpri-%{version}.tar.gz + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20040130 +PreReq: OpenPKG, openpkg >= 20040130 +AutoReq: no +AutoReqProv: no + +%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. + +%track + prog libpri = { + version = %{version} + url = http://downloads.asterisk.org/pub/telephony/libpri/ + regex = libpri-(__VER__)\.tar\.gz + } + +%prep + %setup -q + + # apply corrections + %{l_shtool} subst \ + -e 's;INSTALL_BASE=/usr;INSTALL_BASE=;g' \ + Makefile + +%build + # build package + %{l_make} %{l_mflags -O} + +%install + rm -rf $RPM_BUILD_ROOT + + # install package + %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT%{l_prefix} + + # remove dynamic libraries + rm -f $RPM_BUILD_ROOT/%{l_prefix}/lib/libpri.so* + + # determine installation files + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT +