/[smecontribs]/rpms/translate-toolkit/contribs8/translate-toolkit.spec
ViewVC logotype

Contents of /rpms/translate-toolkit/contribs8/translate-toolkit.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.12 - (show annotations) (download)
Wed Feb 24 18:18:37 2010 UTC (14 years, 9 months ago) by slords
Branch: MAIN
Changes since 1.11: +78 -30 lines
Initial import

1 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
2
3 Name: translate-toolkit
4 Version: 1.5.3
5 Release: 2%{?dist}
6 Summary: Tools to assist with translation and software localization
7
8 Group: Development/Tools
9 License: GPLv2+
10 URL: http://translate.sourceforge.net/wiki/toolkit/index
11 Source0: http://downloads.sourceforge.net/project/translate/Translate%20Toolkit/%{version}/%{name}-%{version}.tar.bz2
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
14 Patch0: translate-toolkit-1.5.3-stoplist.patch
15 Patch1: translate-toolkit-1.5.0-langmodel_dir.patch
16 Patch2: translate-toolkit-1.5.3-bug1372_filesystem_encoding.patch
17
18 BuildArch: noarch
19 BuildRequires: python-devel
20 # The following are needed for man page generation
21 BuildRequires: python-lxml
22 BuildRequires: python-simplejson
23 BuildRequires: python-vobject
24 Requires: gettext-libs
25 Requires: python-enchant
26 Requires: python-iniparse
27 Requires: python-Levenshtein
28 Requires: python-lxml
29 %ifarch %{ix86}
30 Requires: python-psyco
31 %endif
32 Requires: python-simplejson
33 Requires: python-vobject
34
35
36 %description
37 A set of tools for managing translation and software localization via
38 Gettext PO or XLIFF format files.
39
40 Including:
41 * Convertors: convert from various formats to PO or XLIFF
42 * Formats:
43 * Core localization formats - XLIFF and Gettext PO
44 * Other localization formats - TMX, TBX, Qt Linguist (.ts),
45 Java .properties, Wordfast TM, OmegaT glossary
46 * Compiled formats: Gettext MO, Qt .qm
47 * Other formats - OpenDocument Format (ODF), text, HTML, CSV, INI,
48 wiki (MediaWiki, DokuWiki), iCal
49 * Specialised - OpenOffice.org GSI/SDF, PHP,
50 Mozilla (.dtd, .properties, etc), Symbian,
51 Innosetup, tikiwiki, subtitles
52 * Tools: count, search, debug, segment and pretranslate localization
53 files. Extract terminology. Pseudo-localize
54 * Checkers: validate translations with over 45 checks
55
56 %package devel
57 Summary: Development API for %{name} applications
58 Group: Development/Tools
59 License: GPLv2+
60 Requires: %{name} = %{version}-%{release}
61
62 %description devel
63 The %{name}-devel package contains Translate Toolkit API
64 documentation for developers wishing to build new tools for the
65 toolkit or to use the libraries in other localization tools.
66
67
68 %prep
69 %setup -q
70 %patch0 -p1
71 %patch1 -p1
72 %patch2 -p2
73
74
75 %build
76 %{__python} setup.py build
77
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81 %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
82
83 # create manpages
84 mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
85 for program in $RPM_BUILD_ROOT/%{_bindir}/*; do
86 case $(basename $program) in
87 pocompendium|poen|pomigrate2|popuretext|poreencode|posplit|pocount|poglossary|lookupclient.py|tmserver|build_tmdb)
88 ;;
89 *)
90 LC_ALL=C PYTHONPATH=. $program --manpage \
91 > $RPM_BUILD_ROOT/%{_mandir}/man1/$(basename $program).1 \
92 || rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/$(basename $program).1
93 ;;
94 esac
95 done
96
97 # remove documentation files from site-packages
98 rm -r $RPM_BUILD_ROOT/%{python_sitelib}/translate/doc
99 rm $RPM_BUILD_ROOT/%{python_sitelib}/translate/{COPYING,ChangeLog,LICENSE,README}
100 rm $RPM_BUILD_ROOT/%{python_sitelib}/translate/{convert,filters,tools}/TODO
101 rm $RPM_BUILD_ROOT/%{python_sitelib}/translate/misc/README
102
103 # Move data files to /usr/share
104 mkdir $RPM_BUILD_ROOT/%{_datadir}/translate-toolkit
105 mv $RPM_BUILD_ROOT/%{python_sitelib}/translate/share/stoplist* $RPM_BUILD_ROOT/%{_datadir}/translate-toolkit
106 mv $RPM_BUILD_ROOT/%{python_sitelib}/translate/share/langmodels $RPM_BUILD_ROOT/%{_datadir}/translate-toolkit
107 rmdir $RPM_BUILD_ROOT/%{python_sitelib}/translate/share
108
109
110 %clean
111 rm -rf $RPM_BUILD_ROOT
112
113
114 %files
115 %defattr(-,root,root,-)
116 %doc translate/ChangeLog translate/COPYING translate/README
117 %doc translate/doc/user/toolkit-[a-z]*
118 %{_bindir}/*
119 %{_mandir}/man1/*
120 %{_datadir}/translate-toolkit
121 %{python_sitelib}/translate*
122
123 %files devel
124 %defattr(-,root,root,-)
125 %doc translate/doc/api/*
126
127
128 %changelog
129 * Mon Feb 22 2010 Dwayne Bailey <dwayne@translate.org.za> - 1.5.3-2
130 - Bug #1372: Decode fulesystem paths correctly
131
132 * Thu Feb 4 2010 Dwayne Bailey <dwayne@translate.org.za> - 1.5.3-1
133 - Update to 1.5.3
134 - Plural information for more languages
135 - Cleaner language names (for the benefit of Pootle and Virtaal)
136 - Skype support for prop2po and po2prop [by Filip Miletić]
137 - Small improvement to Qt .ts support
138 - Other small bugfixes
139 - Redo stoplist patch
140 - Drop gaupol and iniparse from BuildRequires
141
142 * Mon Jan 11 2010 Dwayne Bailey <dwayne@translate.org.za> - 1.5.2-1
143 - Update to 1.5.2
144 - Initial support for '#' type comments in the PHP converters (#1298)
145 - Reliability improvements for Pootle concerning Xapian and Python 2.4
146 - A small fix affecting searching in Virtaal
147 - Classify XML tags as editable placeables for Virtaal (#1287)
148 - Correctly handle language codes with '@' in them (like ca@valencia)
149 - Don't unnecessarily add empty 'note' nodes in XLIFF (#1319)
150 - Allow for the translation of 'title' attributes in XML (#1294)
151
152 * Thu Nov 26 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.5.1-1
153 - Update to 1.5.1
154 - Support for OmegaT glossary files
155 - Fixes for the fast (but still experimental) C PO parser
156 - Fixes for the LRU cache
157 - Fixes for correct and faster language identification
158 - Remove backports introduced in 1.5.0-1
159
160 * Tue Nov 24 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.5.0-1
161 - Update to 1.5.0
162 - The tmserver will now be multithreaded if cherrypy is installed
163 - New faster PO parser for testing
164 - Optionally preserve HTML comments in html2po. Bug #1183
165 - Many reliability and API improvements for the upcoming versions of Pootle and Virtaal
166 - Move langmodels into /usr/share/translate-toolkit
167 - Remove backports introduced in 1.4.1-2
168 - Backports:
169 - r13226, r13234 - fix and optimise language identification
170 - r13225 - check for units based on source and target text
171
172 * Fri Nov 6 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.4.1-3
173 - Backport various fixes needed for Pootle 1.3
174 - r12685 index speedup
175 - r12686 id index
176 - r12724 hassuggestion speedup
177 - r12727 msgidcomment
178
179 * Thu Oct 15 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.4.1-2
180 - Retag
181
182 * Thu Oct 15 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.4.1-1
183 - Update to 1.4.1
184 - Better support for printf (including numbered) variables (bug 1118)
185 - Fixes for the upcoming Pootle, including combined searches (bug 1036)
186 - subtle bug in tmserver handling of the percent sign (%) (bug 1101)
187 - obsolete messages seen as translatable (bug 1114)
188 - Drop patch bug#1114 - obsolete messages should not be translatable
189
190 * Mon Aug 24 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.4.0-2
191 - Upstream bug #1114 - obsolete messages should not be translatable
192
193 * Wed Aug 5 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.4.0-1
194 - Update to 1.4.0 final
195
196 * Fri Jul 31 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.4.0-0.5.rc2
197 - Fix tarball reference
198
199 * Fri Jul 31 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.4.0-0.4.rc2
200 - Update to 1.4.0 rc2
201 - Some small fixes for XLIFF support
202 - API documentation has been augmented with diagrams
203
204 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-0.3.rc1
205 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
206
207 * Fri Jul 24 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.4.0-0.2.rc1
208 - Update to 1.4.0 rc1
209
210 * Sat Jun 27 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.4.0-0.1.beta1
211 - Update to 1.4.0 beta1
212
213 * Fri Jun 12 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.3.0-3
214 - Remove old excludes for /usr/bin/*.py{o,c}
215
216 * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-2
217 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
218
219 * Wed Feb 18 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.3.0-1
220 - Update to 1.3.0 final release
221
222 * Tue Feb 3 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.3.0-0.2.rc1
223 - Update to 1.3.0 rc1
224
225 * Thu Jan 22 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.3.0-0.1.beta1
226 - Update to 1.3.0 beta1
227
228 * Sat Dec 6 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2.1-1
229 - Update to 1.2.1
230 - Refresh poterminology patch
231
232 * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.2.0-4
233 - Rebuild for Python 2.6
234
235 * Mon Nov 17 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2.0-3
236 - Rebuild using %%{ix86} instead of i386
237
238 * Mon Nov 17 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2.0-2
239 - python-psyco is only available on i386
240
241 * Wed Nov 12 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2.0-1
242 - Update to 1.2.0
243 - Patch poterminology to read stoplist-en from /usr/share/
244 - Add devel package to include generated Translate Toolkit API documentation
245 - Add dependencies: python-iniparse, python-Levenshtein, python-lxml,
246 python-psyco, python-vobject, gettext-libs
247
248 * Fri Jun 06 2008 Roozbeh Pournader <roozbeh@gmail.com> - 1.1.1-1
249 - update to 1.1.1
250
251 * Mon Jan 21 2008 Jens Petersen <petersen@redhat.com> - 1.0.1-1
252 - update license field to GPLv2+
253 - update to 1.0.1 with changes from Dwayne Bailey (#315021):
254
255 * Thu Dec 20 2007 Dwayne Bailey <dwayne@translate.org.za>
256 - Update spec to upstream 1.0.1
257 - Update patch for Python 2.5 ElementTree
258 - Cleanup the doc installation
259 - Create man pages
260 - Update description
261
262 * Sat May 05 2007 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.11-1
263 - Update to upstream 0.11, adding HTML documentation
264
265 * Tue Jan 09 2007 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.10.1-4
266 - Patch to use Python 2.5's built-in ElementTree
267
268 * Sat Dec 30 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.10.1-3
269 - Rebuild to fix dependency problem
270
271 * Sat Dec 09 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.10.1-2
272 - Rebuild for Python 2.5
273
274 * Thu Nov 09 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.10.1-1
275 - Update to upstream 0.10.1
276 - Cleanup based on latest Python packaging guidelines
277
278 * Wed Nov 08 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-2
279 - Rebuild to get into Rawhide
280
281 * Mon Feb 20 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-1
282 - Update to final 0.8
283
284 * Sun Feb 19 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-0.10.rc6
285 - Fix a typo in po2dtd that made po2moz fail
286
287 * Tue Feb 14 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-0.9.rc6
288 - Rebuild for Fedora Extras 5
289
290 * Tue Feb 07 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-0.8.rc6
291 - Require python-enchant for spellchecking support in pofilter
292
293 * Sat Feb 04 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-0.7.rc6
294 - Rebuild
295
296 * Sat Feb 04 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-0.6.rc6
297 - Update to 0.8rc6
298
299 * Sat Jan 21 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-0.5.rc5
300 - Use sed instead of dos2unix
301
302 * Mon Jan 09 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-0.4.rc5
303 - Own forgotten subdirectories
304
305 * Mon Jan 09 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-0.3.rc5
306 - Fix the jToolkit requirement
307
308 * Sun Jan 08 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-0.2.rc5
309 - Add %%{?dist} tag
310
311 * Sat Jan 07 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-0.1.rc5
312 - Initial packaging

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed