/[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.8 by slords, Tue Nov 25 16:20:36 2008 UTC Revision 1.11 by slords, Tue Oct 20 21:41:47 2009 UTC
# Line 1  Line 1 
1  # $Id: translate-toolkit.spec,v 1.6 2008/10/19 22:04:05 slords Exp $  # $Id: translate-toolkit.spec,v 1.10 2009/10/20 20:46:55 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:        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/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    Patch1:         translate-toolkit-1.4.1-sourcelencmp.patch
20    
21  BuildArch:      noarch  BuildArch:      noarch
22  BuildRequires:  python-devel  BuildRequires:  python-devel
23    # 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    Requires:       gettext
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:
# Line 41  Including: Line 48  Including:
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
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    
77    
78  %build  %build
# Line 72  developers wishing to build new tools or Line 83  developers wishing to build new tools or
83  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
84  %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT  %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
85    
86  # Create the manpages  # create manpages
87  mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1  mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
88  for program in $RPM_BUILD_ROOT/%{_bindir}/*;  for program in $RPM_BUILD_ROOT/%{_bindir}/*; do
 do  
89      case $(basename $program) in      case $(basename $program) in
90      pocompendium|poen|pomigrate2|popuretext|poreencode|posplit|pocount|poglossary|lookupclient.py)        pocompendium|poen|pomigrate2|popuretext|poreencode|posplit|pocount|poglossary|lookupclient.py|tmserver|build_tmdb)
91          ;;         ;;
92      *)        *)
93          LC_ALL=C PYTHONPATH=. $program --manpage \          LC_ALL=C PYTHONPATH=. $program --manpage \
94          >  $RPM_BUILD_ROOT/%{_mandir}/man1/$(basename $program).1 \            >  $RPM_BUILD_ROOT/%{_mandir}/man1/$(basename $program).1 \
95          || rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/$(basename $program).1            || rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/$(basename $program).1
96          ;;            ;;
97      esac      esac
98  done  done
99    
# Line 104  rm -rf $RPM_BUILD_ROOT Line 114  rm -rf $RPM_BUILD_ROOT
114    
115  %files  %files
116  %defattr(-,root,root,-)  %defattr(-,root,root,-)
 %doc translate/doc/user/toolkit-[a-z]*  
117  %doc translate/ChangeLog translate/COPYING translate/README  %doc translate/ChangeLog translate/COPYING translate/README
118    %doc translate/doc/user/toolkit-[a-z]*
119  %{_bindir}/*  %{_bindir}/*
120  %{_mandir}/man1/*  %{_mandir}/man1/*
121  %{_datadir}/translate-toolkit  %{_datadir}/translate-toolkit
122  %{python_sitelib}/translate*  %{python_sitelib}/translate*
123    
124  %files devel  %files devel
125    %defattr(-,root,root,-)
126  %doc translate/doc/api/*  %doc translate/doc/api/*
127    
128    
129  %changelog  %changelog
130  * 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-2
131  - Update to 1.2.0 final  - Update to 1.4.1 final
132  - Include stoplist-en and adjust poterminology to read it from the  - Add sourcelencmp routine back in so updatetm still works
133    /usr/share/ location  
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    
140  * 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
141  - Update to 1.2.0-rc1  - Update to 1.4.0 rc2:
142  - Include ical2po dependencies     - Some small fixes for XLIFF support
143       - API documentation has been augmented with diagrams
144    
145  * 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
146  - Update to 1.2-beta2  - Update to 1.4.0 rc1:
147    
148  * Mon Aug 25 2008 Dwayne Bailey <dwayne@translate.org.za> - 1.2-0.1.beta1.fc9      Improvements since beta 1:
149  - Update to 1.2-beta1       * 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    
159  * 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
160  - Rebuild for fc9  - Retag
161    
162  * 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
163  - 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  
164    
165  * 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
166  - Update to 1.1.1rc4  - Remove old excludes for /usr/bin/*.py{o,c}
167    
168  * 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
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  - Add devel package to include generated Translate Toolkit API documentation  - Add devel package to include generated Translate Toolkit API documentation
197    - Add dependencies: python-iniparse, python-Levenshtein, python-lxml,
198      python-psyco, python-vobject, gettext-libs
199    
200  * 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
201  - 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.  
202    
203  * 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
204  - Create man pages  - update license field to GPLv2+
205    - update to 1.0.1 with changes from Dwayne Bailey (#315021):
206    
207  * Thu Dec 19 2007 Dwayne Bailey <dwayne@translate.org.za> - 1.0.1-1  * Thu Dec 20 2007 Dwayne Bailey <dwayne@translate.org.za>
208  - Update to upstream 1.0.1  - Update spec to upstream 1.0.1
209  - Update patch for Python 2.5 ElementTree  - Update patch for Python 2.5 ElementTree
210  - Cleanup the doc installation  - Cleanup the doc installation
211    - Create man pages
212    - Update description
213    
214  * Sat May 05 2007 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.11-1  * Sat May 05 2007 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.11-1
215  - 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