Name: egothor2
Version: 3.1.6
Release: 1%{?dist}
Summary: Java text search engine
License: Egothor Software License version 2.00
URL: http://www.egothor.org/product/%{name}/
# git clone git://www.egothor.org/egothor2.git egothor2-3.1.6
# (cd egothor2-3.1.6/ && git archive --format=tar --prefix=egothor2-3.1.6/ egothor2-3.1.6 | xz > ../egothor2-3.1.6.tar.xz)
Source0: %{name}-%{version}.tar.xz
BuildRequires: itext-core
BuildRequires: java-devel
BuildRequires: java-diff
BuildRequires: junit
BuildRequires: libdb-java
BuildRequires: maven-local
BuildRequires: nekohtml
BuildArch: noarch
%description
Java search library and applications, plagiarism detection system.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q
%pom_remove_plugin de.smartics.maven.plugin:bugzilla-maven-plugin
# fix non ASCII chars
for s in $(find . -name "*.java");do
native2ascii -encoding UTF8 ${s} ${s}
done
%pom_xpath_set "pom:project/pom:properties/pom:project.build.sourceEncoding" UTF-8
# No pom or depmap for db JAR
%pom_xpath_inject "pom:dependencies/pom:dependency[pom:artifactId = 'com.sleepycat']" "
system
$(build-classpath db)"
%pom_xpath_set "pom:project/pom:dependencies/pom:dependency[pom:artifactId = 'nekohtml']/pom:groupId" net.sourceforge.nekohtml
%build
%mvn_file : %{name}
%mvn_build -f
%install
%mvn_install
%files -f .mfiles
%doc LICENSE.txt NOTICE.txt
%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt
%changelog
* Sat Nov 02 2013 gil cattaneo 3.1.6-1
- initial rpm