summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2011-07-07 17:46:30 -0500
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>2011-07-07 17:46:30 -0500
commitc14d44a7e95a9d8b2921e72053fc19e57d3a555f (patch)
tree298890802d9289f5e07eabb79c1ada30f81f3e1b
downloadcygwin-libtool-c14d44a7e95a9d8b2921e72053fc19e57d3a555f.tar.gz
cygwin-libtool-c14d44a7e95a9d8b2921e72053fc19e57d3a555f.tar.xz
cygwin-libtool-c14d44a7e95a9d8b2921e72053fc19e57d3a555f.zip
cygwin-libtool 2.4-1
-rw-r--r--cygwin-libtool.spec90
-rw-r--r--libtool-2.4-pass-ldflags.patch14
-rw-r--r--sources1
3 files changed, 105 insertions, 0 deletions
diff --git a/cygwin-libtool.spec b/cygwin-libtool.spec
new file mode 100644
index 0000000..a91daf0
--- /dev/null
+++ b/cygwin-libtool.spec
@@ -0,0 +1,90 @@
+# must be rebuilt with each new version of cygwin-gcc
+%define gcc_version 4.5.3
+
+%global __strip %{_cygwin_strip}
+%global __objdump %{_cygwin_objdump}
+%global _use_internal_dependency_generator 0
+%global __find_requires %{_cygwin_findrequires}
+%global __find_provides %{_cygwin_findprovides}
+
+Name: cygwin-libtool
+Version: 2.4
+Release: 1%{?dist}
+Summary: Libtool for Cygwin toolchain
+
+Group: Development/Libraries
+License: GPLv2+ and LGPLv2+
+URL: http://www.gnu.org/software/libtool/
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+
+Source0: http://ftp.gnu.org/gnu/libtool/libtool-%{version}.tar.xz
+Patch0: libtool-2.4-pass-ldflags.patch
+
+BuildRequires: autoconf automake
+BuildRequires: cygwin-filesystem
+BuildRequires: cygwin-binutils
+BuildRequires: cygwin-gcc
+BuildRequires: cygwin-gcc-c++
+BuildRequires: cygwin-gcc-gfortran
+BuildRequires: cygwin-gcc-java
+BuildRequires: cygwin
+
+Requires: autoconf automake sed
+Requires: cygwin-gcc = %{gcc_version}
+
+
+%description
+Libtool for Cygwin toolchain
+
+
+%prep
+%setup -q -n libtool-%{version}
+%patch0 -p1
+
+
+%build
+./bootstrap
+%{_cygwin_configure} --enable-shared --disable-static
+# build not smp safe
+make
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make install DESTDIR=$RPM_BUILD_ROOT
+
+# We intentionally don't ship *.la files
+rm -f $RPM_BUILD_ROOT%{_cygwin_libdir}/*.la
+
+# Documentation already provided by Fedora native package
+rm -fr $RPM_BUILD_ROOT%{_cygwin_docdir}/
+rm -fr $RPM_BUILD_ROOT%{_cygwin_infodir}/
+rm -fr $RPM_BUILD_ROOT%{_cygwin_mandir}/
+
+# Some packages (e.g. ncurses) build with the installed libtool
+install -D -m0755 libtool $RPM_BUILD_ROOT%{_bindir}/%{_cygwin_target}-libtool
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING NEWS README THANKS TODO ChangeLog*
+%{_bindir}/%{_cygwin_target}-libtool
+%{_cygwin_bindir}/cygltdl-7.dll
+%{_cygwin_bindir}/libtool
+%{_cygwin_bindir}/libtoolize
+%{_cygwin_includedir}/libltdl
+%{_cygwin_includedir}/ltdl.h
+%{_cygwin_libdir}/libltdl.dll.a
+%{_cygwin_datadir}/aclocal/
+%{_cygwin_datadir}/libtool/
+
+
+%changelog
+* Thu Jul 07 2011 Yaakov Selkowitz <cygwin-ports-general@lists.sourceforge.net> - 2.4-1
+- Initial RPM release.
diff --git a/libtool-2.4-pass-ldflags.patch b/libtool-2.4-pass-ldflags.patch
new file mode 100644
index 0000000..6d59afe
--- /dev/null
+++ b/libtool-2.4-pass-ldflags.patch
@@ -0,0 +1,14 @@
+diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
+index 0418007..91276c2 100644
+--- a/libltdl/config/ltmain.m4sh
++++ b/libltdl/config/ltmain.m4sh
+@@ -5051,7 +5051,8 @@ func_mode_link ()
+ # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
+ -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
+- -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
++ -O*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*| \
++ -shared-libgcc|-static-libgcc|-static-libgfortran|-static-libstdc++)
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ func_append compile_command " $arg"
diff --git a/sources b/sources
new file mode 100644
index 0000000..a347ca7
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+4e6144439d95d7332dc50ace6dd24c55 libtool-2.4.tar.xz