1 |
# $Id: translate-toolkit.spec,v 1.6 2008/10/19 22:04:05 slords Exp $ |
# $Id: translate-toolkit.spec,v 1.8 2008/11/25 16:20:36 slords Exp $ |
2 |
# Authority: slords |
# Authority: slords |
3 |
# Name: Shad L. Lords |
# Name: Shad L. Lords |
4 |
|
|
5 |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
6 |
|
|
|
%define prerelease "" |
|
|
|
|
7 |
Name: translate-toolkit |
Name: translate-toolkit |
8 |
Version: 1.2.0 |
Version: 1.4.1 |
9 |
Release: 1%{?dist} |
Release: 1%{?dist} |
10 |
Summary: Tools to assist with localization |
Summary: Tools to assist with translation and software localization |
11 |
|
|
12 |
Group: Development/Tools |
Group: Development/Tools |
13 |
License: GPLv2+ |
License: GPLv2+ |
14 |
URL: http://translate.sourceforge.net/wiki/toolkit/index |
URL: http://translate.sourceforge.net/wiki/toolkit/index |
15 |
Source0: http://downloads.sourceforge.net/translate/%{name}-%{version}.tar.bz2 |
Source0: http://downloads.sourceforge.net/project/translate/Translate%20Toolkit/1.4.0/%{name}-%{version}.tar.bz2 |
|
#Source0: http://translate.sourceforge.net/snapshots/%{name}-%{version}%{prerelease}/%{name}-%{version}%{prerelease}.tar.bz2 |
|
16 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
17 |
|
|
18 |
Patch0: translate-poterminology-stoplist.diff |
Patch0: translate-toolkit-1.2.1-stoplist.patch |
19 |
|
|
20 |
BuildArch: noarch |
BuildArch: noarch |
21 |
BuildRequires: python-devel |
BuildRequires: python-devel |
22 |
|
# The following are needed for man page generation |
23 |
|
BuildRequires: python-lxml |
24 |
|
BuildRequires: python-iniparse |
25 |
|
BuildRequires: python-simplejson |
26 |
|
BuildRequires: python-vobject |
27 |
|
Requires: gettext-libs |
28 |
Requires: python-enchant |
Requires: python-enchant |
29 |
Requires: python-psyco |
Requires: python-iniparse |
30 |
Requires: python-Levenshtein |
Requires: python-Levenshtein |
31 |
Requires: python-lxml |
Requires: python-lxml |
32 |
Requires: python-iniparse |
%ifarch %{ix86} |
33 |
|
Requires: python-psyco |
34 |
|
%endif |
35 |
|
Requires: python-simplejson |
36 |
Requires: python-vobject |
Requires: python-vobject |
|
Requires: gettext-devel |
|
37 |
|
|
38 |
|
|
39 |
%description |
%description |
40 |
A set of tools for managing localization via Gettext PO or XLIFF format files. |
A set of tools for managing translation and software localization via |
41 |
|
Gettext PO or XLIFF format files. |
42 |
|
|
43 |
Including: |
Including: |
44 |
* Convertors: convert from various formats to PO or XLIFF |
* Convertors: convert from various formats to PO or XLIFF |
45 |
* Formats: |
* Formats: |
47 |
* Other localization formats - TMX, TBX, Qt Linguist (.ts), |
* Other localization formats - TMX, TBX, Qt Linguist (.ts), |
48 |
Java .properties, Wordfast TM |
Java .properties, Wordfast TM |
49 |
* Compiled formats: Gettext MO, Qt .qm |
* Compiled formats: Gettext MO, Qt .qm |
50 |
* Other formats - text, HTML, CSV, INI, wiki (MediaWiki, DokuWiki), iCal |
* Other formats - OpenDocument Format (ODF), text, HTML, CSV, INI, |
51 |
|
wiki (MediaWiki, DokuWiki), iCal |
52 |
* Specialised - OpenOffice.org GSI/SDF, PHP, |
* Specialised - OpenOffice.org GSI/SDF, PHP, |
53 |
Mozilla (.dtd, .properties, etc) |
Mozilla (.dtd, .properties, etc), Symbian, |
54 |
* Tools: count, search, debug, segment and extract terminology from |
Innosetup, tikiwiki, subtitles |
55 |
localization files. |
* Tools: count, search, debug, segment and pretranslate localization |
56 |
* Checkers: validate translations with over 46 checks |
files. Extract terminology. Pseudo-localize |
57 |
|
* Checkers: validate translations with over 45 checks |
58 |
|
|
59 |
%package devel |
%package devel |
60 |
Summary: Development API for %{name} applications |
Summary: Development API for %{name} applications |
63 |
Requires: %{name} = %{version}-%{release} |
Requires: %{name} = %{version}-%{release} |
64 |
|
|
65 |
%description devel |
%description devel |
66 |
The %{name}-devel package contains Translate Toolkit API documentation for |
The %{name}-devel package contains Translate Toolkit API |
67 |
developers wishing to build new tools or reuse the libraries in other tools. |
documentation for developers wishing to build new tools for the |
68 |
|
toolkit or to use the libraries in other localization tools. |
69 |
|
|
70 |
|
|
71 |
%prep |
%prep |
72 |
%setup -q -n %{name}-%{version}%{prerelease} |
%setup -q |
73 |
%patch0 -p1 |
%patch0 -p1 |
74 |
|
|
75 |
|
|
81 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
82 |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT |
83 |
|
|
84 |
# Create the manpages |
# create manpages |
85 |
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1 |
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1 |
86 |
for program in $RPM_BUILD_ROOT/%{_bindir}/*; |
for program in $RPM_BUILD_ROOT/%{_bindir}/*; do |
|
do |
|
87 |
case $(basename $program) in |
case $(basename $program) in |
88 |
pocompendium|poen|pomigrate2|popuretext|poreencode|posplit|pocount|poglossary|lookupclient.py) |
pocompendium|poen|pomigrate2|popuretext|poreencode|posplit|pocount|poglossary|lookupclient.py|tmserver|build_tmdb) |
89 |
;; |
;; |
90 |
*) |
*) |
91 |
LC_ALL=C PYTHONPATH=. $program --manpage \ |
LC_ALL=C PYTHONPATH=. $program --manpage \ |
92 |
> $RPM_BUILD_ROOT/%{_mandir}/man1/$(basename $program).1 \ |
> $RPM_BUILD_ROOT/%{_mandir}/man1/$(basename $program).1 \ |
93 |
|| rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/$(basename $program).1 |
|| rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/$(basename $program).1 |
94 |
;; |
;; |
95 |
esac |
esac |
96 |
done |
done |
97 |
|
|
112 |
|
|
113 |
%files |
%files |
114 |
%defattr(-,root,root,-) |
%defattr(-,root,root,-) |
|
%doc translate/doc/user/toolkit-[a-z]* |
|
115 |
%doc translate/ChangeLog translate/COPYING translate/README |
%doc translate/ChangeLog translate/COPYING translate/README |
116 |
|
%doc translate/doc/user/toolkit-[a-z]* |
117 |
%{_bindir}/* |
%{_bindir}/* |
118 |
%{_mandir}/man1/* |
%{_mandir}/man1/* |
119 |
%{_datadir}/translate-toolkit |
%{_datadir}/translate-toolkit |
120 |
%{python_sitelib}/translate* |
%{python_sitelib}/translate* |
121 |
|
|
122 |
%files devel |
%files devel |
123 |
|
%defattr(-,root,root,-) |
124 |
%doc translate/doc/api/* |
%doc translate/doc/api/* |
125 |
|
|
126 |
|
|
127 |
%changelog |
%changelog |
128 |
* Mon Oct 6 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2.0-1.fc9 |
* Tue Oct 20 2009 Shad L. Lords <slords@mail.com> - 1.4.1-1 |
129 |
- Update to 1.2.0 final |
- Update to 1.4.1 final |
130 |
- Include stoplist-en and adjust poterminology to read it from the |
|
131 |
/usr/share/ location |
* Mon Aug 24 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.4.0-2 |
132 |
|
- Upstream bug #1114 - obsolete messages should not be translatable |
133 |
|
|
134 |
|
* Wed Aug 5 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.4.0-1 |
135 |
|
- Update to 1.4.0 final |
136 |
|
|
137 |
* Tue Sep 30 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2.0-0.3.rc1.fc9 |
* Fri Jul 31 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.4.0-0.4.rc2 |
138 |
- Update to 1.2.0-rc1 |
- Update to 1.4.0 rc2: |
139 |
- Include ical2po dependencies |
- Some small fixes for XLIFF support |
140 |
|
- API documentation has been augmented with diagrams |
141 |
|
|
142 |
* Tue Aug 26 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2-0.2.beta2.fc9 |
* Fri Jul 24 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.4.0-0.3.rc1 |
143 |
- Update to 1.2-beta2 |
- Update to 1.4.0 rc1: |
144 |
|
|
145 |
* Mon Aug 25 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2-0.1.beta1.fc9 |
Improvements since beta 1: |
146 |
- Update to 1.2-beta1 |
* Improved support for Windows .rc files. |
147 |
|
* Small fixes to Mozilla support. |
148 |
|
* Improvements to some pofilter checks. |
149 |
|
* The tmserver now has more startup options to control behaviour. |
150 |
|
* Better handling of spaces between inline elements in XLIFF |
151 |
|
|
152 |
|
There were also other bugfixes and small improvements, especially for |
153 |
|
the sake of the rich editing features in the upcoming version of |
154 |
|
Virtaal. |
155 |
|
|
156 |
* Tue Jun 3 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.1.1-1.fc9 |
* Mon Jun 29 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.4.0-0.2.beta1 |
157 |
- Rebuild for fc9 |
- Retag |
158 |
|
|
159 |
* Thu Mar 27 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.1.1-1.fc8 |
* Sat Jun 27 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.4.0-0.1.beta1 |
160 |
- Update to official 1.1.1 release |
- Update to 1.4.0 beta1 |
|
- Patches to fix internal project rename wordforge -> locamotion |
|
|
- Use included API documentation |
|
161 |
|
|
162 |
* Wed Mar 12 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.1.1-0.4.rc4.fc8 |
* Fri Jun 12 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.3.0-3 |
163 |
- Update to 1.1.1rc4 |
- Remove old excludes for /usr/bin/*.py{o,c} |
164 |
|
|
165 |
* Wed Mar 5 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.1.1-0.3.rc3.fc8 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-2 |
166 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
167 |
|
|
168 |
|
* Wed Feb 18 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.3.0-1 |
169 |
|
- Update to 1.3.0 final release |
170 |
|
|
171 |
|
* Tue Feb 3 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.3.0-0.2.rc1 |
172 |
|
- Update to 1.3.0 rc1 |
173 |
|
|
174 |
|
* Thu Jan 22 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.3.0-0.1.beta1 |
175 |
|
- Update to 1.3.0 beta1 |
176 |
|
|
177 |
|
* Sat Dec 6 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2.1-1 |
178 |
|
- Update to 1.2.1 |
179 |
|
- Refresh poterminology patch |
180 |
|
|
181 |
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.2.0-4 |
182 |
|
- Rebuild for Python 2.6 |
183 |
|
|
184 |
|
* Mon Nov 17 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2.0-3 |
185 |
|
- Rebuild using %%{ix86} instead of i386 |
186 |
|
|
187 |
|
* Mon Nov 17 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2.0-2 |
188 |
|
- python-psyco is only available on i386 |
189 |
|
|
190 |
|
* Wed Nov 12 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2.0-1 |
191 |
|
- Update to 1.2.0 |
192 |
|
- Patch poterminology to read stoplist-en from /usr/share/ |
193 |
- Add devel package to include generated Translate Toolkit API documentation |
- Add devel package to include generated Translate Toolkit API documentation |
194 |
|
- Add dependencies: python-iniparse, python-Levenshtein, python-lxml, |
195 |
|
python-psyco, python-vobject, gettext-libs |
196 |
|
|
197 |
* Mon Feb 25 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.1.1-0.2.rc3.fc8 |
* Fri Jun 06 2008 Roozbeh Pournader <roozbeh@gmail.com> - 1.1.1-1 |
198 |
- Update to 1.1.1rc3 |
- update to 1.1.1 |
|
- Remove ini2po patch |
|
|
|
|
|
* Thu Feb 14 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.1.1-0.1.rc2.fc8 |
|
|
- Update to 1.1.1rc2 |
|
|
|
|
|
* Thu Feb 14 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.1.0-1.fc8 |
|
|
- Update to 1.1.0 |
|
|
- Remove old ElementTree patch |
|
|
- Add dependencies: python-Levenshtein, python-lxml, python-iniparse, |
|
|
gettext-devel |
|
|
- Package ini2po |
|
|
|
|
|
* Tue Jan 22 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.0.1-4.fc8 |
|
|
- Remove python-Levenshtein dependency: rhbz#429882 and rhbz#430887 |
|
|
|
|
|
* Tue Jan 22 2008 Caius Chance <cchance@redhat.com> - 1.0.1-3.fc8 |
|
|
- Resolves: rhbz#315021 |
|
|
- Update license field to GPLv2+. |
|
|
- Update to 1.0.1 with changes from Dwayne Bailey. |
|
199 |
|
|
200 |
* Thu Dec 20 2007 Dwayne Bailey <dwayne@translate.org.za> - 1.0.1-2 |
* Mon Jan 21 2008 Jens Petersen <petersen@redhat.com> - 1.0.1-1 |
201 |
- Create man pages |
- update license field to GPLv2+ |
202 |
|
- update to 1.0.1 with changes from Dwayne Bailey (#315021): |
203 |
|
|
204 |
* Thu Dec 19 2007 Dwayne Bailey <dwayne@translate.org.za> - 1.0.1-1 |
* Thu Dec 20 2007 Dwayne Bailey <dwayne@translate.org.za> |
205 |
- Update to upstream 1.0.1 |
- Update spec to upstream 1.0.1 |
206 |
- Update patch for Python 2.5 ElementTree |
- Update patch for Python 2.5 ElementTree |
207 |
- Cleanup the doc installation |
- Cleanup the doc installation |
208 |
|
- Create man pages |
209 |
|
- Update description |
210 |
|
|
211 |
* Sat May 05 2007 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.11-1 |
* Sat May 05 2007 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.11-1 |
212 |
- Update to upstream 0.11, adding HTML documentation |
- Update to upstream 0.11, adding HTML documentation |