libtool/libtool.spec

Thu, 08 Jan 2009 18:22:52 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 08 Jan 2009 18:22:52 +0100
changeset 44
6939d0db0c9e
child 45
d2954f86e9e6
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

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@44 39 Release: 20080908
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@44 47 BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, make
michael@44 48 PreReq: OpenPKG, openpkg >= 20040130
michael@44 49 AutoReq: no
michael@44 50 AutoReqProv: no
michael@44 51
michael@44 52 %description
michael@44 53 GNU libtool is a generic library support script. Libtool hides the
michael@44 54 complexity of using shared libraries behind a consistent, portable
michael@44 55 interface.
michael@44 56
michael@44 57 %track
michael@44 58 prog libtool = {
michael@44 59 version = %{V_dist}
michael@44 60 url = ftp://ftp.gnu.org/gnu/libtool/
michael@44 61 regex = libtool-(__VER__)\.tar\.gz
michael@44 62 }
michael@44 63
michael@44 64 %prep
michael@44 65 %setup -q -n libtool-%{V_subdir}
michael@44 66
michael@44 67 %build
michael@44 68 # configure package
michael@44 69 %{l_shtool} subst \
michael@44 70 -e 's;grep ggrep;grep ggrep egrep;g' \
michael@44 71 -e 's;-e .-(cannot match)-.;;g' \
michael@44 72 `find . -name configure -print`
michael@44 73 CC="%{l_cc}" \
michael@44 74 CFLAGS="%{l_cflags -O}" \
michael@44 75 ./configure \
michael@44 76 --prefix=%{l_prefix} \
michael@44 77 --infodir=%{l_prefix}/info \
michael@44 78 --enable-static \
michael@44 79 --enable-shared
michael@44 80
michael@44 81 # build package
michael@44 82 %{l_make} %{l_mflags}
michael@44 83
michael@44 84 %install
michael@44 85 rm -rf $RPM_BUILD_ROOT
michael@44 86
michael@44 87 # install package
michael@44 88 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
michael@44 89
michael@44 90 # strip down installation
michael@44 91 rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
michael@44 92 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libltdl.so*
michael@44 93 %{l_shtool} subst \
michael@44 94 -e 's;^\(library_names\)=.*$;\1="";' \
michael@44 95 -e 's;^\(dlname\)=.*$;\1="";' \
michael@44 96 $RPM_BUILD_ROOT%{l_prefix}/lib/libltdl.la
michael@44 97
michael@44 98 # determine installation files
michael@44 99 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
michael@44 100 %{l_files_std}
michael@44 101
michael@44 102 %files -f files
michael@44 103
michael@44 104 %clean
michael@44 105 rm -rf $RPM_BUILD_ROOT
michael@44 106

mercurial