libpri/libpri.spec

changeset 696
106023deee59
parent 387
33ae2d61c751
equal deleted inserted replaced
2:8a4fcda34fba 3:c04b629db7ee
1 ## 1 ##
2 ## libpri.spec -- OpenPKG RPM Package Specification 2 ## libpri.spec -- OpenPKG RPM Package Specification
3 ## Copyright (c) 2011 Michael Schloh von Bennewitz <michael@schloh.com> 3 ## Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com>
4 ## 4 ##
5 ## Permission to use, copy, modify, and distribute this software for 5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that 6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all 7 ## the above copyright notice and this permission notice appear in all
8 ## copies. 8 ## copies.
30 Distribution: Europalab Networks Production 30 Distribution: Europalab Networks Production
31 Class: EVAL 31 Class: EVAL
32 Group: VoIP 32 Group: VoIP
33 License: GPL 33 License: GPL
34 Version: 1.4.12 34 Version: 1.4.12
35 Release: 20110424 35 Release: 20120800
36 36
37 # list of sources 37 # list of sources
38 Source0: http://downloads.asterisk.org/pub/telephony/libpri/libpri-%{version}.tar.gz 38 Source0: http://downloads.asterisk.org/pub/telephony/libpri/libpri-%{version}.tar.gz
39 39
40 # build information 40 # build information
41 Prefix: %{l_prefix} 41 BuildPreReq: OpenPKG, openpkg >= 20100101
42 BuildRoot: %{l_buildroot} 42 PreReq: OpenPKG, openpkg >= 20100101
43 BuildPreReq: OpenPKG, openpkg >= 20060823
44 PreReq: OpenPKG, openpkg >= 20060823
45 AutoReq: no
46 AutoReqProv: no
47 43
48 %description 44 %description
49 libpri is a C implementation of the Primary Rate ISDN specification. 45 libpri is a C implementation of the Primary Rate ISDN specification.
50 It was based on the Bellcore specification SR-NWT-002343 for National 46 It was based on the Bellcore specification SR-NWT-002343 for National
51 ISDN. As of May 12, 2001, it has been tested work with NI-2, Nortel 47 ISDN. As of May 12, 2001, it has been tested work with NI-2, Nortel
58 url = http://downloads.asterisk.org/pub/telephony/libpri/ 54 url = http://downloads.asterisk.org/pub/telephony/libpri/
59 regex = libpri-(__VER__)\.tar\.gz 55 regex = libpri-(__VER__)\.tar\.gz
60 } 56 }
61 57
62 %prep 58 %prep
63 %setup -q -n libpri-%{version} 59 %setup -q
64 60
65 # apply corrections 61 # apply corrections
66 %{l_shtool} subst \ 62 %{l_shtool} subst \
67 -e 's;\(CFLAGS=.*\)-Wall *;\1;' \ 63 -e 's;\(CFLAGS=.*\)-Wall *;\1;' \
68 -e 's;\(CFLAGS=.*\)-Werror *;\1;' \ 64 -e 's;\(CFLAGS=.*\)-Werror *;\1;' \
69 -e 's;\(CFLAGS=.*\)-Wstrict-prototypes *;\1;' \ 65 -e 's;\(CFLAGS=.*\)-Wstrict-prototypes *;\1;' \
70 -e 's;\(CFLAGS=.*\)-Wmissing-prototypes *;\1;' \ 66 -e 's;\(CFLAGS=.*\)-Wmissing-prototypes *;\1;' \
71 -e 's;INSTALL_BASE=/usr;INSTALL_BASE=;g' \ 67 -e 's;INSTALL_BASE=/usr;INSTALL_BASE=;g' \
72 Makefile 68 Makefile
69 %{l_shtool} subst \
70 -e 's;u_int\([0-9]*\)_t;uint\1_t;g' \
71 pri_q9?1.h
73 72
74 %build 73 %build
75 # build package 74 # build package
76 %{l_make} %{l_mflags -O} 75 %{l_make} %{l_mflags -O}
77 76
78 %install 77 %install
79 # clean build cruft
80 rm -rf $RPM_BUILD_ROOT
81
82 # install package 78 # install package
83 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT%{l_prefix} 79 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT%{l_prefix}
84 80
85 # remove dynamic libraries 81 # remove dynamic libraries
86 rm -f $RPM_BUILD_ROOT/%{l_prefix}/lib/libpri.so* 82 rm -f $RPM_BUILD_ROOT/%{l_prefix}/lib/libpri.so*
89 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 85 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
90 86
91 %files -f files 87 %files -f files
92 88
93 %clean 89 %clean
94 rm -rf $RPM_BUILD_ROOT
95 90

mercurial