shtool/shtool.spec

Wed, 14 Jan 2009 15:59:12 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 14 Jan 2009 15:59:12 +0100
changeset 86
78e7deb1d6ab
parent 13
cb59d6afeb61
permissions
-rw-r--r--

Correct and improve many buildconf and code logic blocks. In particular:
1. Document potential problems building with current binutils releases.
2. Document the flawed webkit and explain its temporary exclusion.
3. Document the edition of Qt which is built and installed.
4. Remove the Solaris x11_supdir logic as it is no longer found.
5. Correct several .pr[io] files including QMAKE_CXXFLAGS and INCPATH,
which previously caused preexisting Qt installations to deliver
erroneous old include and library logic instead of relying on
that of the currently building package. -I/opkg/include is now
placed at the end of the compile statements.
6. Don't trust the QMAKE_[INC|LIB]DIR_X11 identifiers in qmake.conf.
7. Allow more 64-bit builds and more properly identify the platform.
8. Place plugins (which are shared objects) in lib instead of share.
9. Build components as plugins when possible if with_shared is enabled.
10. Translate German text to English to be more consistent.
11. Instead of removing the pkgconfig directory of with_shared builds,
place it in a child directory useful for shared building.
12. Document the nonstandard shared build directory structure,
including using the hidden pkgconfig directory (PKG_CONFIG_PATH.)
13. Change %doc to specify files rather than directories in the RPM DB.

     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