commit 390d6956f471e397c94c2ed078cce903f7915305 Author: gil puntogil@libero.it Date: Mon Jan 19 00:42:59 2015 +0100
Initial import (#1179342).
.gitignore | 1 + sources | 1 + ua-parser-java.spec | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..327f46f 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/java-1.3.0.tar.gz diff --git a/sources b/sources index e69de29..a1cdc99 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +39759362451e861a168272769ad39492 java-1.3.0.tar.gz diff --git a/ua-parser-java.spec b/ua-parser-java.spec new file mode 100644 index 0000000..360534b --- /dev/null +++ b/ua-parser-java.spec @@ -0,0 +1,57 @@ +%global oname ua-parser +Name: ua-parser-java +Version: 1.3.0 +Release: 1%{?dist} +Summary: Java implementation of user agent parser +License: ASL 2.0 +URL: https://github.com/tobie/ua-parser/ +Source0: https://github.com/tobie/ua-parser/archive/java-%%7Bversion%7D.tar.gz + +BuildRequires: mvn(commons-collections:commons-collections) +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.hamcrest:hamcrest-all) +BuildRequires: mvn(org.yaml:snakeyaml) + +BuildRequires: maven-local +BuildArch: noarch + +%description +This is the Java implementation of ua-parser. The +implementation uses the shared regex patterns and +overrides from regexes.yaml. + +%package javadoc +Summary: Javadoc for %{name} + +%description javadoc +This package contains javadoc for %{name}. + +%prep +%setup -q -n %{name}-%{version} +find . -name "*.jar" -print -delete +find . -name "*.class" -print -delete +find . -name "*.exe" -print -delete +find . -name "*.dll" -print -delete + +# Unwanted +%pom_remove_plugin :maven-source-plugin java + +%build + +cd java +%mvn_file :%{oname} %{oname} +%mvn_build + +%install +cd java +%mvn_install + +%files -f java/.mfiles +%doc java/LICENSE java/README.md + +%files javadoc -f java/.mfiles-javadoc +%doc java/LICENSE + +%changelog +* Fri Mar 07 2014 gil cattaneo puntogil@libero.it 1.3.0-1 +- initial rpm
java-sig-commits@lists.fedoraproject.org