Name: krati Version: 0.4.9 Release: 1%{?dist} Summary: A hash-based high-performance data store Group: Development/Libraries License: ASL 2.0 URL: https://github.com/jingwei/krati/ # wget -O krati-rel-0.4.9.zip https://codeload.github.com/jingwei/krati/zip/rel-0.4.9 Source0: %{name}-rel-%{version}.zip BuildRequires: java-devel BuildRequires: log4j # test deps BuildRequires: junit %if 0 BuildRequires: protobuf-java BuildRequires: mvn(com.sleepycat:je) # module avro BuildRequires: avro == 1.4.0 BuildRequires: slf4j %endif BuildRequires: maven-local BuildRequires: maven-plugin-build-helper BuildRequires: maven-plugin-bundle BuildRequires: maven-source-plugin Requires: log4j Requires: java BuildArch: noarch %description Krati is a simple persistent data store with very low latency and high throughput. It is designed for easy integration with read-write-intensive applications with little effort in tuning configuration, performance and JVM garbage collection. %package javadoc Group: Documentation Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{name}-rel-%{version} find . -name "*.jar" -delete find . -name "*.class" -delete sed -i 's/\r//' LICENSE rm -r %{name}-main/bin/*.sh # com.sleepycat:je:4.0.92 %pom_remove_dep com.sleepycat:je %pom_remove_dep com.sleepycat:je %{name}-main # com.google.protobuf:protobuf-java:2.3.0 %pom_remove_dep com.google.protobuf:protobuf-java %{name}-main %pom_disable_module %{name}-avro %build # unavailable test deps mvn-rpmbuild -Dmaven.test.skip=true package javadoc:aggregate %install mkdir -p %{buildroot}%{_javadir} install -pm 644 %{name}-main/target/%{name}-%{version}.jar \ %{buildroot}%{_javadir}/%{name}.jar mkdir -p %{buildroot}%{_mavenpomdir} install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}-project.pom %add_maven_depmap JPP-%{name}-project.pom install -pm 644 %{name}-main/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap JPP-%{name}.pom %{name}.jar mkdir -p %{buildroot}%{_javadocdir}/%{name} cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} %files %{_javadir}/%{name}.jar %{_mavenpomdir}/JPP-%{name}*.pom %{_mavendepmapfragdir}/%{name} %doc LICENSE README.md %files javadoc %{_javadocdir}/%{name} %doc LICENSE %changelog * Sat Jun 08 2013 gil cattaneo 0.4.9-1 - initial rpm