libpri/libpri.spec

Tue, 28 Aug 2012 18:29:30 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 28 Aug 2012 18:29:30 +0200
changeset 534
d2d0020cfafa
parent 381
8ddd39bcf2ec
child 553
412e528abcd1
permissions
-rw-r--r--

Update from Drupal 6.x to 7.x and introduce several new HTML5 themes. Because
many themes from Drupal 6.x have since been abandoned, left unmaintained, or
not ported to Drupal 7.x, this package has changed in size and utility.

michael@240 1 ##
michael@240 2 ## libpri.spec -- OpenPKG RPM Package Specification
michael@381 3 ## Copyright (c) 2011 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@381 35 Release: 20110424
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@240 41 Prefix: %{l_prefix}
michael@240 42 BuildRoot: %{l_buildroot}
michael@381 43 BuildPreReq: OpenPKG, openpkg >= 20060823
michael@381 44 PreReq: OpenPKG, openpkg >= 20060823
michael@240 45 AutoReq: no
michael@240 46 AutoReqProv: no
michael@240 47
michael@240 48 %description
michael@240 49 libpri is a C implementation of the Primary Rate ISDN specification.
michael@240 50 It was based on the Bellcore specification SR-NWT-002343 for National
michael@240 51 ISDN. As of May 12, 2001, it has been tested work with NI-2, Nortel
michael@240 52 DMS-100, and Lucent 5E Custom protocols on switches from Nortel and
michael@240 53 Lucent.
michael@240 54
michael@240 55 %track
michael@240 56 prog libpri = {
michael@240 57 version = %{version}
michael@240 58 url = http://downloads.asterisk.org/pub/telephony/libpri/
michael@240 59 regex = libpri-(__VER__)\.tar\.gz
michael@240 60 }
michael@240 61
michael@240 62 %prep
michael@381 63 %setup -q -n libpri-%{version}
michael@240 64
michael@240 65 # apply corrections
michael@240 66 %{l_shtool} subst \
michael@381 67 -e 's;\(CFLAGS=.*\)-Wall *;\1;' \
michael@381 68 -e 's;\(CFLAGS=.*\)-Werror *;\1;' \
michael@381 69 -e 's;\(CFLAGS=.*\)-Wstrict-prototypes *;\1;' \
michael@381 70 -e 's;\(CFLAGS=.*\)-Wmissing-prototypes *;\1;' \
michael@240 71 -e 's;INSTALL_BASE=/usr;INSTALL_BASE=;g' \
michael@240 72 Makefile
michael@240 73
michael@240 74 %build
michael@240 75 # build package
michael@240 76 %{l_make} %{l_mflags -O}
michael@240 77
michael@240 78 %install
michael@381 79 # clean build cruft
michael@240 80 rm -rf $RPM_BUILD_ROOT
michael@240 81
michael@240 82 # install package
michael@240 83 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT%{l_prefix}
michael@240 84
michael@240 85 # remove dynamic libraries
michael@240 86 rm -f $RPM_BUILD_ROOT/%{l_prefix}/lib/libpri.so*
michael@240 87
michael@240 88 # determine installation files
michael@240 89 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@240 90
michael@240 91 %files -f files
michael@240 92
michael@240 93 %clean
michael@240 94 rm -rf $RPM_BUILD_ROOT
michael@240 95

mercurial