summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2011-02-18 02:36:30 -0600
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>2011-02-18 02:36:30 -0600
commitb132d56106be677746d17e72c2ae1a59931d8088 (patch)
treefed34077e2ac1c0137904a8516eb1c7686f65c3d
downloadcygwin-gettext-b132d56106be677746d17e72c2ae1a59931d8088.zip
cygwin-gettext-b132d56106be677746d17e72c2ae1a59931d8088.tar.gz
cygwin-gettext-b132d56106be677746d17e72c2ae1a59931d8088.tar.xz
0.17-1
-rw-r--r--cygwin-gettext.spec135
-rw-r--r--sources1
2 files changed, 136 insertions, 0 deletions
diff --git a/cygwin-gettext.spec b/cygwin-gettext.spec
new file mode 100644
index 0000000..b45445e
--- /dev/null
+++ b/cygwin-gettext.spec
@@ -0,0 +1,135 @@
+%define __strip %{_cygwin_strip}
+%define __objdump %{_cygwin_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_cygwin_findrequires}
+%define __find_provides %{_cygwin_findprovides}
+%define __debug_install_post %{_cygwin_debug_install_post}
+
+Name: cygwin-gettext
+Version: 0.17
+Release: 1%{?dist}
+Summary: GNU libraries and utilities for producing multi-lingual messages
+
+License: GPLv2+ and LGPLv2+
+Group: Development/Libraries
+URL: http://www.gnu.org/software/gettext/
+Source0: http://ftp.gnu.org/pub/gnu/gettext/gettext-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+
+BuildRequires: cygwin-filesystem
+BuildRequires: cygwin
+BuildRequires: cygwin-gcc
+BuildRequires: cygwin-gcc-c++
+BuildRequires: cygwin-binutils
+BuildRequires: cygwin-libiconv
+
+# Possible extra BRs. These are used if available, but
+# not required just for building.
+#BuildRequires: cygwin-libxml2
+#BuildRequires: cygwin-expat
+#BuildRequires: cygwin-glib2
+
+
+%description
+Cygwin Gettext library
+
+
+%package static
+Summary: Static version of the Cygwin Gettext library
+Requires: %{name} = %{version}-%{release}
+Group: Development/Libraries
+
+%description static
+Static version of the Cygwin Gettext library.
+
+
+%{?_cygwin_debug_package}
+
+
+%prep
+%setup -q -n gettext-%{version}
+
+rm -f m4/libtool.m4 gettext-tools/gnulib-m4/openmp.m4
+touch m4/libtool.m4 gettext-tools/gnulib-m4/openmp.m4
+libtoolize --copy --force
+./autogen.sh --quick --skip-gnulib
+
+
+%build
+%{_cygwin_configure} \
+ gl_cv_cc_visibility=no \
+ --disable-java \
+ --disable-native-java \
+ --disable-csharp \
+ --disable-openmp \
+ --enable-static --enable-shared \
+ --enable-threads=win32 \
+ --without-emacs
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make DESTDIR=$RPM_BUILD_ROOT install
+rm -f $RPM_BUILD_ROOT%{_cygwin_datadir}/locale/locale.alias
+rm -f $RPM_BUILD_ROOT%{_cygwin_libdir}/charset.alias
+
+# This documentation is available in base gettext-devel.
+rm -rf $RPM_BUILD_ROOT%{_cygwin_docdir}
+rm -rf $RPM_BUILD_ROOT%{_cygwin_infodir}
+rm -rf $RPM_BUILD_ROOT%{_cygwin_mandir}/man1/
+rm -rf $RPM_BUILD_ROOT%{_cygwin_mandir}/man3/
+
+%find_lang %{name} --all-name
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files -f %{name}.lang
+%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/
+
+%files static
+%defattr(-,root,root,-)
+%{_cygwin_libdir}/libasprintf.a
+%{_cygwin_libdir}/libgettextpo.a
+%{_cygwin_libdir}/libintl.a
+
+
+%changelog
+* Thu Feb 17 2011 Yaakov Selkowitz <cygwin-ports-general@lists.sourceforge.net> - 0.17-1
+- Initial RPM release, largely based on mingw32-gettext.
diff --git a/sources b/sources
new file mode 100644
index 0000000..e072641
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+58a2bc6d39c0ba57823034d55d65d606 gettext-0.17.tar.gz