Sun, 02 Sep 2012 18:18:43 +0200
Introduce new version of tcpdump, reorder taglib and cryptbreaker to
the end because they fail to build on Linux, and correct flawed URLs
probably copied from the doxygen build entry.
michael@240 | 1 | ## |
michael@240 | 2 | ## libpri.spec -- OpenPKG RPM Package Specification |
michael@553 | 3 | ## Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com> |
michael@240 | 4 | ## |
michael@240 | 5 | ## Permission to use, copy, modify, and distribute this software for |
michael@240 | 6 | ## any purpose with or without fee is hereby granted, provided that |
michael@240 | 7 | ## the above copyright notice and this permission notice appear in all |
michael@240 | 8 | ## copies. |
michael@240 | 9 | ## |
michael@240 | 10 | ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
michael@240 | 11 | ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
michael@240 | 12 | ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
michael@240 | 13 | ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
michael@240 | 14 | ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
michael@240 | 15 | ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
michael@240 | 16 | ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
michael@240 | 17 | ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
michael@240 | 18 | ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
michael@240 | 19 | ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
michael@240 | 20 | ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
michael@240 | 21 | ## SUCH DAMAGE. |
michael@240 | 22 | ## |
michael@240 | 23 | |
michael@240 | 24 | # package information |
michael@240 | 25 | Name: libpri |
michael@240 | 26 | Summary: Primary Rate ISDN Logic |
michael@240 | 27 | URL: http://www.asterisk.org/ |
michael@240 | 28 | Vendor: Mark Spencer et al. |
michael@240 | 29 | Packager: Michael Schloh von Bennewitz |
michael@387 | 30 | Distribution: Europalab Networks Production |
michael@240 | 31 | Class: EVAL |
michael@240 | 32 | Group: VoIP |
michael@240 | 33 | License: GPL |
michael@381 | 34 | Version: 1.4.12 |
michael@553 | 35 | Release: 20120800 |
michael@240 | 36 | |
michael@240 | 37 | # list of sources |
michael@240 | 38 | Source0: http://downloads.asterisk.org/pub/telephony/libpri/libpri-%{version}.tar.gz |
michael@240 | 39 | |
michael@240 | 40 | # build information |
michael@553 | 41 | BuildPreReq: OpenPKG, openpkg >= 20100101 |
michael@553 | 42 | PreReq: OpenPKG, openpkg >= 20100101 |
michael@240 | 43 | |
michael@240 | 44 | %description |
michael@240 | 45 | libpri is a C implementation of the Primary Rate ISDN specification. |
michael@240 | 46 | It was based on the Bellcore specification SR-NWT-002343 for National |
michael@240 | 47 | ISDN. As of May 12, 2001, it has been tested work with NI-2, Nortel |
michael@240 | 48 | DMS-100, and Lucent 5E Custom protocols on switches from Nortel and |
michael@240 | 49 | Lucent. |
michael@240 | 50 | |
michael@240 | 51 | %track |
michael@240 | 52 | prog libpri = { |
michael@240 | 53 | version = %{version} |
michael@240 | 54 | url = http://downloads.asterisk.org/pub/telephony/libpri/ |
michael@240 | 55 | regex = libpri-(__VER__)\.tar\.gz |
michael@240 | 56 | } |
michael@240 | 57 | |
michael@240 | 58 | %prep |
michael@553 | 59 | %setup -q |
michael@240 | 60 | |
michael@240 | 61 | # apply corrections |
michael@240 | 62 | %{l_shtool} subst \ |
michael@381 | 63 | -e 's;\(CFLAGS=.*\)-Wall *;\1;' \ |
michael@381 | 64 | -e 's;\(CFLAGS=.*\)-Werror *;\1;' \ |
michael@381 | 65 | -e 's;\(CFLAGS=.*\)-Wstrict-prototypes *;\1;' \ |
michael@381 | 66 | -e 's;\(CFLAGS=.*\)-Wmissing-prototypes *;\1;' \ |
michael@240 | 67 | -e 's;INSTALL_BASE=/usr;INSTALL_BASE=;g' \ |
michael@240 | 68 | Makefile |
michael@553 | 69 | %{l_shtool} subst \ |
michael@553 | 70 | -e 's;u_int\([0-9]*\)_t;uint\1_t;g' \ |
michael@553 | 71 | pri_q9?1.h |
michael@240 | 72 | |
michael@240 | 73 | %build |
michael@240 | 74 | # build package |
michael@240 | 75 | %{l_make} %{l_mflags -O} |
michael@240 | 76 | |
michael@240 | 77 | %install |
michael@240 | 78 | # install package |
michael@240 | 79 | %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT%{l_prefix} |
michael@240 | 80 | |
michael@240 | 81 | # remove dynamic libraries |
michael@240 | 82 | rm -f $RPM_BUILD_ROOT/%{l_prefix}/lib/libpri.so* |
michael@240 | 83 | |
michael@240 | 84 | # determine installation files |
michael@240 | 85 | %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
michael@240 | 86 | |
michael@240 | 87 | %files -f files |
michael@240 | 88 | |
michael@240 | 89 | %clean |
michael@240 | 90 |