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

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

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

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


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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