SPECS: gettext.spec - dotnet support - rel 2

wolf wolf at pld-linux.org
Mon Sep 12 19:33:29 CEST 2005


Author: wolf                         Date: Mon Sep 12 17:33:29 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- dotnet support
- rel 2

---- Files affected:
SPECS:
   gettext.spec (1.120 -> 1.121) 

---- Diffs:

================================================================
Index: SPECS/gettext.spec
diff -u SPECS/gettext.spec:1.120 SPECS/gettext.spec:1.121
--- SPECS/gettext.spec:1.120	Mon May 23 20:40:12 2005
+++ SPECS/gettext.spec	Mon Sep 12 19:33:24 2005
@@ -1,14 +1,19 @@
 # $Revision$, $Date$
 #
-# 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}}
@@ -24,7 +29,7 @@
 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
@@ -40,6 +45,7 @@
 %{?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
@@ -271,6 +277,17 @@
 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
@@ -314,7 +331,8 @@
 %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}
 
@@ -372,6 +390,7 @@
 %{_mandir}/man1/envsubst.1*
 %{_mandir}/man1/gettext.1*
 %{_mandir}/man1/ngettext.1*
+%dir %{_libdir}/gettext
 %dir %{_datadir}/gettext
 
 %files devel -f %{name}-tools.lang
@@ -385,7 +404,6 @@
 # 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
@@ -470,12 +488,22 @@
 %{_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
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.121  2005/09/12 17:33:24  wolf
+- dotnet support
+- rel 2
+
 Revision 1.120  2005/05/23 18:40:12  qboosh
 - updated to 0.14.5 (format adjustments for gcc 4)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/gettext.spec?r1=1.120&r2=1.121&f=u




More information about the pld-cvs-commit mailing list