commit dace0890beb275083eca8fc8006102e01194b6f4
Author: Michael Simacek <msimacek(a)redhat.com>
Date: Thu May 1 15:47:26 2014 +0200
Initial import
.gitignore | 2 +
jortho-template.pom | 44 +++++++++++++++++++++++++++++++++++
jortho.spec | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 2 +
4 files changed, 111 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..254e5bb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/JOrtho_1.0.zip
+/dictionary_en_2013_03.zip
diff --git a/jortho-template.pom b/jortho-template.pom
new file mode 100644
index 0000000..c17dd2f
--- /dev/null
+++ b/jortho-template.pom
@@ -0,0 +1,44 @@
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>com.inet.jortho</groupId>
+ <artifactId>jortho</artifactId>
+ <version>@VERSION@</version>
+ <packaging>jar</packaging>
+
+ <name>JOrtho</name>
+ <url>http://jortho.sourceforge.net</url>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+
+ <build>
+ <sourceDirectory>src</sourceDirectory>
+ <resources>
+ <resource>
+ <directory>src</directory>
+ <includes>
+ <include>**/*.cnf</include>
+ <include>**/*.properties</include>
+ </includes>
+ <excludes>
+ <exclude>**/*.java</exclude>
+ </excludes>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.0</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git a/jortho.spec b/jortho.spec
new file mode 100644
index 0000000..29734ef
--- /dev/null
+++ b/jortho.spec
@@ -0,0 +1,63 @@
+Name: jortho
+Version: 1.0
+Release: 1%{?dist}
+Summary: A spell checker for Java
+License: GPLv2+
+URL:
http://jortho.sourceforge.net/
+Source0:
http://downloads.sourceforge.net/project/jortho/JOrtho%20Library/1.0/JOrt...
+Source1:
http://downloads.sourceforge.net/project/jortho/Dictionaries/2013-03/dict...
+Source2: jortho-template.pom
+
+BuildArch: noarch
+BuildRequires: maven-local
+
+%description
+JOrtho is a spell checker for Java. The library works with any
+JTextComponent from the Swing framework and checks as you type.
+The dictionary is based on the free
Wiktionary.org, and is
+applicable for multiple languages. You can select the
+spell checking language via a context menu. The features
+of JOrtho are the highlighting of potentially wrongly spelled words,
+a context menu with suggestions for correct forms of the word
+and a context menu with option to change the checking language.
+At the moment there are eight languages for spell checking available:
+English, German, French, Spanish, Italian, Russian, Polish, and Arabic.
+
+%package javadoc
+Summary: API documentation for %{name}
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%setup -q -c
+find -name '*.class' -exec rm -f '{}' \;
+find -name '*.jar' -exec rm -f '{}' \;
+find -name '*.zip' -exec rm -f '{}' \;
+
+unzip %SOURCE1 -d dicts/
+
+sed 's/@VERSION@/%{version}/g' %SOURCE2 > pom.xml
+
+%mvn_file : %{name}
+
+%build
+%mvn_build
+
+%install
+%mvn_install
+
+mkdir -p %{buildroot}%{_datadir}/%{name}
+install -pm 644 dicts/dictionary_en.ortho %{buildroot}%{_datadir}/%{name}/
+
+%files -f .mfiles
+%doc license.txt
+%doc manual.html
+%{_datadir}/%{name}
+
+%files javadoc -f .mfiles-javadoc
+%doc license.txt
+
+%changelog
+* Mon Apr 28 2014 Michael Simacek <msimacek(a)redhat.com> - 1.0-1
+- Initial version
diff --git a/sources b/sources
index e69de29..0a4784d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+0c2f66a4cb1dd492125fd65009382db6 JOrtho_1.0.zip
+96c15a5db2177c3721d2f3196bbfabcb dictionary_en_2013_03.zip