# HG changeset patch # User Michael Schloh von Bennewitz # Date 1346171530 -7200 # Node ID 412e528abcd17e5d19c749774441d2343b72b922 # Parent e568963742d62d04dbb465a1c75ad60991473c52 Correct use of nonportable u_int types and modernize package. diff -r e568963742d6 -r 412e528abcd1 libpri/libpri.spec --- a/libpri/libpri.spec Tue Aug 28 18:32:05 2012 +0200 +++ b/libpri/libpri.spec Tue Aug 28 18:32:10 2012 +0200 @@ -1,6 +1,6 @@ ## ## libpri.spec -- OpenPKG RPM Package Specification -## Copyright (c) 2011 Michael Schloh von Bennewitz +## Copyright (c) 2012 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 @@ -32,18 +32,14 @@ Group: VoIP License: GPL Version: 1.4.12 -Release: 20110424 +Release: 20120800 # 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 >= 20060823 -PreReq: OpenPKG, openpkg >= 20060823 -AutoReq: no -AutoReqProv: no +BuildPreReq: OpenPKG, openpkg >= 20100101 +PreReq: OpenPKG, openpkg >= 20100101 %description libpri is a C implementation of the Primary Rate ISDN specification. @@ -60,7 +56,7 @@ } %prep - %setup -q -n libpri-%{version} + %setup -q # apply corrections %{l_shtool} subst \ @@ -70,15 +66,15 @@ -e 's;\(CFLAGS=.*\)-Wmissing-prototypes *;\1;' \ -e 's;INSTALL_BASE=/usr;INSTALL_BASE=;g' \ Makefile + %{l_shtool} subst \ + -e 's;u_int\([0-9]*\)_t;uint\1_t;g' \ + pri_q9?1.h %build # build package %{l_make} %{l_mflags -O} %install - # clean build cruft - rm -rf $RPM_BUILD_ROOT - # install package %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT%{l_prefix} @@ -91,5 +87,4 @@ %files -f files %clean - rm -rf $RPM_BUILD_ROOT