summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2011-08-21 17:59:20 -0500
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>2011-08-21 17:59:20 -0500
commitbeac5c2891fbbb03d9c3fd956d0f09244258116e (patch)
treed5ce514587a1562cfdc33ad55fd9c8621a39071f
parente6768176ddbf2f40001c92728ca6efae4cec902b (diff)
downloadcygwin-gettext-beac5c2891fbbb03d9c3fd956d0f09244258116e.zip
cygwin-gettext-beac5c2891fbbb03d9c3fd956d0f09244258116e.tar.gz
cygwin-gettext-beac5c2891fbbb03d9c3fd956d0f09244258116e.tar.xz
Remove Cygwin EXEs and other unnecessary files
-rw-r--r--cygwin-gettext.spec34
1 files changed, 16 insertions, 18 deletions
diff --git a/cygwin-gettext.spec b/cygwin-gettext.spec
index 3b1dd6b..38c64e8 100644
--- a/cygwin-gettext.spec
+++ b/cygwin-gettext.spec
@@ -7,7 +7,7 @@
Name: cygwin-gettext
Version: 0.17
-Release: 1
+Release: 2
Summary: GNU libraries and utilities for producing multi-lingual messages
License: GPLv2+ and LGPLv2+
@@ -82,6 +82,18 @@ rm -rf $RPM_BUILD_ROOT%{_cygwin_infodir}
rm -rf $RPM_BUILD_ROOT%{_cygwin_mandir}/man1/
rm -rf $RPM_BUILD_ROOT%{_cygwin_mandir}/man3/
+# Remove unnecessary Cygwin native binaries and their dependencies
+rm -f $RPM_BUILD_ROOT%{_cygwin_bindir}/*.exe
+rm -f $RPM_BUILD_ROOT%{_cygwin_bindir}/gettext.sh
+rm -f $RPM_BUILD_ROOT%{_cygwin_bindir}/cyggettextlib-*.dll
+rm -f $RPM_BUILD_ROOT%{_cygwin_bindir}/cyggettextsrc-*.dll
+rm -f $RPM_BUILD_ROOT%{_cygwin_libdir}/libgettextlib.*
+rm -f $RPM_BUILD_ROOT%{_cygwin_libdir}/libgettextsrc.*
+rm -fr $RPM_BUILD_ROOT%{_cygwin_libdir}/gettext/
+
+# We intentionally don't ship *.la files
+rm -f $RPM_BUILD_ROOT%{_cygwin_libdir}/*.la
+
%find_lang %{name} --all-name
@@ -93,33 +105,16 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-)
%doc COPYING
%{_cygwin_bindir}/autopoint
-%{_cygwin_bindir}/envsubst.exe
-%{_cygwin_bindir}/gettext.exe
-%{_cygwin_bindir}/gettext.sh
%{_cygwin_bindir}/gettextize
%{_cygwin_bindir}/cygasprintf-0.dll
-%{_cygwin_bindir}/cyggettextlib-0-17.dll
%{_cygwin_bindir}/cyggettextpo-0.dll
-%{_cygwin_bindir}/cyggettextsrc-0-17.dll
%{_cygwin_bindir}/cygintl-8.dll
-%{_cygwin_bindir}/msg*.exe
-%{_cygwin_bindir}/ngettext.exe
-%{_cygwin_bindir}/recode-sr-latin.exe
-%{_cygwin_bindir}/xgettext.exe
%{_cygwin_includedir}/autosprintf.h
%{_cygwin_includedir}/gettext-po.h
%{_cygwin_includedir}/libintl.h
-%{_cygwin_libdir}/gettext
%{_cygwin_libdir}/libasprintf.dll.a
-%{_cygwin_libdir}/libasprintf.la
-%{_cygwin_libdir}/libgettextlib.dll.a
-%{_cygwin_libdir}/libgettextlib.la
%{_cygwin_libdir}/libgettextpo.dll.a
-%{_cygwin_libdir}/libgettextpo.la
-%{_cygwin_libdir}/libgettextsrc.dll.a
-%{_cygwin_libdir}/libgettextsrc.la
%{_cygwin_libdir}/libintl.dll.a
-%{_cygwin_libdir}/libintl.la
%{_cygwin_datadir}/aclocal/*m4
%{_cygwin_datadir}/gettext/
@@ -131,5 +126,8 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Sun Aug 21 2011 Yaakov Selkowitz <cygwin-ports-general@lists.sourceforge.net> - 0.17-2
+- Remove Cygwin EXEs and other files not needed for cross-compiling.
+
* Thu Feb 17 2011 Yaakov Selkowitz <cygwin-ports-general@lists.sourceforge.net> - 0.17-1
- Initial RPM release, largely based on mingw32-gettext.