forked from pool/gettext-runtime
e89495bb4e
Version 0.18.1 - June 2010 * msggrep: A '$' anchor in a regular expression now also matches the end of the string, even if it does not end in a newline. * Dependencies: The libraries and programs are now linked with libunistring if this library is already installed. * Installation options: The configure option --with-cvs is deprecated. The 'autopoint' program will now use the 'git' program by default to compress its archive. If the configure option --without-git is specified, 'autopoint' will not rely on 'git', but will instead rely on a locally installed 3 MB large archive. Version 0.18 - May 2010 * PO file format: There is a new field 'Language' in the header entry. It denotes the language code (plus optional country code) for the PO file. This field can be used by automated tools, such as spell checkers. It is expected to be more reliable than looking at the file name or at the 'Language-Team' field in the header entry. msgmerge, msgcat, msgen have a new option --lang that allows to specify this field. Additionally, msgmerge fills in this new field by looking at the 'Language-Team' field (if the --lang option is not given). * xgettext and PO file format: For messages with plural forms, programmers can inform the translators about the range of possible values of the numeric argument, like this: /* xgettext: range: 0..15 */ OBS-URL: https://build.opensuse.org/package/show/Base:System/gettext-runtime?expand=0&rev=17
133 lines
4.0 KiB
RPMSpec
133 lines
4.0 KiB
RPMSpec
#
|
|
# spec file for package gettext-csharp (Version 0.18.1.1)
|
|
#
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: gettext-csharp
|
|
BuildRequires: fdupes mono-devel perl-libintl-perl tcl
|
|
Requires: mono
|
|
Url: http://www.gnu.org/software/gettext/
|
|
License: LGPLv2.1+
|
|
Group: Development/Tools/Other
|
|
AutoReqProv: on
|
|
Version: 0.18.1.1
|
|
Release: 1
|
|
Summary: Native Language Support (NLS) for C#
|
|
PreReq: %{install_info_prereq}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Source: gettext-%{version}.tar.bz2
|
|
Source1: gettext-rpmlintrc
|
|
Source2: suse-start-po-mode.el
|
|
Source3: gettext-linkdupes.sh
|
|
Patch: gettext-0.12.1-sigfpe.patch
|
|
Patch2: gettext-0.12.1-gettextize.patch
|
|
Patch3: gettext-codecleanup.patch
|
|
Patch4: po-mode.diff
|
|
Patch5: gettext-initialize_vars.patch
|
|
Patch6: gettext-0.15-docdir.diff
|
|
Patch7: gettext-autotools.patch
|
|
Patch9: gettext-needlessly_init_vars.patch
|
|
|
|
%description
|
|
Mono with its 'resgen' program uses a design that Microsoft created and
|
|
that gives the power to the software vendor and not to the user: it
|
|
doesn't allow the end-user to create his own localisations for existing
|
|
programs. As documented in the gettext manual:
|
|
|
|
The advantages of the .dll' format over the .resources' format are:
|
|
|
|
1. 1. Freedom to localize: Users can add their own translations to an
|
|
application after it has been built and distributed. Whereas
|
|
when the programmer uses a ResourceManager' constructor provided
|
|
by the system, the set of .resources' files for an application
|
|
must be specified when the application is built and cannot be
|
|
extended afterwards.
|
|
|
|
2., 3., 4. ...
|
|
|
|
The included GNU.Gettext.dll gives the user this freedom back and the
|
|
also included msgfmt.net.exe and msgunfmt.net.exe handle PO files more
|
|
reliably than 'resgen'.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Bruno Haible <bruno@clisp.org>
|
|
|
|
%prep
|
|
%setup -q -n gettext-%{version}
|
|
%patch
|
|
%patch2
|
|
%patch3
|
|
%patch4
|
|
%patch5
|
|
%patch6
|
|
%patch7
|
|
%patch9
|
|
|
|
%build
|
|
export CFLAGS="%{optflags} -pipe -W -Wall -Dgcc_is_lint"
|
|
export CXXFLAGS="%{optflags} -pipe -W -Wall -Dgcc_is_lint"
|
|
autoreconf -fiv
|
|
%configure --enable-shared --enable-csharp
|
|
make GMSGFMT=../src/msgfmt
|
|
|
|
%install
|
|
export LC_CTYPE=ISO-8859-15
|
|
make install DESTDIR=%{buildroot}
|
|
mkdir examples
|
|
mv %{buildroot}/%{_datadir}/doc/gettext/examples/*csharp* examples
|
|
mv %{buildroot}/%{_datadir}/doc/gettext/csharpdoc csharpdoc
|
|
cd examples
|
|
fdupes -r *|while read dupe; do
|
|
if [ -z "$dupe" ]; then
|
|
startlink=
|
|
elif [ -z "$startlink" ]; then
|
|
startlink="$dupe"
|
|
else
|
|
ln -f "$startlink" "$dupe"
|
|
fi
|
|
done
|
|
cd ..
|
|
rm -rf %{buildroot}/%{_datadir}/*
|
|
mkdir -p %{buildroot}/%{_defaultdocdir}/%{name}
|
|
mv examples %{buildroot}/%{_defaultdocdir}/%{name}
|
|
mv csharpdoc %{buildroot}/%{_defaultdocdir}/%{name}
|
|
# exclude files packaged via other spec files
|
|
rm -Rf %{buildroot}/%_bindir
|
|
rm -f %{buildroot}/%_libdir/lib*
|
|
rm -f %{buildroot}/%_libdir/gettext/hostname
|
|
rm -f %{buildroot}/%_libdir/gettext/project-id
|
|
rm -f %{buildroot}/%_libdir/gettext/urlget
|
|
rm -f %{buildroot}/%_libdir/gettext/user-email
|
|
rm -Rf %{buildroot}/%_includedir
|
|
rm -f %{buildroot}/%_libdir/preloadable_libintl.so
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc %{_defaultdocdir}/%{name}
|
|
%_libdir/GNU.Gettext.dll
|
|
%_libdir/gettext/msgfmt.net.exe
|
|
%_libdir/gettext/msgunfmt.net.exe
|
|
|
|
%changelog
|