--- /dev/null
+# This line is mandatory to access the configuration functions
+from Config import *
+
+addFilter("libtool.* shlib-policy-nonversioned-dir")
+addFilter("libtool.* shlib-policy-missing-lib")
+addFilter("libtool.* script-without-shebang")
--- /dev/null
+%define keepstatic 1
+Name: libtool
+Summary: A Tool to Build Shared Libraries
+License: GPL-2.0+
+Group: Development/Tools
+Version: 2.4.7
+Release: 0
+Url: http://www.gnu.org/software/libtool/
+Source: http://ftp.gnu.org/gnu/libtool/libtool-%{version}.tar.gz
+Source2: baselibs.conf
+Source3: libtool-rpmlintrc
+Source1001: libtool.manifest
+
+BuildRequires: automake
+BuildRequires: gcc-c++
+BuildRequires: lzma
+BuildRequires: zlib-devel
+BuildRequires: makeinfo
+
+Requires: automake > 1.4
+Requires: tar
+Requires: libltdl = %{version}
+
+Provides: libltdl-devel
+# fedora name
+Provides: libtool-ltdl-devel
+
+%description
+GNU libtool is a set of shell scripts to automatically configure UNIX
+architectures to build shared libraries in a generic fashion.
+
+%package -n libltdl
+Summary: Libtool Runtime Library
+Group: System/Libraries
+
+%description -n libltdl
+Library needed by programs that use the ltdl interface of GNU libtool.
+
+%prep
+%setup -q -n libtool-%{version}
+cp %{SOURCE1001} .
+
+%build
+%_configure CFLAGS="$RPM_OPT_FLAGS" \
+ --prefix=/usr --infodir=%{_infodir} --libdir=%{_libdir}
+
+# force rebuild with non-broken makeinfo
+rm -f doc/libtool.info
+%__make %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+%remove_docs
+
+%post -n libltdl -p /sbin/ldconfig
+
+%postun -n libltdl -p /sbin/ldconfig
+
+%files
+%manifest %{name}.manifest
+%license COPYING
+%{_bindir}/libtool
+%{_bindir}/libtoolize
+%{_includedir}/libltdl
+%{_includedir}/ltdl.h
+%{_libdir}/libltdl.so
+%{_libdir}/libltdl.a
+%attr(644, root, root) %{_libdir}/libltdl.la
+%{_datadir}/aclocal/*.m4
+%{_datadir}/libtool
+
+%files -n libltdl
+%manifest %{name}.manifest
+%license COPYING
+%{_libdir}/libltdl.so.*
+
+%changelog