1 ## |
1 ## |
2 ## libpri.spec -- OpenPKG RPM Package Specification |
2 ## libpri.spec -- OpenPKG RPM Package Specification |
3 ## Copyright (c) 2009 Michael Schloh von Bennewitz <michael@schloh.com> |
3 ## Copyright (c) 2011 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. |
29 Packager: Michael Schloh von Bennewitz |
29 Packager: Michael Schloh von Bennewitz |
30 Distribution: Michael Schloh von Bennewitz |
30 Distribution: Michael Schloh von Bennewitz |
31 Class: EVAL |
31 Class: EVAL |
32 Group: VoIP |
32 Group: VoIP |
33 License: GPL |
33 License: GPL |
34 Version: 1.4.10.2 |
34 Version: 1.4.12 |
35 Release: 20091110 |
35 Release: 20110424 |
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 Prefix: %{l_prefix} |
42 BuildRoot: %{l_buildroot} |
42 BuildRoot: %{l_buildroot} |
43 BuildPreReq: OpenPKG, openpkg >= 20040130 |
43 BuildPreReq: OpenPKG, openpkg >= 20060823 |
44 PreReq: OpenPKG, openpkg >= 20040130 |
44 PreReq: OpenPKG, openpkg >= 20060823 |
45 AutoReq: no |
45 AutoReq: no |
46 AutoReqProv: no |
46 AutoReqProv: no |
47 |
47 |
48 %description |
48 %description |
49 libpri is a C implementation of the Primary Rate ISDN specification. |
49 libpri is a C implementation of the Primary Rate ISDN specification. |
58 url = http://downloads.asterisk.org/pub/telephony/libpri/ |
58 url = http://downloads.asterisk.org/pub/telephony/libpri/ |
59 regex = libpri-(__VER__)\.tar\.gz |
59 regex = libpri-(__VER__)\.tar\.gz |
60 } |
60 } |
61 |
61 |
62 %prep |
62 %prep |
63 %setup -q |
63 %setup -q -n libpri-%{version} |
64 |
64 |
65 # apply corrections |
65 # apply corrections |
66 %{l_shtool} subst \ |
66 %{l_shtool} subst \ |
|
67 -e 's;\(CFLAGS=.*\)-Wall *;\1;' \ |
|
68 -e 's;\(CFLAGS=.*\)-Werror *;\1;' \ |
|
69 -e 's;\(CFLAGS=.*\)-Wstrict-prototypes *;\1;' \ |
|
70 -e 's;\(CFLAGS=.*\)-Wmissing-prototypes *;\1;' \ |
67 -e 's;INSTALL_BASE=/usr;INSTALL_BASE=;g' \ |
71 -e 's;INSTALL_BASE=/usr;INSTALL_BASE=;g' \ |
68 Makefile |
72 Makefile |
69 |
73 |
70 %build |
74 %build |
71 # build package |
75 # build package |
72 %{l_make} %{l_mflags -O} |
76 %{l_make} %{l_mflags -O} |
73 |
77 |
74 %install |
78 %install |
|
79 # clean build cruft |
75 rm -rf $RPM_BUILD_ROOT |
80 rm -rf $RPM_BUILD_ROOT |
76 |
81 |
77 # install package |
82 # install package |
78 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT%{l_prefix} |
83 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT%{l_prefix} |
79 |
84 |