/[pkgs]/devel/OmegaT/OmegaT.spec
ViewVC logotype

Contents of /devel/OmegaT/OmegaT.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Jul 27 14:38:28 2009 UTC (3 months, 4 weeks ago) by jkeating
Branch: MAIN
CVS Tags: F-12-split, OmegaT-1_7_3_04-5_fc12, HEAD
Changes since 1.5: +4 -1 lines
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1 # TODO:
2 # fix paths to help and internal docs (http://svn.debian.org/wsvn/pkg-java/trunk/omegat/debian/patches/03-location-of-help-files.dpatch?op=file&rev=0&sc=0)
3 # add credits for Tiago
4
5 Name: OmegaT
6 %define namer omegat
7 Summary: Computer Aid Translation tool
8 Version: 1.7.3_04
9 Release: 5%{?dist}
10 Source0: http://downloads.sourceforge.net/omegat/%{name}_%{version}_Source.zip
11 Source1: OmegaT-ant.properties
12 Source2: OmegaT-lib-mnemonics-build.xml
13 Source3: OmegaT-build.xml
14 Url: http://www.omegat.org/
15 Group: Applications/Text
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
17 BuildRequires: ant, java-devel
18 BuildRequires: desktop-file-utils, dos2unix
19 BuildRequires: htmlparser, vldocking
20 Requires: java
21 Requires: vldocking
22 Requires: htmlparser
23 License: GPLv2+
24 BuildArch: noarch
25 Patch1: OmegaT-04-get-rid-of-MRJAdapter.patch
26 Patch2: OmegaT-extra-jars-in-new-location.patch
27 Patch3: OmegaT-manifes-template.patch
28
29 %description
30 OmegaT is a free translation memory application written in Java.
31 It is a tool intended for professional translators. It does not
32 translate for you!
33
34 OmegaT has the following features:
35
36 * Fuzzy matching
37 * Match propagation
38 * Simultaneous processing of multiple-file projects
39 * Simultaneous use of multiple translation memories
40 * External glossaries
41 * Document file formats:
42 XHTML and HTML
43 Microsoft Office 2007 XML
44 OpenOffice.org/StarOffice
45 XLIFF (Okapi)
46 MediaWiki (Wikipedia)
47 Plain text
48 * Unicode (UTF-8) support: can be used with non-Latin alphabets
49 * Support for right-to-left languages
50 * Compatible with other translation memory applications (TMX)
51
52 # %package javadoc
53 # Summary: Javadocs for %{name}
54 # Group: Documentation
55 # %description javadoc
56 # Requires: %{name} = %{version}-%{release}
57 # Requires: jpackage-utils
58 # This package contains the API documentation for %{name}.
59
60 %prep
61 %setup -q -c -n %{name}-%{version}
62 %patch1 -p1
63 %patch2 -p1
64 %patch3 -p0
65
66 # not needed outside Netbeans
67 cp /dev/null nbproject/org-netbeans-modules-java-j2seproject-copylibstask.jar
68
69 # clean dependencies:
70 rm lib/vldocking_2.0.6d.jar
71 rm lib/htmlparser.jar
72 rm lib/sources/htmlparser1_6_20060610.zip-source.zip
73
74 # not needed outside MacOSX:
75 rm lib/MRJAdapter.jar
76 rm lib/sources/MRJAdapter-source.zip
77
78 # not needed outside windows
79 rm -rf release/win32-specific/
80
81 # this shows the netbeans jar needed to compile nmonics...
82 find . -name \*.jar -exec echo {} . \;
83
84 %build
85
86 pushd lib-mnemonics
87 cp %{SOURCE2} build.xml
88 ant dist
89 popd
90
91
92 ## build.xml que tira de netbeans:
93 # ant -propertyfile %{SOURCE1} jar release
94
95
96 cp %{SOURCE3} build.xml
97 ant dist
98
99 %install
100 rm -Rf $RPM_BUILD_ROOT
101
102 #install our jar file
103 #make some install dirs
104 mkdir -p $RPM_BUILD_ROOT%{_bindir}
105 mkdir -p $RPM_BUILD_ROOT%{_javadir}
106 mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{namer}/docs
107 mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{namer}/images
108
109 install -pm 0755 dist/OmegaT.jar $RPM_BUILD_ROOT%{_javadir}/OmegaT-%{version}.jar
110 install -pm 0755 lib-mnemonics/dist/lib-mnemonics.jar $RPM_BUILD_ROOT%{_javadir}/OmegaT-lib-mnemonics-%{version}.jar
111
112 pushd $RPM_BUILD_ROOT%{_javadir}
113 ln -s OmegaT-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/OmegaT.jar
114 ln -s OmegaT-lib-mnemonics-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/lib-mnemonics.jar
115 popd
116
117 cp -pR release/index.html docs/ images/ $RPM_BUILD_ROOT%{_datadir}/%{namer}/
118
119 # this directory should dissapear as soon the internal jars dissapear:
120 #mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{namer}/lib
121 #cp -pR dist/lib/ $RPM_BUILD_ROOT%{_datadir}/%{namer}/
122 #rm $RPM_BUILD_ROOT%{_datadir}/%{namer}/lib/MRJAdapter.jar
123
124 ## now we used the packaged icon, not sure if it's a problem to use it from /usr/share/omegat/images/OmegaT.png
125 ## install -p %SOURCE1 $RPM_BUILD_ROOT/%{_iconsdir}/%{namer}.png
126
127 #create our launch wrapper script
128 cat > $RPM_BUILD_ROOT%{_bindir}/%{namer} <<EOF
129 #!/bin/sh
130 . %{_datadir}/java-utils/java-functions
131 java -jar %{_javadir}/OmegaT.jar $*
132
133 EOF
134
135 #make our launch wrapper executable
136 chmod +x $RPM_BUILD_ROOT%{_bindir}/*
137
138 #Menu entry
139 install -d -m755 %{buildroot}%{_datadir}/applications
140
141 cat > %{buildroot}%{_datadir}/applications/fedora-%{namer}.desktop <<EOF
142 [Desktop Entry]
143 Encoding=UTF-8
144 Name=%name
145 Exec=%{namer}
146 Icon=/usr/share/omegat/images/OmegaT.png
147 Comment=Computer Aid Translation tool
148 Comment[es]=Herramienta de asistencia a la traducción
149 Terminal=false
150 Type=Application
151 Categories=Translation;Java;Office;
152 X-AppInstall-Package=%{namer}
153 EOF
154
155 desktop-file-install --vendor "fedora" --dir=%{buildroot}%{_datadir}/applications/ %{buildroot}%{_datadir}/applications/fedora-%{namer}.desktop
156
157 # ant -propertyfile %{SOURCE1} javadoc
158 # mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
159 # cp -rp dist/javadoc/ $RPM_BUILD_ROOT%{_javadocdir}/%{name}
160
161 # fixing end of line making rpmlint happy
162 dos2unix -k release/*.txt
163
164 %clean
165 rm -rf $RPM_BUILD_ROOT
166
167 %files
168 %defattr(-,root,root,0755)
169 %dir %{_datadir}/%{namer}
170 %{_datadir}/%{namer}/*
171 %{_bindir}/*
172 %{_javadir}/*
173 %{_datadir}/applications/fedora-%{namer}.desktop
174 #%{_iconsdir}/%{namer}.png
175
176 %doc ./release/changes.txt release/doc-license.txt release/license.txt release/readme*.txt release/join.html
177
178 # %files javadoc
179 # %defattr(-,root,root,-)
180 # %{_javadocdir}/*
181
182
183 %changelog
184 * Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.3_04-5
185 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
186
187 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.3_04-4
188 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
189
190 * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.3_04-3
191 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
192
193
194 * Fri Nov 21 2008 Ismael Olea <ismael@olea.org> 1.7.3_04-2
195 - stupid new release caused by my fault
196
197 * Fri Nov 21 2008 Ismael Olea <ismael@olea.org> 1.7.3_04-1
198 - updating to 1.7.3_04
199
200 * Wed Nov 18 2008 Ismael Olea <ismael@olea.org> 1.7.3_03-6
201 - Fixing htmlparser non-present dependency (bug #471573)
202
203 * Thu Sep 18 2008 Ismael Olea <ismael@olea.org> 1.7.3_03-5
204 - QA changes
205
206 * Wed Sep 17 2008 Ismael Olea <ismael@olea.org> 1.7.3_03-4
207 - minor and cosmetic changes
208
209 * Wed Aug 27 2008 Ismael Olea <ismael@olea.org> 1.7.3_03-3olea
210 - new build.xml for removing org-netbeans-modules-java-j2seproject-copylibstask.jar dependency
211 - not javadoc support now
212 - OmegaT-ant.properties not needed by this build.xml
213
214 * Wed Aug 27 2008 Ismael Olea <ismael@olea.org> 1.7.3_03-2olea
215 - cleaning dependencies, apparently running, lack paths configs
216
217 * Tue Aug 26 2008 Ismael Olea <ismael@olea.org> 1.7.3_03-1olea
218 - updating to 1.7.3_03 version
219
220 * Fri Jul 4 2008 Ismael Olea <ismael@olea.org> 1.7.3_02-1olea
221 - updating to 1.7.3_02 version
222
223 * Mon Feb 11 2008 Ismael Olea <ismael@olea.org> 1.7.3-5olea
224 - fixing according to https://bugzilla.redhat.com/show_bug.cgi?id=428798#c3
225 - comments on https://bugzilla.redhat.com/show_bug.cgi?id=428798#c4
226
227 * Sun Feb 10 2008 Ismael Olea <ismael@olea.org> 1.7.3-4olea
228 - fixing according to https://bugzilla.redhat.com/show_bug.cgi?id=428798#c1
229
230 * Mon Jan 21 2008 Ismael Olea <ismael@olea.org> 1.7.3-3olea
231 - rpmlinting
232
233 * Wed Jan 9 2008 Ismael Olea <ismael@olea.org> 1.7.3-2olea
234 - Compiling from sources
235
236 * Wed Jan 9 2008 Ismael Olea <ismael@olea.org> 1.7.3-1olea
237 - updating to 1.7.3
238
239 * Wed Jan 9 2008 Ismael Olea <ismael@olea.org> 1.7.2-1olea
240 - compiling on Fedora
241
242 * Fri Nov 12 2007 Patred Theknight <edupclos@gmail.com>1.7.2-1pclos_edulos
243 - Initial Build

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2