libtool/libtool.spec

Sat, 21 May 2011 22:05:42 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 21 May 2011 22:05:42 +0200
changeset 340
870131689a5c
parent 72
925d35999964
permissions
-rw-r--r--

Correct diverse buildconf of upstream release and reconcile packaging somewhat.
These changes stem from the obvious changes in the latest vendor release, but
from discussions with trolls Daniel and Oswald as well regarding build config.

This commital follows conclusion of buildconf adjustments to allow the new
vendor version to build on Linux AMD64, but is incomplete as many packaging
comments show. The next series of changes focus on Solaris IA32 and reduction
of buildconf adjustments testing old problems comprehensively in anticipation
of discussion at the upcoming Nokia Contributor Summit in Berlin.

michael@44 1 ##
michael@44 2 ## libtool.spec -- OpenPKG RPM Package Specification
michael@44 3 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
michael@44 4 ##
michael@44 5 ## Permission to use, copy, modify, and distribute this software for
michael@44 6 ## any purpose with or without fee is hereby granted, provided that
michael@44 7 ## the above copyright notice and this permission notice appear in all
michael@44 8 ## copies.
michael@44 9 ##
michael@44 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@44 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@44 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@44 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@44 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@44 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@44 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@44 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@44 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@44 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@44 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@44 21 ## SUCH DAMAGE.
michael@44 22 ##
michael@44 23
michael@44 24 # package version
michael@44 25 %define V_dist 2.2.6a
michael@44 26 %define V_subdir 2.2.6
michael@44 27
michael@44 28 # package information
michael@44 29 Name: libtool
michael@44 30 Summary: Library Building Tool
michael@44 31 URL: http://www.gnu.org/software/libtool/
michael@44 32 Vendor: Free Software Foundation
michael@44 33 Packager: OpenPKG Foundation e.V.
michael@44 34 Distribution: OpenPKG Community
michael@44 35 Class: CORE
michael@44 36 Group: Building
michael@44 37 License: GPL
michael@44 38 Version: %{V_dist}
michael@45 39 Release: 20090106
michael@44 40
michael@44 41 # list of sources
michael@44 42 Source0: ftp://ftp.gnu.org/gnu/libtool/libtool-%{V_dist}.tar.gz
michael@44 43
michael@44 44 # build information
michael@44 45 Prefix: %{l_prefix}
michael@44 46 BuildRoot: %{l_buildroot}
michael@45 47 BuildPreReq: OpenPKG, openpkg >= 20040130, make, gcc
michael@44 48 PreReq: OpenPKG, openpkg >= 20040130
michael@73 49 BuildPreReq: binutils, sed, grep
michael@73 50 PreReq: binutils, sed, grep
michael@44 51 AutoReq: no
michael@44 52 AutoReqProv: no
michael@44 53
michael@44 54 %description
michael@44 55 GNU libtool is a generic library support script. Libtool hides the
michael@44 56 complexity of using shared libraries behind a consistent, portable
michael@44 57 interface.
michael@44 58
michael@44 59 %track
michael@44 60 prog libtool = {
michael@44 61 version = %{V_dist}
michael@44 62 url = ftp://ftp.gnu.org/gnu/libtool/
michael@44 63 regex = libtool-(__VER__)\.tar\.gz
michael@44 64 }
michael@44 65
michael@44 66 %prep
michael@44 67 %setup -q -n libtool-%{V_subdir}
michael@44 68
michael@44 69 %build
michael@44 70 # configure package
michael@44 71 %{l_shtool} subst \
michael@44 72 -e 's;grep ggrep;grep ggrep egrep;g' \
michael@44 73 -e 's;-e .-(cannot match)-.;;g' \
michael@44 74 `find . -name configure -print`
michael@44 75 CC="%{l_cc}" \
michael@44 76 CFLAGS="%{l_cflags -O}" \
michael@44 77 ./configure \
michael@44 78 --prefix=%{l_prefix} \
michael@44 79 --infodir=%{l_prefix}/info \
michael@44 80 --enable-static \
michael@44 81 --enable-shared
michael@44 82
michael@44 83 # build package
michael@44 84 %{l_make} %{l_mflags}
michael@44 85
michael@44 86 %install
michael@44 87 rm -rf $RPM_BUILD_ROOT
michael@44 88
michael@44 89 # install package
michael@44 90 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
michael@44 91
michael@44 92 # strip down installation
michael@44 93 rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
michael@44 94 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libltdl.so*
michael@44 95 %{l_shtool} subst \
michael@44 96 -e 's;^\(library_names\)=.*$;\1="";' \
michael@44 97 -e 's;^\(dlname\)=.*$;\1="";' \
michael@44 98 $RPM_BUILD_ROOT%{l_prefix}/lib/libltdl.la
michael@44 99
michael@44 100 # determine installation files
michael@44 101 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
michael@44 102 %{l_files_std}
michael@44 103
michael@44 104 %files -f files
michael@44 105
michael@44 106 %clean
michael@44 107 rm -rf $RPM_BUILD_ROOT
michael@44 108

mercurial