Package translate-toolkit: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | %define modname translate Name: translate-toolkit Version: 3.0.0 Release: alt2 Summary: Tools and API for translation and localization engineering. License: %gpl2plus Group: Development/Python Url: http://toolkit.translatehouse.org/ Source: %name-%version.tar Patch: %name-%version-%release.patch BuildArch: noarch BuildRequires(pre): rpm-build-licenses BuildRequires(pre): rpm-build-python3 BuildRequires: python3-devel BuildRequires: python3-module-BeautifulSoup4 BuildRequires: python3-module-sphinx BuildRequires: python3-module-Levenshtein Requires: python3-module-%modname = %version-%release # it is not really required for the work %add_python3_req_skip setuptools # Remove garbage dependency %filter_from_requires /python-module-setuptools/d # these modules used in tools and marked deprecated by upstream %add_python3_req_skip l20n.format.parser %add_python3_req_skip l20n.format.serializer %description 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 python3-module-%modname Summary: Module for building localization tools Group: Development/Python Obsoletes: python-module-%modname %description -n python3-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 %prep %setup -n %name-%version %patch -p1 %build %python3_build pushd docs %make man gzip -9 _build/man/*.1 #no hidden files find _build -name '.?*' -exec rm '{}' \+ popd %install %python3_install install -d %buildroot%_man1dir install -pm 644 docs/_build/man/*.gz %buildroot%_man1dir rm -fr %buildroot%python3_sitelibdir/%modname/docs/ # mercurial is an optional dependency. Code could work without it %filter_from_requires /mercurial/d %files %doc docs/{features,history,license}.rst %{_bindir}/* %_man1dir/* %files -n python3-module-%modname %python3_sitelibdir/%modname %python3_sitelibdir/*.egg-info %files -n %name-doc %doc docs/_build/html %changelog * Tue Sep 15 2020 Vladimir Didenko <cow@altlinux.ru> 3.0.0-alt2 - Don't require mercurial (closes: #38939) * Tue Jun 23 2020 Vladimir Didenko <cow@altlinux.ru> 3.0.0-alt1 - New version * Tue May 12 2020 Vladimir Didenko <cow@altlinux.ru> 2.5.1-alt1 - New version * Tue Feb 4 2020 Vladimir Didenko <cow@altlinux.ru> 2.5.0-alt1 - New version * Tue Sep 24 2019 Vladimir Didenko <cow@altlinux.ru> 2.4.0-alt2 - Remove garbage dependency on python-module-setuptools * Tue Sep 24 2019 Vladimir Didenko <cow@altlinux.ru> 2.4.0-alt1 - New version - Switch to Python 3 * Tue Mar 19 2019 Vladimir Didenko <cow@altlinux.ru> 2.3.1-alt1 - New version * Tue Jul 17 2018 Vladimir Didenko <cow@altlinux.ru> 2.3.0-alt1 - New version * Mon Jan 15 2018 Vladimir Didenko <cow@altlinux.ru> 2.2.5-alt1 - New version - add dependency to python-module-translate (closes: #34461) * Wed Jul 5 2017 Vladimir Didenko <cow@altlinux.ru> 2.2.3-alt1 - New version * Wed Mar 22 2017 Vladimir Didenko <cow@altlinux.ru> 2.1.0-alt1 - New version * Thu Mar 16 2017 Vladimir Didenko <cow@altlinux.ru> 2.0.0-alt1 - New version * Mon Dec 7 2015 Vladimir Didenko <cow@altlinux.ru> 1.13.0-alt1 - Initial build |