%global commit 4fe12e8129ccd25498c5d88f5b16bf3984269cc7 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: json-smart Version: 1.3 Release: 0.1.20140820%{?dist} Summary: A small and very fast json parser/generator for java License: ASL 2.0 URL: https://code.google.com/p/json-smart/ # git clone https://code.google.com/p/json-smart.v1 json-smart # tar cJf json-smart-1.2.tar.xz json-smart #Source0: %%{name}-%%{version}.tar.xz Source0: https://github.com/netplex/json-smart-v1/archive/%{commit}/%{name}-v1-%{commit}.tar.gz BuildRequires: mvn(junit:junit) %if %{fedora} >= 21 BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) %else BuildRequires: mvn(org.sonatype.oss:oss-parent) %endif BuildRequires: maven-local BuildArch: noarch %description Json-smart is a performance focused, JSON processor lib. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{name}-v1-%{commit} cp -p parent/pom.xml . sed -i "s|../parent/pom.xml|../pom.xml|" %{name}/pom.xml sed -i "s|../json-smart|json-smart|" pom.xml %pom_remove_plugin :maven-javadoc-plugin %pom_remove_plugin :maven-source-plugin cp -p %{name}/*.txt . %build %mvn_file :%{name} %{name} %mvn_build %install %mvn_install %files -f .mfiles %doc ChangeLog.txt LICENSE.txt readme.txt %files javadoc -f .mfiles-javadoc %doc LICENSE.txt %changelog * Wed Aug 20 2014 gil cattaneo 1.3-0.1.20140820 - update to 1.3 * Thu Jun 12 2014 gil cattaneo 1.2-1 - initial rpm