libtool 2.4.6打包脚本

# To Build:
#
# sudo yum -y install rpmdevtools m4 && rpmdev-setuptree
# wget https://raw.github.com/nmilford/rpm-libtool/master/libtool.spec -O ~/rpmbuild/SPECS/libtool.spec
# wget http://ftp.gnu.org/gnu/libtool/libtool-2.4.2.tar.gz -O  ~/rpmbuild/SOURCES/libtool-2.4.2.tar.gz
# rpmbuild -bb ~/rpmbuild/SPECS/libtool.spec

Name:       libtool
Version:    2.4.6
Release:    1
Summary:    The GNU libtool, which simplifies the use of shared libraries
Group:      Development/Tools
License:    GNU GPL
URL:        http://www.gnu.org/software/libtool/
Source0:    http://ftp.gnu.org/gnu/libtool//libtool-%{version}.tar.gz
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gcc 
Requires:   gcc

%description
The libtool package contains the GNU libtool, a set of shell scripts which
automatically configure UNIX and UNIX-like architectures to generically build
shared libraries.  Libtool provides a consistent, portable interface which
simplifies the process of using shared libraries.

%package -n libltdl
Summary:    Shared library files for %{name}
Group:      Development/Libraries

%description -n libltdl
Shared library files for libtool DLL library from the libtool package.

%package -n libltdl-devel
Summary:    Development files for %{name}
Group:      Development/Libraries
Requires:   libltdl = %{version}-%{release}

%description -n libltdl-devel
This package contains static libraries and header files need for development.

%prep
%setup -q -n %{name}-%{version}

%build
%configure
make

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%post
%install_info %{name}.info

%preun
%uninstall_info %{name}.info

%post -n libltdl -p /sbin/ldconfig
%postun -n libltdl -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_bindir}/libtool
%{_bindir}/libtoolize
%dir %{_datadir}/libtool/
%{_datadir}/*
%exclude %{_datadir}/info/dir

%doc AUTHORS COPYING

%files -n libltdl
%defattr(-,root,root)
%dir %{_datadir}/libtool/libltdl/
%{_datadir}/libtool/libltdl/*
%{_libdir}/libltdl.so.*

%files -n libltdl-devel
%defattr(-,root,root)
%{_includedir}/ltdl.h
%{_includedir}/libltdl
%{_libdir}/libltdl.a
%{_libdir}/libltdl.la
%{_libdir}/libltdl.so
%{_datadir}/aclocal/ltdl.m4
%doc ChangeLog* NEWS README THANKS TODO doc/PLATFORMS

%changelog
* Mon Sep 02 2013 Nathan Milford <nathan@milford.io> 2.4.2-1
- First shot.
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

peihexian

你的鼓励是我创作的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值