]> git.pld-linux.org Git - packages/gettext.git/commitdiff
- dotnet support auto/ac/gettext-0_14_5-2
authorwolf <wolf@pld-linux.org>
Mon, 12 Sep 2005 17:33:24 +0000 (17:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- rel 2

Changed files:
    gettext.spec -> 1.121

gettext.spec

index 8d07d4443e13fdabbc3fbee74f091bf53830210a..8ee3f0674dcf211db064783db7208eccdbdead41 100644 (file)
@@ -1,13 +1,18 @@
 #
-# 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}}
@@ -23,7 +28,7 @@ Summary(tr):  Deste
 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
@@ -39,6 +44,7 @@ BuildRequires:        automake >= 1:1.7.5
 %{?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
@@ -270,6 +276,17 @@ postaci AM_GNU_GETTEXT_VERSION(VERSION) w pliku configure.in lub
 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
@@ -313,7 +330,8 @@ cd ..
 %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}
 
@@ -371,6 +389,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/envsubst.1*
 %{_mandir}/man1/gettext.1*
 %{_mandir}/man1/ngettext.1*
+%dir %{_libdir}/gettext
 %dir %{_datadir}/gettext
 
 %files devel -f %{name}-tools.lang
@@ -384,7 +403,6 @@ rm -rf $RPM_BUILD_ROOT
 # 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
@@ -468,3 +486,9 @@ rm -rf $RPM_BUILD_ROOT
 %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
This page took 0.231155 seconds and 4 git commands to generate.