shtool/shtool.spec

Sat, 24 Mar 2012 21:40:49 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 24 Mar 2012 21:40:49 +0100
changeset 414
fd611cde817f
parent 13
cb59d6afeb61
permissions
-rw-r--r--

Introduce many changes to the buildconf and source code including:
(01) clean up, update, and partially update default config files,
(02) seems that Melware is unable to perform release engineering so
update chan_capi to new daily snapshot to solve echo problems,
(03) correct Asterisk inadequate hard coded gmime version check,
(04) force postgresql pthreads linkage to solve build problem,
(05) remove buggy hard coded LibXML configure definitions,
(06) remove local architecture specification to allow GCC
internal logic to determine proper CPU type instead,
(07) remove vendor sound install target causing uncontrolled
downloads and non RPM managed file installation,
(08) solve long outstanding bug in tcptls causing Asterisk
to ignore any intermediate CA certificate signatures,
(09) back out Digium engineering team's bright idea of replacing the
very portable and pervasive POSIX rand(1) with ast_random(), and
then not even implementing it causing all references to fail in
platforms not providing the very new POSIX.1-2008 mkdtemp(3)
function only distributed by BSD and some Linux,
(10) withdraw advanced linker symbol manipulations from SVR5 builds
until either Binutils supports hybrid versioned and anonymous
linker scripts or GCC stops hard coding versioned linker scripts,
(11) correct missing library linkage, some tailored to a specific OS,
(12) remove outdated logic for the no longer distributed gmime-config(1),
(13) remove local gmime buildconf hacks now that Asterisk has corrected
their own build configuration to almost portably support gmime,
(14) solve build problems relating to undetected LibXML paths,
(15) correct erroneous out of tree include definitions,
(16) improve some variable and comment naming,
(17) simplify sound language path hierarchy creation,
and correct australian english installation logic.

     1 ##
     2 ##  shtool.spec -- OpenPKG RPM Package Specification
     3 ##  Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
     4 ##  Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
     5 ##
     6 ##  Permission to use, copy, modify, and distribute this software for
     7 ##  any purpose with or without fee is hereby granted, provided that
     8 ##  the above copyright notice and this permission notice appear in all
     9 ##  copies.
    10 ##
    11 ##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    12 ##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    13 ##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    14 ##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    15 ##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    16 ##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    17 ##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    18 ##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    19 ##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    20 ##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    21 ##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    22 ##  SUCH DAMAGE.
    23 ##
    25 #   package information
    26 Name:         shtool
    27 Summary:      GNU Portable Shell Tool
    28 URL:          http://www.gnu.org/software/shtool/
    29 Vendor:       Ralf S. Engelschall
    30 Packager:     OpenPKG
    31 Distribution: OpenPKG
    32 Class:        CORE
    33 Group:        Building
    34 License:      GPL
    35 Version:      2.0.8
    36 Release:      20090105
    38 #   package options
    39 %option       with_shtoolize  yes
    41 #   list of sources
    42 Source0:      ftp://ftp.gnu.org/gnu/shtool/shtool-%{version}.tar.gz
    43 Patch0:       shtool.patch
    45 #   build information
    46 Prefix:       %{l_prefix}
    47 BuildRoot:    %{l_buildroot}
    48 BuildPreReq:  OpenPKG, openpkg >= 20040130, perl
    49 PreReq:       OpenPKG, openpkg >= 20040130
    50 %if "%{with_shtoolize}" == "yes"
    51 PreReq:       perl
    52 %endif
    53 AutoReq:      no
    54 AutoReqProv:  no
    56 %description
    57     GNU shtool is a compilation of small but very stable and portable
    58     shell scripts into a single shell tool. All ingredients were in
    59     successful use over many years in various free software projects.
    60     The compiled shtool script is intended to be used inside the source
    61     tree of those free software packages. There it can take over
    62     various (usually nonportable) tasks related to the building and
    63     installation of such packages.
    65 %track
    66     prog shtool = {
    67         version   = %{version}
    68         url       = ftp://ftp.gnu.org/gnu/shtool/
    69         regex     = shtool-(__VER__)\.tar\.gz
    70     }
    72 %prep
    73     %setup -q
    74     %patch -p0
    76 %build
    77     ./configure \
    78         --prefix=%{l_prefix} \
    79         --mandir=%{l_prefix}/man
    80     %{l_make} %{l_mflags}
    82 %install
    83     rm -rf $RPM_BUILD_ROOT
    84     %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
    85 %if "%{with_shtoolize}" != "yes"
    86     rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/shtoolize
    87     rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/shtoolize.1
    88     rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/shtool
    89 %endif
    90     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
    91         %{l_files_std} \
    92         '%not %dir %{l_prefix}/share/aclocal'
    94 %files -f files
    96 %clean
    97     rm -rf $RPM_BUILD_ROOT

mercurial