2007-11-23 00:56:17 +01:00
|
|
|
#
|
2011-10-01 04:58:52 +02:00
|
|
|
# spec file for package gettext-csharp
|
2007-11-23 00:56:17 +01:00
|
|
|
#
|
2015-02-04 15:33:23 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-11-23 00:56:17 +01:00
|
|
|
#
|
2008-10-13 16:22:50 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-11-23 00:56:17 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-04-10 13:16:55 +02:00
|
|
|
|
2007-11-23 00:56:17 +01:00
|
|
|
Name: gettext-csharp
|
2012-07-02 13:04:44 +02:00
|
|
|
BuildRequires: fdupes
|
- Update to version 0.18.2.1: Version 0.18.2 - December 2012
+ xgettext now understands the block comment syntax of Guile 2.0.
+ libgettextpo library:
* The initial msgstr of a new message is now "", not NULL.
* Bug fixes in the functions po_message_is_range,
po_file_check_all, po_message_check_all.
+ Installation options:
The configure options --with-xz and --with-bzip2 can be used to
specify alternate compression methods for the archive used by
the 'autopoint' program. These options, together with
--with-git, allow to trade dependencies against installed
package size. --with-xz has the highest compression rate,
followed by --with-git, followed by --with-bzip2.
+ Autoconf macros:
* The autoconf macros installed by 'gettextize' now work with
the forthcoming Automake 1.14 and require Autoconf version
2.60 or newer.
+ Portability:
* Building on MacOS X 10.7, Cygwin 1.7.10, and newer 64-bit
mingw is now supported.
- Remove obsolete patches:
+ getext-stdio.in.patch
+ gettext-codecleanup.patch
- Update to version 0.18.2.1: Version 0.18.2 - December 2012
+ xgettext now understands the block comment syntax of Guile 2.0.
+ libgettextpo library:
* The initial msgstr of a new message is now "", not NULL.
* Bug fixes in the functions po_message_is_range,
po_file_check_all, po_message_check_all.
OBS-URL: https://build.opensuse.org/package/show/Base:System/gettext-runtime?expand=0&rev=69
2013-06-12 11:36:12 +02:00
|
|
|
BuildRequires: gcc-c++
|
2013-06-15 17:31:42 +02:00
|
|
|
BuildRequires: glib2-devel
|
|
|
|
BuildRequires: libcroco-devel
|
2011-10-02 21:19:40 +02:00
|
|
|
BuildRequires: libtool
|
2013-06-15 17:31:42 +02:00
|
|
|
BuildRequires: libxml2-devel
|
2012-07-02 13:04:44 +02:00
|
|
|
BuildRequires: mono-devel
|
|
|
|
BuildRequires: perl-libintl-perl
|
|
|
|
BuildRequires: tcl
|
2014-06-11 12:44:03 +02:00
|
|
|
BuildRequires: xz
|
2007-11-23 00:56:17 +01:00
|
|
|
Requires: mono
|
|
|
|
Url: http://www.gnu.org/software/gettext/
|
2015-09-17 14:57:40 +02:00
|
|
|
Version: 0.19.6
|
2012-07-02 13:04:44 +02:00
|
|
|
Release: 0
|
2007-11-23 00:56:17 +01:00
|
|
|
Summary: Native Language Support (NLS) for C#
|
2012-07-02 13:04:44 +02:00
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: Development/Tools/Other
|
2007-11-23 00:56:17 +01:00
|
|
|
PreReq: %{install_info_prereq}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-06-11 12:44:03 +02:00
|
|
|
Source: http://ftp.gnu.org/gnu/gettext/gettext-%{version}.tar.xz
|
2007-11-23 00:56:17 +01:00
|
|
|
Source1: gettext-rpmlintrc
|
|
|
|
Source2: suse-start-po-mode.el
|
|
|
|
Source3: gettext-linkdupes.sh
|
2014-06-11 12:44:03 +02:00
|
|
|
Source4: http://ftp.gnu.org/gnu/gettext/gettext-%{version}.tar.xz.sig
|
2014-01-13 07:03:11 +01:00
|
|
|
Source5: %name.keyring
|
2007-11-23 00:56:17 +01:00
|
|
|
Patch: gettext-0.12.1-sigfpe.patch
|
|
|
|
Patch2: gettext-0.12.1-gettextize.patch
|
2012-09-24 17:29:07 +02:00
|
|
|
Patch4: gettext-po-mode.diff
|
2007-11-23 00:56:17 +01:00
|
|
|
Patch5: gettext-initialize_vars.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'.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n gettext-%{version}
|
|
|
|
%patch
|
|
|
|
%patch2
|
|
|
|
%patch4
|
|
|
|
%patch5
|
|
|
|
%patch9
|
|
|
|
|
|
|
|
%build
|
2010-12-21 13:54:03 +01:00
|
|
|
export CFLAGS="%{optflags} -pipe -W -Wall -Dgcc_is_lint"
|
|
|
|
export CXXFLAGS="%{optflags} -pipe -W -Wall -Dgcc_is_lint"
|
2014-06-05 07:15:03 +02:00
|
|
|
# expect a couple "You should update your `aclocal.m4' by running aclocal."
|
|
|
|
#autoreconf -fiv
|
|
|
|
#sh autogen.sh
|
2007-11-23 00:56:17 +01:00
|
|
|
%configure --enable-shared --enable-csharp
|
2012-09-24 17:29:07 +02:00
|
|
|
make %{?_smp_mflags} GMSGFMT=../src/msgfmt V=1
|
2007-11-23 00:56:17 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
export LC_CTYPE=ISO-8859-15
|
2012-09-24 17:29:07 +02:00
|
|
|
%makeinstall
|
2007-11-23 00:56:17 +01:00
|
|
|
mkdir examples
|
2010-12-21 13:54:03 +01:00
|
|
|
mv %{buildroot}/%{_datadir}/doc/gettext/examples/*csharp* examples
|
|
|
|
mv %{buildroot}/%{_datadir}/doc/gettext/csharpdoc csharpdoc
|
2007-11-23 00:56:17 +01:00
|
|
|
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 ..
|
2010-12-21 13:54:03 +01:00
|
|
|
rm -rf %{buildroot}/%{_datadir}/*
|
|
|
|
mkdir -p %{buildroot}/%{_defaultdocdir}/%{name}
|
|
|
|
mv examples %{buildroot}/%{_defaultdocdir}/%{name}
|
|
|
|
mv csharpdoc %{buildroot}/%{_defaultdocdir}/%{name}
|
2009-07-29 17:31:31 +02:00
|
|
|
# exclude files packaged via other spec files
|
2010-12-21 13:54:03 +01:00
|
|
|
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
|
2015-07-16 11:52:43 +02:00
|
|
|
rm -f %{buildroot}/%_libdir/gettext/cldr-plurals
|
2010-12-21 13:54:03 +01:00
|
|
|
rm -Rf %{buildroot}/%_includedir
|
|
|
|
rm -f %{buildroot}/%_libdir/preloadable_libintl.so
|
2007-11-23 00:56:17 +01:00
|
|
|
|
|
|
|
%clean
|
2010-12-21 13:54:03 +01:00
|
|
|
rm -rf %{buildroot}
|
2007-11-23 00:56:17 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{_defaultdocdir}/%{name}
|
|
|
|
%_libdir/GNU.Gettext.dll
|
|
|
|
%_libdir/gettext/msgfmt.net.exe
|
|
|
|
%_libdir/gettext/msgunfmt.net.exe
|
|
|
|
|
|
|
|
%changelog
|