michael@44: ## michael@44: ## libtool.spec -- OpenPKG RPM Package Specification michael@44: ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. michael@44: ## michael@44: ## Permission to use, copy, modify, and distribute this software for michael@44: ## any purpose with or without fee is hereby granted, provided that michael@44: ## the above copyright notice and this permission notice appear in all michael@44: ## copies. michael@44: ## michael@44: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@44: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@44: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@44: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@44: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@44: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@44: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@44: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@44: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@44: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@44: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@44: ## SUCH DAMAGE. michael@44: ## michael@44: michael@44: # package version michael@44: %define V_dist 2.2.6a michael@44: %define V_subdir 2.2.6 michael@44: michael@44: # package information michael@44: Name: libtool michael@44: Summary: Library Building Tool michael@44: URL: http://www.gnu.org/software/libtool/ michael@44: Vendor: Free Software Foundation michael@44: Packager: OpenPKG Foundation e.V. michael@44: Distribution: OpenPKG Community michael@44: Class: CORE michael@44: Group: Building michael@44: License: GPL michael@44: Version: %{V_dist} michael@45: Release: 20090106 michael@44: michael@44: # list of sources michael@44: Source0: ftp://ftp.gnu.org/gnu/libtool/libtool-%{V_dist}.tar.gz michael@44: michael@44: # build information michael@44: Prefix: %{l_prefix} michael@44: BuildRoot: %{l_buildroot} michael@45: BuildPreReq: OpenPKG, openpkg >= 20040130, make, gcc michael@44: PreReq: OpenPKG, openpkg >= 20040130 michael@73: BuildPreReq: binutils, sed, grep michael@73: PreReq: binutils, sed, grep michael@44: AutoReq: no michael@44: AutoReqProv: no michael@44: michael@44: %description michael@44: GNU libtool is a generic library support script. Libtool hides the michael@44: complexity of using shared libraries behind a consistent, portable michael@44: interface. michael@44: michael@44: %track michael@44: prog libtool = { michael@44: version = %{V_dist} michael@44: url = ftp://ftp.gnu.org/gnu/libtool/ michael@44: regex = libtool-(__VER__)\.tar\.gz michael@44: } michael@44: michael@44: %prep michael@44: %setup -q -n libtool-%{V_subdir} michael@44: michael@44: %build michael@44: # configure package michael@44: %{l_shtool} subst \ michael@44: -e 's;grep ggrep;grep ggrep egrep;g' \ michael@44: -e 's;-e .-(cannot match)-.;;g' \ michael@44: `find . -name configure -print` michael@44: CC="%{l_cc}" \ michael@44: CFLAGS="%{l_cflags -O}" \ michael@44: ./configure \ michael@44: --prefix=%{l_prefix} \ michael@44: --infodir=%{l_prefix}/info \ michael@44: --enable-static \ michael@44: --enable-shared michael@44: michael@44: # build package michael@44: %{l_make} %{l_mflags} michael@44: michael@44: %install michael@44: rm -rf $RPM_BUILD_ROOT michael@44: michael@44: # install package michael@44: %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" michael@44: michael@44: # strip down installation michael@44: rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir michael@44: rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libltdl.so* michael@44: %{l_shtool} subst \ michael@44: -e 's;^\(library_names\)=.*$;\1="";' \ michael@44: -e 's;^\(dlname\)=.*$;\1="";' \ michael@44: $RPM_BUILD_ROOT%{l_prefix}/lib/libltdl.la michael@44: michael@44: # determine installation files michael@44: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ michael@44: %{l_files_std} michael@44: michael@44: %files -f files michael@44: michael@44: %clean michael@44: rm -rf $RPM_BUILD_ROOT michael@44: