Update to version 0.0.3
- Move the examples from the README to the source code - Some tweaks for the translation of Serbian - Prefix all global functions and global variables which are internal with “_” - Rename country → territory, countries → territories in keyboards.xml - Add keyboard “in(eng)” and make it the default for all Indian languages - Add a comment stating which functions should be considered public API - Add a supports_ascii() function - Run Python’s doctest also on langtable.py, not only the extra test_cases.txt
This commit is contained in:
parent
d9fbd68024
commit
5ac090dbf0
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
/langtable-0.0.1.tar.gz
|
||||
/langtable-0.0.2.tar.gz
|
||||
/langtable-0.0.3.tar.gz
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
Name: langtable
|
||||
Version: 0.0.2
|
||||
Version: 0.0.3
|
||||
Release: 1%{?dist}
|
||||
Summary: For guessing reasonable defaults for locale, keyboard, territory, …
|
||||
Summary: Guessing reasonable defaults for locale, keyboard layout, territory, and language.
|
||||
Group: Development/Tools
|
||||
# the translations in languages.xml and territories.xml are (mostly)
|
||||
# imported from CLDR and are thus under the Unicode license, the
|
||||
# short name for this license is "MIT", see:
|
||||
# https://fedoraproject.org/wiki/Licensing:MIT?rd=Licensing/MIT#Modern_Style_without_sublicense_.28Unicode.29
|
||||
License: GPLv3+ and MIT
|
||||
License: GPLv3+
|
||||
URL: https://github.com/mike-fabian/langtable
|
||||
Source0: http://mfabian.fedorapeople.org/langtable/%{name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
@ -15,8 +15,8 @@ BuildRequires: python-lxml
|
||||
BuildRequires: python2-devel
|
||||
|
||||
%description
|
||||
langtable is used to guess reasonable defaults for locale, keyboard,
|
||||
territory, …, if part of that information is already known. For
|
||||
langtable is used to guess reasonable defaults for locale, keyboard layout,
|
||||
territory, and language, if part of that information is already known. For
|
||||
example, guess the territory and the keyboard layout if the language
|
||||
is known or guess the language and keyboard layout if the territory is
|
||||
already known.
|
||||
@ -24,6 +24,7 @@ already known.
|
||||
%package python
|
||||
Summary: Python module to query the langtable-data
|
||||
Group: Development/Tools
|
||||
License: GPLv3+
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: %{name}-data = %{version}-%{release}
|
||||
Requires: python-lxml
|
||||
@ -35,6 +36,7 @@ from langtable-data.
|
||||
%package data
|
||||
Summary: Data files for langtable
|
||||
Group: Development/Tools
|
||||
License: GPLv3+ and MIT
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description data
|
||||
@ -44,14 +46,14 @@ This package contains the data files for langtable.
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
perl -pi -e "s%datadir = '(.*)'%datadir = '%{_datadir}/langtable'%" langtable.py
|
||||
perl -pi -e "s,_datadir = '(.*)',_datadir = '%{_datadir}/langtable'," langtable.py
|
||||
%{__python} setup.py build
|
||||
|
||||
%install
|
||||
%{__python} setup.py install --skip-build --prefix=%{_prefix} --install-data=%{_datadir}/langtable --root $RPM_BUILD_ROOT
|
||||
|
||||
%check
|
||||
(cd $RPM_BUILD_DIR/%{name}-%{version}/data; PYTHONPATH=.. %{__python} -m doctest ../test_cases.txt)
|
||||
(cd $RPM_BUILD_DIR/%{name}-%{version}/data; PYTHONPATH=.. %{__python} -m doctest ../test_cases.txt; %{__python} ../langtable.py)
|
||||
|
||||
%files
|
||||
%doc README COPYING ChangeLog unicode-license.txt test_cases.txt
|
||||
@ -63,6 +65,17 @@ perl -pi -e "s%datadir = '(.*)'%datadir = '%{_datadir}/langtable'%" langtable.py
|
||||
%{_datadir}/langtable/*
|
||||
|
||||
%changelog
|
||||
* Thu May 16 2013 Mike FABIAN <mfabian@redhat.com> - 0.0.3-1
|
||||
- Update to 0.0.3
|
||||
- Move the examples from the README to the source code
|
||||
- Some tweaks for the translation of Serbian
|
||||
- Prefix all global functions and global variables which are internal with “_”
|
||||
- Rename country → territory, countries → territories in keyboards.xml
|
||||
- Add keyboard “in(eng)” and make it the default for all Indian languages
|
||||
- Add a comment stating which functions should be considered public API
|
||||
- Add a supports_ascii() function
|
||||
- Run Python’s doctest also on langtable.py, not only the extra test_cases.txt
|
||||
|
||||
* Fri May 10 2013 Mike FABIAN <mfabian@redhat.com> - 0.0.2-1
|
||||
- update to 0.0.2
|
||||
- Prefer values for language, script, and territory found in languageId over those found in the other parameters
|
||||
|
||||
Loading…
Reference in New Issue
Block a user