From f5ec81f0b9f4f90fe77af293109488ae4c7b61b4 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 23 2015 08:10:21 +0000 Subject: import rh-java-common-google-gson-2.2.2-8.3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d71fe1d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/google-gson-2.2.2.tar.xz diff --git a/.rh-java-common-google-gson.metadata b/.rh-java-common-google-gson.metadata new file mode 100644 index 0000000..f4a4da2 --- /dev/null +++ b/.rh-java-common-google-gson.metadata @@ -0,0 +1 @@ +5ec5ba6c7c65e04875f1bbbd60e07601cca85640 SOURCES/google-gson-2.2.2.tar.xz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/google-gson.spec b/SPECS/google-gson.spec new file mode 100644 index 0000000..0f91f37 --- /dev/null +++ b/SPECS/google-gson.spec @@ -0,0 +1,123 @@ +%global short_name gson +%global group_id com.google.code.gson + +%global pkg_name google-%{short_name} +%{?scl:%scl_package %{pkg_name}} +%{?java_common_find_provides_and_requires} + +Name: %{?scl_prefix}%{pkg_name} + +Version: 2.2.2 +Release: 8.3%{?dist} +Summary: Java lib for conversion of Java objects into JSON representation +License: ASL 2.0 +Group: Development/Libraries +URL: http://code.google.com/p/%{%{pkg_name}} +# request for tarball: http://code.google.com/p/google-gson/issues/detail?id=283 +# svn export http://google-gson.googlecode.com/svn/tags/gson-%{version} google-gson-%{version} +# tar caf google-gson-%{version}.tar.xz google-gson-%{version} +Source0: %{pkg_name}-%{version}.tar.xz + +BuildArch: noarch + +BuildRequires: java-1.7.0-openjdk-devel +BuildRequires: %{?scl_prefix}maven-local +BuildRequires: %{?scl_prefix_maven}maven-surefire-provider-junit +BuildRequires: %{?scl_prefix_maven}maven-install-plugin +BuildRequires: %{?scl_prefix_maven}maven-enforcer-plugin + +Requires: java +%{?scl:Requires: %scl_runtime} + +%description +Gson is a Java library that can be used to convert a Java object into its +JSON representation. It can also be used to convert a JSON string into an +equivalent Java object. Gson can work with arbitrary Java objects including +pre-existing objects that you do not have source-code of. + +%prep +%setup -q -n %{pkg_name}-%{version} + +# convert CR+LF to LF +sed -i 's/\r//g' LICENSE + +scl enable %{scl_maven} %{scl} - <<"EOF" +%mvn_file : %{pkg_name} +EOF + +%build +scl enable %{scl_maven} %{scl} - <<"EOF" +# LANG="C" or LANG="en_US.utf8" needed for the tests +%mvn_build -fj +EOF + +%install +scl enable %{scl_maven} %{scl} - <<"EOF" +%mvn_install +EOF + +%files -f .mfiles +%doc LICENSE README + +%changelog +* Tue Jan 13 2015 Michael Simacek - 2.2.2-8.3 +- Mass rebuild 2015-01-13 + +* Fri Jan 09 2015 Michal Srb - 2.2.2-8.2 +- Mass rebuild 2015-01-09 + +* Tue Jan 06 2015 Michael Simacek - 2.2.2-8.1 +- Migrate to mvn_build + +* Tue Dec 16 2014 Mikolaj Izdebski - 2.2.2-8 +- Migrate requires and build-requires to rh-java-common + +* Mon Dec 15 2014 Mikolaj Izdebski - 2.2.2-7 +- Mass rebuild 2014-12-15 + +* Mon Dec 15 2014 Mikolaj Izdebski - 2.2.2-6 +- Rebuild for rh-java-common collection + +* Tue May 27 2014 Sami Wagiaalla 2.2.2-5 +- Enable maven scl for add_maven_depmap. + +* Fri May 23 2014 Sami Wagiaalla 2.2.2-5 +- Add missing maven deps. + +* Thu May 22 2014 Sami Wagiaalla 2.2.2-5 +- build for DTS 3 + +* Thu Apr 4 2013 Krzysztof Daniel 2.2.2-4 +- Drop R dependency to java 7. +- Drop javadoc subpackage. + +* Mon Feb 18 2013 Krzysztof Daniel 2.2.2-3 +- Initial contribution to SCL. + +* Wed Dec 19 2012 Severin Gehwolf 2.2.2-2 +- Add BR for surefire junit provider. + +* Wed Dec 19 2012 Severin Gehwolf 2.2.2-1 +- Update to latest upstream release. + +* Thu Jul 19 2012 Fedora Release Engineering - 2.2.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jul 2 2012 Alexander Kurtakov 2.2.1-2 +- Add missing BR on maven-enforcer-plugin. +- Remove no longer needed parts of the spec. + +* Mon Jul 2 2012 Krzysztof Daniel 2.2.1-1 +- Update to latest upstream 2.2.1 + +* Fri Jan 13 2012 Fedora Release Engineering - 1.7.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri May 13 2011 Jaromir Capik - 1.7.1-3 +- Removal of failing testInetAddressSerializationAndDeserialization + +* Wed May 11 2011 Jaromir Capik - 1.7.1-2 +- Conversion of CR+LF to LF in the license file + +* Tue May 10 2011 Jaromir Capik - 1.7.1-1 +- Initial version of the package