|
|
8401eb |
%{?scl:%scl_package google-gson}
|
|
|
8401eb |
%{!?scl:%global pkg_name %{name}}
|
|
|
8401eb |
%{!?maven_scl:%global maven_scl_prefix %{nil}}
|
|
|
8401eb |
|
|
|
8401eb |
%global short_name gson
|
|
|
8401eb |
%global group_id com.google.code.gson
|
|
|
8401eb |
|
|
|
8401eb |
Name: %{?scl_prefix}google-%{short_name}
|
|
|
8401eb |
Version: 2.2.2
|
|
|
8401eb |
Release: 5%{?dist}
|
|
|
8401eb |
Summary: Java lib for conversion of Java objects into JSON representation
|
|
|
8401eb |
License: ASL 2.0
|
|
|
8401eb |
Group: Development/Libraries
|
|
|
8401eb |
URL: http://code.google.com/p/%{%{pkg_name}}
|
|
|
8401eb |
# request for tarball: http://code.google.com/p/google-gson/issues/detail?id=283
|
|
|
8401eb |
# svn export http://google-gson.googlecode.com/svn/tags/gson-%{version} google-gson-%{version}
|
|
|
8401eb |
# tar caf google-gson-%{version}.tar.xz google-gson-%{version}
|
|
|
8401eb |
Source0: %{pkg_name}-%{version}.tar.xz
|
|
|
8401eb |
|
|
|
8401eb |
BuildArch: noarch
|
|
|
8401eb |
|
|
|
8401eb |
BuildRequires: java-1.7.0-openjdk-devel
|
|
|
8401eb |
BuildRequires: jpackage-utils
|
|
|
8401eb |
BuildRequires: %{maven_scl_prefix}maven-local
|
|
|
8401eb |
BuildRequires: %{maven_scl_prefix}maven-surefire-provider-junit
|
|
|
8401eb |
BuildRequires: %{maven_scl_prefix}maven-install-plugin
|
|
|
8401eb |
BuildRequires: %{maven_scl_prefix}maven-enforcer-plugin
|
|
|
8401eb |
|
|
|
8401eb |
Requires: java
|
|
|
8401eb |
Requires: jpackage-utils
|
|
|
8401eb |
%{?scl:Requires: %scl_runtime}
|
|
|
8401eb |
|
|
|
8401eb |
%description
|
|
|
8401eb |
Gson is a Java library that can be used to convert a Java object into its
|
|
|
8401eb |
JSON representation. It can also be used to convert a JSON string into an
|
|
|
8401eb |
equivalent Java object. Gson can work with arbitrary Java objects including
|
|
|
8401eb |
pre-existing objects that you do not have source-code of.
|
|
|
8401eb |
|
|
|
8401eb |
%prep
|
|
|
8401eb |
%setup -q -n %{pkg_name}-%{version}
|
|
|
8401eb |
|
|
|
8401eb |
# convert CR+LF to LF
|
|
|
8401eb |
sed -i 's/\r//g' LICENSE
|
|
|
8401eb |
|
|
|
8401eb |
%build
|
|
|
8401eb |
scl enable %{scl} - <<"EOF"
|
|
|
8401eb |
# LANG="C" or LANG="en_US.utf8" needed for the tests
|
|
|
8401eb |
xmvn install -Dmaven.test.skip=true
|
|
|
8401eb |
EOF
|
|
|
8401eb |
|
|
|
8401eb |
%install
|
|
|
8401eb |
# jars
|
|
|
8401eb |
install -d -m 755 %{buildroot}%{_javadir}
|
|
|
8401eb |
install -p -m 644 target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{pkg_name}.jar
|
|
|
8401eb |
|
|
|
8401eb |
# pom
|
|
|
8401eb |
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
|
|
8401eb |
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{pkg_name}.pom
|
|
|
8401eb |
%add_maven_depmap JPP-%{pkg_name}.pom %{pkg_name}.jar
|
|
|
8401eb |
|
|
|
8401eb |
%files
|
|
|
8401eb |
%doc LICENSE README
|
|
|
8401eb |
%{_javadir}/%{pkg_name}.jar
|
|
|
8401eb |
%{_mavenpomdir}/JPP-%{pkg_name}.pom
|
|
|
8401eb |
%{_mavendepmapfragdir}/%{pkg_name}
|
|
|
8401eb |
|
|
|
8401eb |
%changelog
|
|
|
8401eb |
* Fri May 23 2014 Sami Wagiaalla <swagiaal@redhat.com> 2.2.2-5
|
|
|
8401eb |
- Add missing maven deps.
|
|
|
8401eb |
|
|
|
8401eb |
* Thu May 22 2014 Sami Wagiaalla <swagiaal@redhat.com> 2.2.2-5
|
|
|
8401eb |
- build for DTS 3
|
|
|
8401eb |
|
|
|
8401eb |
* Thu Apr 4 2013 Krzysztof Daniel <kdaniel@redhat.com> 2.2.2-4
|
|
|
8401eb |
- Drop R dependency to java 7.
|
|
|
8401eb |
- Drop javadoc subpackage.
|
|
|
8401eb |
|
|
|
8401eb |
* Mon Feb 18 2013 Krzysztof Daniel <kdaniel@redhat.com> 2.2.2-3
|
|
|
8401eb |
- Initial contribution to SCL.
|
|
|
8401eb |
|
|
|
8401eb |
* Wed Dec 19 2012 Severin Gehwolf <sgehwolf@redhat.com> 2.2.2-2
|
|
|
8401eb |
- Add BR for surefire junit provider.
|
|
|
8401eb |
|
|
|
8401eb |
* Wed Dec 19 2012 Severin Gehwolf <sgehwolf@redhat.com> 2.2.2-1
|
|
|
8401eb |
- Update to latest upstream release.
|
|
|
8401eb |
|
|
|
8401eb |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-3
|
|
|
8401eb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
8401eb |
|
|
|
8401eb |
* Mon Jul 2 2012 Alexander Kurtakov <akurtako@redhat.com> 2.2.1-2
|
|
|
8401eb |
- Add missing BR on maven-enforcer-plugin.
|
|
|
8401eb |
- Remove no longer needed parts of the spec.
|
|
|
8401eb |
|
|
|
8401eb |
* Mon Jul 2 2012 Krzysztof Daniel <kdaniel@redhat.com> 2.2.1-1
|
|
|
8401eb |
- Update to latest upstream 2.2.1
|
|
|
8401eb |
|
|
|
8401eb |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.1-4
|
|
|
8401eb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
8401eb |
|
|
|
8401eb |
* Fri May 13 2011 Jaromir Capik <jcapik@redhat.com> - 1.7.1-3
|
|
|
8401eb |
- Removal of failing testInetAddressSerializationAndDeserialization
|
|
|
8401eb |
|
|
|
8401eb |
* Wed May 11 2011 Jaromir Capik <jcapik@redhat.com> - 1.7.1-2
|
|
|
8401eb |
- Conversion of CR+LF to LF in the license file
|
|
|
8401eb |
|
|
|
8401eb |
* Tue May 10 2011 Jaromir Capik <jcapik@redhat.com> - 1.7.1-1
|
|
|
8401eb |
- Initial version of the package
|