Репозитории ALT
Последнее обновление в Пт, 24 июля 2020, 14:09:54 +0000 | Пакетов: 24192
en ru
Исходные пакеты в ветвях
свернуть окно
Группа :: Разработка/Python
Исходный пакет: translate-toolkit
Необработанный spec-файл

%define modname translate

Name: translate-toolkit
Version: 2.3.1
Release: alt1

Summary: Tools and API for translation and localization engineering.

License: %gpl2plus
Group: Development/Python
Url: http://toolkit.translatehouse.org/

Source: %name-%version.tar
BuildArch: noarch

BuildPreReq: rpm-build-python
BuildRequires: python-devel python-module-distribute
BuildRequires: python-module-sphinx python-modules-wsgiref python-modules-sqlite3 python-module-BeautifulSoup4

Requires: python-module-diff-match-patch python-module-translate

%setup_python_module %modname

The Translate Toolkit is created by localizers for localizers. It contains
several utilities, as well as an API for building localization tools.

Some of the tools include:

* File format converters
* Quality checking tools
* Tools for counting, grepping, terminology extraction, and pseudo-localization

%package -n python-module-%modname
Summary: Module for building localization tools
Group: Development/Python

%description -n python-module-%modname
Features of the API include:

* Support for multiple file formats
* Language information and language support code (including language detection)
* Code for translation memory, terminology matching and indexed search
* Several helper classes and functions for tools built on the Translate Toolkit.

%package -n %name-doc
Summary: Documentation for Translate Toolkit
Group: Development/Documentation

%description -n %name-doc
Documentation for Translate Toolkit

%setup -n %name-%version

pushd docs
%make man
gzip -9 _build/man/*.1
#no hidden files

find _build -name '.?*' -exec rm '{}' \+


install -d %buildroot%_man1dir
install -pm 644 docs/_build/man/*.gz %buildroot%_man1dir
rm -fr %buildroot%python_sitelibdir/%modname/docs/

%doc docs/{features,history,license}.rst

%files -n python-module-%modname
# Don't pack PyLuceneIndexer since it requires absent PyLucene for work

%exclude %python_sitelibdir/%modname/search/indexing/PyLuceneIndexer*

%files -n %name-doc
%doc docs/_build/html

* Tue Mar 19 2019 Vladimir Didenko <cow at altlinux.ru> 2.3.1-alt1
- New version

* Tue Jul 17 2018 Vladimir Didenko <cow at altlinux.ru> 2.3.0-alt1
- New version

* Mon Jan 15 2018 Vladimir Didenko <cow at altlinux.ru> 2.2.5-alt1
- New version
- add dependency to python-module-translate (closes: #34461)

* Wed Jul 5 2017 Vladimir Didenko <cow at altlinux.ru> 2.2.3-alt1
- New version

* Wed Mar 22 2017 Vladimir Didenko <cow at altlinux.ru> 2.1.0-alt1
- New version

* Thu Mar 16 2017 Vladimir Didenko <cow at altlinux.ru> 2.0.0-alt1
- New version

* Mon Dec 7 2015 Vladimir Didenko <cow at altlinux.ru> 1.13.0-alt1
- Initial build
Проект Geyser основан на коде из проекта Prometheus 2.0, который был доступен по лицензии MIT