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

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

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


Revision 1.11 - (hide annotations) (download)
Tue Oct 20 21:41:47 2009 UTC (15 years ago) by slords
Branch: MAIN
CVS Tags: translate-toolkit-1_4_1-2_el5_sme
Changes since 1.10: +6 -3 lines
* Tue Oct 20 2009 Shad L. Lords <slords@mail.com> - 1.4.1-2
- Update to 1.4.1 final
- Add sourcelencmp routine back in so updatetm still works

1 slords 1.11 # $Id: translate-toolkit.spec,v 1.10 2009/10/20 20:46:55 slords Exp $
2 slords 1.5 # Authority: slords
3 slords 1.4 # Name: Shad L. Lords
4    
5 slords 1.6 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
6 slords 1.1
7 slords 1.6 Name: translate-toolkit
8 slords 1.9 Version: 1.4.1
9 slords 1.11 Release: 2%{?dist}
10 slords 1.9 Summary: Tools to assist with translation and software localization
11 slords 1.6
12     Group: Development/Tools
13     License: GPLv2+
14     URL: http://translate.sourceforge.net/wiki/toolkit/index
15 slords 1.9 Source0: http://downloads.sourceforge.net/project/translate/Translate%20Toolkit/1.4.0/%{name}-%{version}.tar.bz2
16 slords 1.6 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17    
18 slords 1.9 Patch0: translate-toolkit-1.2.1-stoplist.patch
19 slords 1.11 Patch1: translate-toolkit-1.4.1-sourcelencmp.patch
20 slords 1.6
21     BuildArch: noarch
22     BuildRequires: python-devel
23 slords 1.9 # The following are needed for man page generation
24     BuildRequires: python-lxml
25     BuildRequires: python-iniparse
26     BuildRequires: python-simplejson
27     BuildRequires: python-vobject
28 slords 1.10 Requires: gettext
29 slords 1.6 Requires: python-enchant
30 slords 1.9 Requires: python-iniparse
31 slords 1.6 Requires: python-Levenshtein
32     Requires: python-lxml
33 slords 1.9 %ifarch %{ix86}
34     Requires: python-psyco
35     %endif
36     Requires: python-simplejson
37 slords 1.6 Requires: python-vobject
38 slords 1.1
39    
40 slords 1.6 %description
41 slords 1.9 A set of tools for managing translation and software localization via
42     Gettext PO or XLIFF format files.
43    
44 slords 1.6 Including:
45     * Convertors: convert from various formats to PO or XLIFF
46     * Formats:
47     * Core localization formats - XLIFF and Gettext PO
48     * Other localization formats - TMX, TBX, Qt Linguist (.ts),
49     Java .properties, Wordfast TM
50     * Compiled formats: Gettext MO, Qt .qm
51 slords 1.9 * Other formats - OpenDocument Format (ODF), text, HTML, CSV, INI,
52     wiki (MediaWiki, DokuWiki), iCal
53 slords 1.6 * Specialised - OpenOffice.org GSI/SDF, PHP,
54 slords 1.9 Mozilla (.dtd, .properties, etc), Symbian,
55     Innosetup, tikiwiki, subtitles
56     * Tools: count, search, debug, segment and pretranslate localization
57     files. Extract terminology. Pseudo-localize
58     * Checkers: validate translations with over 45 checks
59 slords 1.6
60     %package devel
61     Summary: Development API for %{name} applications
62     Group: Development/Tools
63     License: GPLv2+
64     Requires: %{name} = %{version}-%{release}
65    
66     %description devel
67 slords 1.9 The %{name}-devel package contains Translate Toolkit API
68     documentation for developers wishing to build new tools for the
69     toolkit or to use the libraries in other localization tools.
70 slords 1.1
71    
72     %prep
73 slords 1.9 %setup -q
74 slords 1.6 %patch0 -p1
75 slords 1.11 %patch1 -p1
76 slords 1.6
77 slords 1.1
78     %build
79 slords 1.6 %{__python} setup.py build
80    
81 slords 1.1
82     %install
83 slords 1.6 rm -rf $RPM_BUILD_ROOT
84     %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
85    
86 slords 1.9 # create manpages
87 slords 1.6 mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
88 slords 1.9 for program in $RPM_BUILD_ROOT/%{_bindir}/*; do
89 slords 1.6 case $(basename $program) in
90 slords 1.9 pocompendium|poen|pomigrate2|popuretext|poreencode|posplit|pocount|poglossary|lookupclient.py|tmserver|build_tmdb)
91     ;;
92     *)
93 slords 1.6 LC_ALL=C PYTHONPATH=. $program --manpage \
94 slords 1.9 > $RPM_BUILD_ROOT/%{_mandir}/man1/$(basename $program).1 \
95     || rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/$(basename $program).1
96     ;;
97 slords 1.6 esac
98     done
99    
100     # remove documentation files from site-packages
101     rm -r $RPM_BUILD_ROOT/%{python_sitelib}/translate/doc
102     rm $RPM_BUILD_ROOT/%{python_sitelib}/translate/{COPYING,ChangeLog,LICENSE,README}
103     rm $RPM_BUILD_ROOT/%{python_sitelib}/translate/{convert,filters,tools}/TODO
104     rm $RPM_BUILD_ROOT/%{python_sitelib}/translate/misc/README
105    
106     # Move data files to /usr/share
107     mkdir $RPM_BUILD_ROOT/%{_datadir}/translate-toolkit
108     mv $RPM_BUILD_ROOT/%{python_sitelib}/translate/share/stoplist* $RPM_BUILD_ROOT/%{_datadir}/translate-toolkit
109    
110 slords 1.1
111     %clean
112     rm -rf $RPM_BUILD_ROOT
113    
114 slords 1.6
115     %files
116     %defattr(-,root,root,-)
117 slords 1.9 %doc translate/ChangeLog translate/COPYING translate/README
118 slords 1.6 %doc translate/doc/user/toolkit-[a-z]*
119     %{_bindir}/*
120     %{_mandir}/man1/*
121     %{_datadir}/translate-toolkit
122     %{python_sitelib}/translate*
123    
124     %files devel
125 slords 1.9 %defattr(-,root,root,-)
126 slords 1.6 %doc translate/doc/api/*
127    
128    
129     %changelog
130 slords 1.11 * Tue Oct 20 2009 Shad L. Lords <slords@mail.com> - 1.4.1-2
131 slords 1.9 - Update to 1.4.1 final
132 slords 1.11 - Add sourcelencmp routine back in so updatetm still works
133 slords 1.9
134     * Mon Aug 24 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.4.0-2
135     - Upstream bug #1114 - obsolete messages should not be translatable
136    
137     * Wed Aug 5 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.4.0-1
138     - Update to 1.4.0 final
139 slords 1.6
140 slords 1.9 * Fri Jul 31 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.4.0-0.4.rc2
141     - Update to 1.4.0 rc2:
142     - Some small fixes for XLIFF support
143     - API documentation has been augmented with diagrams
144 slords 1.6
145 slords 1.9 * Fri Jul 24 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.4.0-0.3.rc1
146     - Update to 1.4.0 rc1:
147 slords 1.6
148 slords 1.9 Improvements since beta 1:
149     * Improved support for Windows .rc files.
150     * Small fixes to Mozilla support.
151     * Improvements to some pofilter checks.
152     * The tmserver now has more startup options to control behaviour.
153     * Better handling of spaces between inline elements in XLIFF
154    
155     There were also other bugfixes and small improvements, especially for
156     the sake of the rich editing features in the upcoming version of
157     Virtaal.
158 slords 1.6
159 slords 1.9 * Mon Jun 29 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.4.0-0.2.beta1
160     - Retag
161 slords 1.6
162 slords 1.9 * Sat Jun 27 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.4.0-0.1.beta1
163     - Update to 1.4.0 beta1
164 slords 1.6
165 slords 1.9 * Fri Jun 12 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.3.0-3
166     - Remove old excludes for /usr/bin/*.py{o,c}
167 slords 1.6
168 slords 1.9 * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-2
169     - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
170    
171     * Wed Feb 18 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.3.0-1
172     - Update to 1.3.0 final release
173    
174     * Tue Feb 3 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.3.0-0.2.rc1
175     - Update to 1.3.0 rc1
176    
177     * Thu Jan 22 2009 Dwayne Bailey <dwayne@translate.org.za> - 1.3.0-0.1.beta1
178     - Update to 1.3.0 beta1
179    
180     * Sat Dec 6 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2.1-1
181     - Update to 1.2.1
182     - Refresh poterminology patch
183    
184     * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.2.0-4
185     - Rebuild for Python 2.6
186    
187     * Mon Nov 17 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2.0-3
188     - Rebuild using %%{ix86} instead of i386
189    
190     * Mon Nov 17 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2.0-2
191     - python-psyco is only available on i386
192    
193     * Wed Nov 12 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2.0-1
194     - Update to 1.2.0
195     - Patch poterminology to read stoplist-en from /usr/share/
196 slords 1.6 - Add devel package to include generated Translate Toolkit API documentation
197 slords 1.9 - Add dependencies: python-iniparse, python-Levenshtein, python-lxml,
198     python-psyco, python-vobject, gettext-libs
199 slords 1.6
200 slords 1.9 * Fri Jun 06 2008 Roozbeh Pournader <roozbeh@gmail.com> - 1.1.1-1
201     - update to 1.1.1
202 slords 1.6
203 slords 1.9 * Mon Jan 21 2008 Jens Petersen <petersen@redhat.com> - 1.0.1-1
204     - update license field to GPLv2+
205     - update to 1.0.1 with changes from Dwayne Bailey (#315021):
206 slords 1.6
207 slords 1.9 * Thu Dec 20 2007 Dwayne Bailey <dwayne@translate.org.za>
208     - Update spec to upstream 1.0.1
209 slords 1.6 - Update patch for Python 2.5 ElementTree
210     - Cleanup the doc installation
211 slords 1.9 - Create man pages
212     - Update description
213 slords 1.6
214     * Sat May 05 2007 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.11-1
215     - Update to upstream 0.11, adding HTML documentation
216    
217     * Tue Jan 09 2007 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.10.1-4
218     - Patch to use Python 2.5's built-in ElementTree
219    
220     * Sat Dec 30 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.10.1-3
221     - Rebuild to fix dependency problem
222    
223     * Sat Dec 09 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.10.1-2
224     - Rebuild for Python 2.5
225    
226     * Thu Nov 09 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.10.1-1
227     - Update to upstream 0.10.1
228     - Cleanup based on latest Python packaging guidelines
229    
230     * Wed Nov 08 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-2
231     - Rebuild to get into Rawhide
232    
233     * Mon Feb 20 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-1
234     - Update to final 0.8
235    
236     * Sun Feb 19 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-0.10.rc6
237     - Fix a typo in po2dtd that made po2moz fail
238    
239     * Tue Feb 14 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-0.9.rc6
240     - Rebuild for Fedora Extras 5
241    
242     * Tue Feb 07 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-0.8.rc6
243     - Require python-enchant for spellchecking support in pofilter
244    
245     * Sat Feb 04 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-0.7.rc6
246     - Rebuild
247    
248     * Sat Feb 04 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-0.6.rc6
249     - Update to 0.8rc6
250    
251     * Sat Jan 21 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-0.5.rc5
252     - Use sed instead of dos2unix
253    
254     * Mon Jan 09 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-0.4.rc5
255     - Own forgotten subdirectories
256    
257     * Mon Jan 09 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-0.3.rc5
258     - Fix the jToolkit requirement
259    
260     * Sun Jan 08 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-0.2.rc5
261     - Add %%{?dist} tag
262    
263     * Sat Jan 07 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.8-0.1.rc5
264     - Initial packaging

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