#
-# TODO: C# (pnet or mono must be chosen)
-#
# Conditional build:
%bcond_without asprintf # without libasprintf C++ library
%bcond_without xemacs # without po-mode for xemacs
%bcond_with gcj # with Java support by gcj requires gcj 3.x, but not 3.0.4+ (broken for now))
%bcond_with javac # with Java support by some javac
+%bcond_without dotnet # without .NET support
#
+%include /usr/lib/rpm/macros.mono
+
+%ifnarch %{ix86} %{x8664} arm hppa ppc s390 s390x
+%undefine with_dotnet
+%endif
+
%undefine with_xemacs
%define build_java %{?with_gcj:1}%{!?with_gcj:%{?with_javac:1}%{!?with_javac:0}}
Summary(uk): â¦Â̦ÏÔÅËÉ ÔÁ ÕÔÉ̦ÔÉ ÄÌÑ Ð¦ÄÔÒÉÍËÉ ÎÁæÏÎÁÌØÎÉÈ ÍÏ×
Name: gettext
Version: 0.14.5
-Release: 1
+Release: 2
License: LGPL (runtime), GPL (tools)
Group: Development/Tools
Source0: ftp://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.gz
%{?with_javac:BuildRequires: jdk >= 1.1}
%{?with_asprintf:BuildRequires: libstdc++-devel}
BuildRequires: libtool >= 1:1.4.2-9
+%{?with_dotnet:BuildRequires: mono}
BuildRequires: texinfo
%{?with_xemacs:BuildRequires: xemacs}
Obsoletes: gettext-base
configure.ac i kopiuje do pakietu pliki infrastruktury nale¿±ce do tej
wersji.
+%package -n dotnet-gettext
+Summary: GNU gettext for C#
+Summary(pl): GNU gettext dla C#
+Group: Development/Tools
+
+%description -n dotnet-gettext
+GNU gettext for C#.
+
+%description -n dotnet-gettext -l pl
+GNU gettext dla C#.
+
%prep
%setup -q
%patch0 -p1
%configure \
%{?with_xemacs:--with-lispdir=%{_datadir}/xemacs-packages/lisp/po-mode} \
--enable-nls \
- --disable-csharp \
+ %{!?with_dotnet:--disable-csharp} \
+ %{?with_dotnet:--enable-csharp=mono} \
--without-included-gettext
%{__make}
%{_mandir}/man1/envsubst.1*
%{_mandir}/man1/gettext.1*
%{_mandir}/man1/ngettext.1*
+%dir %{_libdir}/gettext
%dir %{_datadir}/gettext
%files devel -f %{name}-tools.lang
# libgettextpo is for other programs, not used by gettext tools themselves
%attr(755,root,root) %{_libdir}/libgettextpo.so.*.*.*
%attr(755,root,root) %{_libdir}/preloadable_libintl.so
-%dir %{_libdir}/gettext
%attr(755,root,root) %{_libdir}/gettext/hostname
%attr(755,root,root) %{_libdir}/gettext/project-id
%attr(755,root,root) %{_libdir}/gettext/urlget
%attr(755,root,root) %{_bindir}/autopoint
%{_datadir}/gettext/archive.tar.gz
%{_mandir}/man1/autopoint.1*
+
+%files -n dotnet-gettext
+%defattr(644,root,root,755)
+%{_libdir}/GNU.Gettext.dll
+%{_libdir}/gettext/msgfmt.net.exe
+%{_libdir}/gettext/msgunfmt.net.exe