michael@240: ## michael@240: ## libpri.spec -- OpenPKG RPM Package Specification michael@553: ## Copyright (c) 2012 Michael Schloh von Bennewitz michael@240: ## michael@240: ## Permission to use, copy, modify, and distribute this software for michael@240: ## any purpose with or without fee is hereby granted, provided that michael@240: ## the above copyright notice and this permission notice appear in all michael@240: ## copies. michael@240: ## michael@240: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@240: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@240: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@240: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@240: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@240: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@240: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@240: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@240: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@240: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@240: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@240: ## SUCH DAMAGE. michael@240: ## michael@240: michael@240: # package information michael@240: Name: libpri michael@240: Summary: Primary Rate ISDN Logic michael@240: URL: http://www.asterisk.org/ michael@240: Vendor: Mark Spencer et al. michael@240: Packager: Michael Schloh von Bennewitz michael@387: Distribution: Europalab Networks Production michael@240: Class: EVAL michael@240: Group: VoIP michael@240: License: GPL michael@381: Version: 1.4.12 michael@553: Release: 20120800 michael@240: michael@240: # list of sources michael@240: Source0: http://downloads.asterisk.org/pub/telephony/libpri/libpri-%{version}.tar.gz michael@240: michael@240: # build information michael@553: BuildPreReq: OpenPKG, openpkg >= 20100101 michael@553: PreReq: OpenPKG, openpkg >= 20100101 michael@240: michael@240: %description michael@240: libpri is a C implementation of the Primary Rate ISDN specification. michael@240: It was based on the Bellcore specification SR-NWT-002343 for National michael@240: ISDN. As of May 12, 2001, it has been tested work with NI-2, Nortel michael@240: DMS-100, and Lucent 5E Custom protocols on switches from Nortel and michael@240: Lucent. michael@240: michael@240: %track michael@240: prog libpri = { michael@240: version = %{version} michael@240: url = http://downloads.asterisk.org/pub/telephony/libpri/ michael@240: regex = libpri-(__VER__)\.tar\.gz michael@240: } michael@240: michael@240: %prep michael@553: %setup -q michael@240: michael@240: # apply corrections michael@240: %{l_shtool} subst \ michael@381: -e 's;\(CFLAGS=.*\)-Wall *;\1;' \ michael@381: -e 's;\(CFLAGS=.*\)-Werror *;\1;' \ michael@381: -e 's;\(CFLAGS=.*\)-Wstrict-prototypes *;\1;' \ michael@381: -e 's;\(CFLAGS=.*\)-Wmissing-prototypes *;\1;' \ michael@240: -e 's;INSTALL_BASE=/usr;INSTALL_BASE=;g' \ michael@240: Makefile michael@553: %{l_shtool} subst \ michael@553: -e 's;u_int\([0-9]*\)_t;uint\1_t;g' \ michael@553: pri_q9?1.h michael@240: michael@240: %build michael@240: # build package michael@240: %{l_make} %{l_mflags -O} michael@240: michael@240: %install michael@240: # install package michael@240: %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT%{l_prefix} michael@240: michael@240: # remove dynamic libraries michael@240: rm -f $RPM_BUILD_ROOT/%{l_prefix}/lib/libpri.so* michael@240: michael@240: # determine installation files michael@240: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@240: michael@240: %files -f files michael@240: michael@240: %clean michael@240: