rpms/OmegaT/devel OmegaT-04-get-rid-of-MRJAdapter.patch, NONE, 1.1 OmegaT-ant.properties, NONE, 1.1 OmegaT-build.xml, NONE, 1.1 OmegaT-extra-jars-in-new-location.patch, NONE, 1.1 OmegaT-lib-mnemonics-build.xml, NONE, 1.1 OmegaT-manifes-template.patch, NONE, 1.1 OmegaT.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Ismael Olea olea at fedoraproject.org
Mon Oct 6 15:27:29 UTC 2008


Author: olea

Update of /cvs/pkgs/rpms/OmegaT/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2904/devel

Modified Files:
	.cvsignore sources 
Added Files:
	OmegaT-04-get-rid-of-MRJAdapter.patch OmegaT-ant.properties 
	OmegaT-build.xml OmegaT-extra-jars-in-new-location.patch 
	OmegaT-lib-mnemonics-build.xml OmegaT-manifes-template.patch 
	OmegaT.spec import.log 
Log Message:
uploading package



OmegaT-04-get-rid-of-MRJAdapter.patch:

--- NEW FILE OmegaT-04-get-rid-of-MRJAdapter.patch ---
# Removing MacOSX useless dependence
# Adapted from Tiago Saboga <tiagosaboga at gmail.com>  original: 
#
# http://svn.debian.org/wsvn/pkg-java/trunk/omegat/debian/patches/04-get-rid-of-MRJAdapter.dpatch?op=file&rev=0&sc=0

--- OmegaT-1.7.3_02/src/org/omegat/gui/main/MainWindow.java.orig	2008-03-28 11:20:12.000000000 +0100
+++ OmegaT-1.7.3_02/src/org/omegat/gui/main/MainWindow.java	2008-07-04 18:23:44.000000000 +0200
@@ -103,7 +103,6 @@
 import com.vlsolutions.swing.docking.event.DockableStateWillChangeListener;
 import com.vlsolutions.swing.docking.ui.DockingUISettings;
 
-import net.roydesign.mac.MRJAdapter;
 
 /**
  * The main window of OmegaT application.
@@ -257,35 +256,8 @@
         uiUpdateOnProjectClose();
         initUIShortcuts();
         
-        try
-        {
-            // MacOSX-specific
-            MRJAdapter.addQuitApplicationListener(new ActionListener()
-            {
-                public void actionPerformed(ActionEvent e)
-                {
-                    doQuit();
-                }
-            });
-            MRJAdapter.addAboutListener(new ActionListener()
-            {
-                public void actionPerformed(ActionEvent e)
-                {
-                    doAbout();
-                }
-            });
-        }
-        catch(NoClassDefFoundError e)
-        {
-            Log.log(e);
-        }
-
-        // all except MacOSX
-        if(!StaticUtils.onMacOSX())   // NOI18N
-        {
-            projectMenu.add(separator2inProjectMenu);
-            projectMenu.add(projectExitMenuItem);
-        }
+        projectMenu.add(separator2inProjectMenu);
+        projectMenu.add(projectExitMenuItem);
 
         // Add Language submenu to Options menu
 


--- NEW FILE OmegaT-ant.properties ---
file.reference.htmlparser.jar=/usr/share/java/htmlparser-1.6.jar
file.reference.vldocking_2.0.6d.jar=/usr/share/java/vldocking.jar
javac.classpath=\
    ${reference.lib-mnemonics.jar}:\
    ${file.reference.htmlparser.jar}:\
    ${file.reference.vldocking_2.0.6d.jar}
reference.lib-mnemonics.jar=lib-mnemonics/dist/lib-mnemonics.jar

javadoc.link=/usr/share/doc/classpath-doc/api


--- NEW FILE OmegaT-build.xml ---
<!-- 
build.xml without Neatbans dependencies.
by Ismael Olea <ismael at olea.org>, public domain
-->

<project name="OmegaT" default="dist" basedir=".">
    <description>
        OmegaT
    </description>
  <!-- set global properties for this build -->

  <target name="init">
    <!-- Create the time stamp -->
    <tstamp/>
    <!-- Create the build directory structure used by compile -->
    <property file="src/org/omegat/Version.properties"/>
    <condition property="updatenr"
               value="0${update}"
               else="${update}">
       <length string="${update}"
               length="1"/>
    </condition>
    <condition property="distversion"
               value="${version}"
               else="${version}_${updatenr}">
       <equals arg1="${updatenr}" arg2="00"/>
    </condition>
    <property name="src" location="src"/>
    <property name="build" location="build"/>
    <property name="build.dir" location="build"/>
    <property name="jar"  location="dist"/>
    <property name="dist"  location="dist"/>
    <mkdir dir="${build}"/>
    <filter filtersfile="src/org/omegat/Version.properties"/>
    <copy file="manifest-template.mf" tofile="manifest.mf" filtering="true"/>
  </target>

  <target name="compile" depends="init"
        description="compile the source " >
    <!-- Compile the java code from ${src} into ${build} -->
    <javac srcdir="${src}" destdir="${build}" verbose="yes">
        <classpath>
          <pathelement path="${classpath}"/>
          <pathelement location="/usr/share/java/htmlparser-1.6.jar"/>
          <pathelement location="/usr/share/java/vldocking.jar"/>
          <pathelement location="lib-mnemonics/dist/lib-mnemonics.jar"/>
        </classpath>
     </javac>
  </target>

  <target name="dist" depends="jar">
  </target>
  
  <target name="jar" depends="compile,l10n-pack"
        description="generate the distribution" >
    <!-- Create the distribution directory -->
    <mkdir dir="${dist}"/>
    <copy todir="${build}" >
        <fileset dir="${src}">
                <include name="**/*"/>
                <exclude name="**/*.java"/>
        </fileset>
    </copy>
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
    <jar jarfile="${dist}/OmegaT.jar"
	basedir="${build}"  
	manifest="manifest.mf"  
    />
  </target>

  <target name="clean"
        description="clean up" >
    <!-- Delete the ${build} and ${dist} directory trees -->
    <delete dir="${build}"/>
    <delete dir="${dist}"/>
  </target>

    <target name="l10n-pack" depends="init" description="Build a distribution of localizable files">
	<property file="src/org/omegat/Version.properties"/>
        <mkdir dir="${dist}"/>
        <property name="l10n.project.dir" value="release/l10n-project"/>
        <property name="l10n.dir" value="${build.dir}/l10n"/>
        <mkdir dir="${l10n.dir}"/>
        
        <!-- minimal -->
        <property name="l10n.min" value="OmegaT_${distversion}_L10N_Minimal"/>
        <property name="l10n.min.dir" value="${l10n.dir}/${l10n.min}"/>
        <mkdir dir="${l10n.min.dir}"/>
        <copy todir="${l10n.min.dir}">
            <fileset dir="${l10n.project.dir}"/>
        </copy>
        <copy todir="${l10n.min.dir}/source">
            <fileset dir="." 
                    includes="docs/en/instantStartGuideNoTOC.html src/**/Bundle.properties"/>
        </copy>
        <copy file="release/readme.txt"
              tofile="${l10n.min.dir}/source/readme.utf8"
              encoding="UTF-8"
              outputencoding="UTF-8">
            <filterset begintoken="@@" endtoken="@@">
                <filter token="TRANSLATION_NOTICE"
                        value="This translation is the work of [insert your name], copyright© [insert year]."/>
            </filterset>
        </copy>
        <zip destfile="${dist}/${l10n.min}.zip" 
                basedir="${l10n.dir}" includes="${l10n.min}/**" />
               
        <!-- full -->
        <property name="l10n.max" value="OmegaT_${distversion}_L10N_Full"/>
        <property name="l10n.max.dir" value="${l10n.dir}/${l10n.max}"/>
        <mkdir dir="${l10n.max.dir}"/>
        <copy todir="${l10n.max.dir}">
            <fileset dir="${l10n.project.dir}"/>
        </copy>
        <copy todir="${l10n.max.dir}/source"> <!-- Copy all files except legalNotices.html -->
            <fileset dir="."
                    includes="docs/en/** src/**/Bundle.properties"
                    excludes="docs/en/legalNotices.html"/>
        </copy>
        <copy file="release/readme.txt"
              tofile="${l10n.max.dir}/source/readme.utf8"
              encoding="UTF-8"
              outputencoding="UTF-8">
            <filterset begintoken="@@" endtoken="@@">
                <filter token="TRANSLATION_NOTICE"
                        value="This translation is the work of [insert your name], copyright© [insert year]."/>
            </filterset>
        </copy>
        <copy todir="${l10n.max.dir}/source"
              encoding="UTF-8"
              outputencoding="UTF-8">
            <fileset dir="." 
                     includes="docs/en/legalNotices.html"/>
            <filterset begintoken="@@" endtoken="@@">
                <filter token="TRANSLATION_NOTICE"
                        value="<p>This translation is the work of [insert your name], copyright© [insert year].</p>"/>
            </filterset>
        </copy>
        <zip destfile="${dist}/${l10n.max}.zip" 
                basedir="${l10n.dir}" includes="${l10n.max}/**" />
    </target>

</project>


OmegaT-extra-jars-in-new-location.patch:

--- NEW FILE OmegaT-extra-jars-in-new-location.patch ---
# 01-extra-jars-in-new-location.dpatch by Tiago Saboga <tiagosaboga at gmail.com>
#
# All lines beginning with `## DP:' are a description of the patch.
# DP: Adapt classpath to debian filesystem hierarchy..

--- OmegaT-1.7.3_02/manifest-template.mf.orig	2008-03-28 11:21:18.000000000 +0100
+++ OmegaT-1.7.3_02/manifest-template.mf	2008-07-04 18:38:03.000000000 +0200
@@ -3,5 +3,5 @@
 License: GNU Public License version 2
 Specification-Version: 1
 Implementation-Version: @version@
-Class-Path: lib/lib-mnemonics.jar lib/htmlparser.jar lib/MRJAdapter.jar lib/vldocking_2.0.6d.jar
+Class-Path: omegat-lib-mnemonics.jar libhtmlparser.jar vldocking.jar
 


--- NEW FILE OmegaT-lib-mnemonics-build.xml ---
<project name="lib-mnemonics" default="jar" basedir=".">
    <description>
        OmegaT lib-mnemonics library
    </description>
  <!-- set global properties for this build -->
  <property name="src" location="src"/>
  <property name="build" location="build"/>
  <property name="jar"  location="dist"/>
  <property name="dist"  location="dist"/>

  <target name="init">
    <!-- Create the time stamp -->
    <tstamp/>
    <!-- Create the build directory structure used by compile -->
    <mkdir dir="${build}"/>
  </target>

  <target name="compile" depends="init"
        description="compile the source " >
    <!-- Compile the java code from ${src} into ${build} -->
    <javac srcdir="${src}" destdir="${build}"/>
  </target>

  <target name="dist" depends="jar"/>
  
  <target name="jar" depends="compile"
        description="generate the distribution" >
    <!-- Create the distribution directory -->
    <mkdir dir="${dist}"/>
    <copy todir="${build}" >
        <fileset dir="${src}">
                <include name="**/*.properties"/>
        </fileset>
    </copy>
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
    <jar jarfile="${dist}/lib-mnemonics.jar"
		basedir="${build}"    
    />
  </target>

  <target name="clean"
        description="clean up" >
    <!-- Delete the ${build} and ${dist} directory trees -->
    <delete dir="${build}"/>
    <delete dir="${dist}"/>
  </target>
</project>

OmegaT-manifes-template.patch:

--- NEW FILE OmegaT-manifes-template.patch ---
--- manifest-template.mf.orig	2008-08-27 13:35:48.000000000 +0200
+++ manifest-template.mf	2008-08-27 13:36:17.000000000 +0200
@@ -3,5 +3,5 @@
 License: GNU Public License version 2
 Specification-Version: 1
 Implementation-Version: @version@
-Class-Path: omegat-lib-mnemonics.jar libhtmlparser.jar vldocking.jar
+Class-Path: lib-mnemonics.jar vldocking.jar htmlparser-1.6.jar
 


--- NEW FILE OmegaT.spec ---
# TODO:
#	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)
#	add credits for Tiago

Name:		OmegaT
%define namer	omegat
Summary:	Computer Aid Translation tool
Version:	1.7.3_03
Release:	5%{?dist}
Source0:	http://downloads.sourceforge.net/omegat/%{name}_%{version}_Source.zip
Source1:	OmegaT-ant.properties
Source2:	OmegaT-lib-mnemonics-build.xml
Source3:	OmegaT-build.xml
Url:		http://www.omegat.org/
Group:		Applications/Text
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires:	ant, java-devel
BuildRequires:  desktop-file-utils, dos2unix
BuildRequires:	htmlparser, vldocking
Requires:	java
Requires:	vldocking
License:	GPLv2+
BuildArch: 	noarch
Patch1:		OmegaT-04-get-rid-of-MRJAdapter.patch
Patch2:		OmegaT-extra-jars-in-new-location.patch
Patch3:		OmegaT-manifes-template.patch

%description
OmegaT is a free translation memory application written in Java.
It is a tool intended for professional translators. It does not
translate for you!

OmegaT has the following features:

 * Fuzzy matching
 * Match propagation
 * Simultaneous processing of multiple-file projects
 * Simultaneous use of multiple translation memories
 * External glossaries
 * Document file formats:
	XHTML and HTML
	Microsoft Office 2007 XML
	OpenOffice.org/StarOffice
	XLIFF (Okapi)
	MediaWiki (Wikipedia)
	Plain text
 * Unicode (UTF-8) support: can be used with non-Latin alphabets
 * Support for right-to-left languages
 * Compatible with other translation memory applications (TMX)

# %package	javadoc
# Summary:	Javadocs for %{name}
# Group:	Documentation
# %description	javadoc
# Requires:	%{name} = %{version}-%{release}
# Requires:	jpackage-utils
# This package contains the API documentation for %{name}.

%prep
%setup -q -c -n %{name}-%{version}
%patch1 -p1
%patch2 -p1
%patch3 -p0

# not needed outside Netbeans
cp /dev/null nbproject/org-netbeans-modules-java-j2seproject-copylibstask.jar

# clean dependencies:
rm lib/vldocking_2.0.6d.jar
rm lib/htmlparser.jar
rm lib/sources/htmlparser1_6_20060610.zip-source.zip

# not needed outside MacOSX:
rm lib/MRJAdapter.jar
rm lib/sources/MRJAdapter-source.zip

# not needed outside windows
rm -rf release/win32-specific/

# this shows the netbeans jar needed to compile nmonics...
find . -name \*.jar -exec echo {} . \;

%build

pushd lib-mnemonics
cp %{SOURCE2} build.xml
ant dist
popd


## build.xml que tira de netbeans:
# ant -propertyfile %{SOURCE1} jar release


cp %{SOURCE3} build.xml
ant dist

%install 
rm -Rf $RPM_BUILD_ROOT

#install our jar file
#make some install dirs
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_javadir}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{namer}/docs
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{namer}/images

install -pm  0755 dist/OmegaT.jar $RPM_BUILD_ROOT%{_javadir}/OmegaT-%{version}.jar
install -pm  0755 lib-mnemonics/dist/lib-mnemonics.jar $RPM_BUILD_ROOT%{_javadir}/OmegaT-lib-mnemonics-%{version}.jar

pushd $RPM_BUILD_ROOT%{_javadir}
	ln -s OmegaT-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/OmegaT.jar
	ln -s OmegaT-lib-mnemonics-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/lib-mnemonics.jar
popd

cp -pR release/index.html docs/ images/ $RPM_BUILD_ROOT%{_datadir}/%{namer}/

# this directory should dissapear as soon the internal jars dissapear:
#mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{namer}/lib
#cp -pR  dist/lib/  $RPM_BUILD_ROOT%{_datadir}/%{namer}/
#rm $RPM_BUILD_ROOT%{_datadir}/%{namer}/lib/MRJAdapter.jar

## now we used the packaged icon, not sure if it's a problem to use it from /usr/share/omegat/images/OmegaT.png
## install -p %SOURCE1 $RPM_BUILD_ROOT/%{_iconsdir}/%{namer}.png

#create our launch wrapper script
cat > $RPM_BUILD_ROOT%{_bindir}/%{namer} <<EOF
#!/bin/sh
. %{_datadir}/java-utils/java-functions
java -jar %{_javadir}/OmegaT.jar $*

EOF

#make our launch wrapper executable
chmod +x $RPM_BUILD_ROOT%{_bindir}/*

#Menu entry
install -d -m755 %{buildroot}%{_datadir}/applications

cat > %{buildroot}%{_datadir}/applications/fedora-%{namer}.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Name=%name
Exec=%{namer}
Icon=/usr/share/omegat/images/OmegaT.png
Comment=Computer Aid Translation tool
Comment[es]=Herramienta de asistencia a la traducción
Terminal=false
Type=Application
Categories=Translation;Java;Office;
X-AppInstall-Package=%{namer}
EOF

desktop-file-install  --vendor "fedora" --dir=%{buildroot}%{_datadir}/applications/ %{buildroot}%{_datadir}/applications/fedora-%{namer}.desktop 

# ant -propertyfile %{SOURCE1} javadoc
# mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
# cp -rp dist/javadoc/ $RPM_BUILD_ROOT%{_javadocdir}/%{name}

# fixing end of line making rpmlint happy
dos2unix -k release/*.txt

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,0755)
%dir %{_datadir}/%{namer}
%{_datadir}/%{namer}/*
%{_bindir}/*
%{_javadir}/*
%{_datadir}/applications/fedora-%{namer}.desktop
#%{_iconsdir}/%{namer}.png

%doc ./release/changes.txt release/doc-license.txt release/license.txt release/readme*.txt release/join.html

# %files javadoc
# %defattr(-,root,root,-)
# %{_javadocdir}/*


%changelog
* Thu Sep 18 2008 Ismael Olea <ismael at olea.org> 1.7.3_03-5
- QA changes

* Wed Sep 17 2008 Ismael Olea <ismael at olea.org> 1.7.3_03-4
- minor and cosmetic changes

* Wed Aug 27 2008 Ismael Olea <ismael at olea.org> 1.7.3_03-3olea
- new build.xml for removing org-netbeans-modules-java-j2seproject-copylibstask.jar dependency
- not javadoc support now
- OmegaT-ant.properties not needed by this build.xml

* Wed Aug 27 2008 Ismael Olea <ismael at olea.org> 1.7.3_03-2olea
- cleaning dependencies, apparently running, lack paths configs

* Tue Aug 26 2008 Ismael Olea <ismael at olea.org> 1.7.3_03-1olea
- updating to 1.7.3_03 version

* Fri Jul 4 2008 Ismael Olea <ismael at olea.org> 1.7.3_02-1olea
- updating to 1.7.3_02 version

* Mon Feb 11 2008 Ismael Olea <ismael at olea.org> 1.7.3-5olea
- fixing according to https://bugzilla.redhat.com/show_bug.cgi?id=428798#c3
- comments on https://bugzilla.redhat.com/show_bug.cgi?id=428798#c4

* Sun Feb 10 2008 Ismael Olea <ismael at olea.org> 1.7.3-4olea
- fixing according to https://bugzilla.redhat.com/show_bug.cgi?id=428798#c1

* Mon Jan 21 2008 Ismael Olea <ismael at olea.org> 1.7.3-3olea
- rpmlinting

* Wed Jan 9 2008 Ismael Olea <ismael at olea.org> 1.7.3-2olea
- Compiling from sources

* Wed Jan 9 2008 Ismael Olea <ismael at olea.org> 1.7.3-1olea
- updating to 1.7.3

* Wed Jan 9 2008 Ismael Olea <ismael at olea.org> 1.7.2-1olea
- compiling on Fedora

* Fri Nov 12 2007 Patred Theknight <edupclos at gmail.com>1.7.2-1pclos_edulos
- Initial Build 


--- NEW FILE import.log ---
OmegaT-1_7_3_03-5olea:HEAD:OmegaT-1.7.3_03-5olea.src.rpm:1223306755


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/OmegaT/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	6 Oct 2008 09:55:28 -0000	1.1
+++ .cvsignore	6 Oct 2008 15:26:59 -0000	1.2
@@ -0,0 +1 @@
+OmegaT_1.7.3_03_Source.zip


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/OmegaT/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	6 Oct 2008 09:55:28 -0000	1.1
+++ sources	6 Oct 2008 15:26:59 -0000	1.2
@@ -0,0 +1 @@
+a509b00a5656b37d7563a03accc7e76d  OmegaT_1.7.3_03_Source.zip




More information about the fedora-extras-commits mailing list