File mingw32-libtool.spec of Package mingw32-libtool

#
# spec file for package mingw32-libtool
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           mingw32-libtool
Version:        2.4
Release:        0
Summary:        A Tool to Build Shared Libraries
License:        LGPL-2.1-or-later
Group:          Development/Tools/Building
Url:            http://www.gnu.org/software/libtool/
Source:         http://ftp.gnu.org/gnu/libtool/libtool-%{version}.tar.gz
#!BuildIgnore: post-build-checks
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-filesystem >= 23
%_mingw32_package_header_debug
BuildArch:      noarch

%description
GNU libtool is a set of shell scripts to automatically configure UNIX
architectures to build shared libraries in a generic fashion.

%package -n mingw32-libltdl7
Summary:        Libtool Runtime Library
Group:          System/Libraries
Obsoletes:      mingw32-libltdl
Provides:       mingw32-libltdl

%description -n mingw32-libltdl7
Library needed by programs that use the ltdl interface of GNU libtool.

%_mingw32_debug_package

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

%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure} \
	--enable-shared --disable-static
make %{?_smp_mflags} || make

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
rm -f %{buildroot}%{_mingw32_infodir}/dir

%files
%defattr(-,root,root)
%{_mingw32_includedir}/ltdl.h
%{_mingw32_includedir}/libltdl
%{_mingw32_datadir}/libtool/config
%{_mingw32_datadir}/libtool/libltdl
%{_mingw32_datadir}/aclocal/libtool.m4
%{_mingw32_datadir}/aclocal/argz.m4
%{_mingw32_datadir}/aclocal/ltdl.m4
%{_mingw32_datadir}/aclocal/ltsugar.m4
%{_mingw32_datadir}/aclocal/lt~obsolete.m4
%{_mingw32_datadir}/aclocal/ltversion.m4
%{_mingw32_datadir}/aclocal/ltoptions.m4
%{_mingw32_infodir}/libtool.info*
%{_mingw32_libdir}/libltdl.dll.a
%{_mingw32_bindir}/libtoolize
%{_mingw32_bindir}/libtool
%{_mingw32_mandir}/man1/libtoolize.1*
%{_mingw32_mandir}/man1/libtool.1*

%files -n mingw32-libltdl7
%defattr(-,root,root)
%{_mingw32_bindir}/libltdl-7.dll

%changelog
openSUSE Build Service is sponsored by