1.1 --- a/libpri/libpri.spec Tue Aug 28 18:32:05 2012 +0200 1.2 +++ b/libpri/libpri.spec Tue Aug 28 18:32:10 2012 +0200 1.3 @@ -1,6 +1,6 @@ 1.4 ## 1.5 ## libpri.spec -- OpenPKG RPM Package Specification 1.6 -## Copyright (c) 2011 Michael Schloh von Bennewitz <michael@schloh.com> 1.7 +## Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com> 1.8 ## 1.9 ## Permission to use, copy, modify, and distribute this software for 1.10 ## any purpose with or without fee is hereby granted, provided that 1.11 @@ -32,18 +32,14 @@ 1.12 Group: VoIP 1.13 License: GPL 1.14 Version: 1.4.12 1.15 -Release: 20110424 1.16 +Release: 20120800 1.17 1.18 # list of sources 1.19 Source0: http://downloads.asterisk.org/pub/telephony/libpri/libpri-%{version}.tar.gz 1.20 1.21 # build information 1.22 -Prefix: %{l_prefix} 1.23 -BuildRoot: %{l_buildroot} 1.24 -BuildPreReq: OpenPKG, openpkg >= 20060823 1.25 -PreReq: OpenPKG, openpkg >= 20060823 1.26 -AutoReq: no 1.27 -AutoReqProv: no 1.28 +BuildPreReq: OpenPKG, openpkg >= 20100101 1.29 +PreReq: OpenPKG, openpkg >= 20100101 1.30 1.31 %description 1.32 libpri is a C implementation of the Primary Rate ISDN specification. 1.33 @@ -60,7 +56,7 @@ 1.34 } 1.35 1.36 %prep 1.37 - %setup -q -n libpri-%{version} 1.38 + %setup -q 1.39 1.40 # apply corrections 1.41 %{l_shtool} subst \ 1.42 @@ -70,15 +66,15 @@ 1.43 -e 's;\(CFLAGS=.*\)-Wmissing-prototypes *;\1;' \ 1.44 -e 's;INSTALL_BASE=/usr;INSTALL_BASE=;g' \ 1.45 Makefile 1.46 + %{l_shtool} subst \ 1.47 + -e 's;u_int\([0-9]*\)_t;uint\1_t;g' \ 1.48 + pri_q9?1.h 1.49 1.50 %build 1.51 # build package 1.52 %{l_make} %{l_mflags -O} 1.53 1.54 %install 1.55 - # clean build cruft 1.56 - rm -rf $RPM_BUILD_ROOT 1.57 - 1.58 # install package 1.59 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT%{l_prefix} 1.60 1.61 @@ -91,5 +87,4 @@ 1.62 %files -f files 1.63 1.64 %clean 1.65 - rm -rf $RPM_BUILD_ROOT 1.66