From bb20812361764815196b2e0b1d604f2311778827 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 30 2014 09:32:50 +0000 Subject: import devtoolset-3-objenesis-1.2-16.1.el7 --- diff --git a/.devtoolset-3-objenesis.metadata b/.devtoolset-3-objenesis.metadata new file mode 100644 index 0000000..b904326 --- /dev/null +++ b/.devtoolset-3-objenesis.metadata @@ -0,0 +1 @@ +f00bb2fb04d15bd4e2b3289543c1285f7fda776d SOURCES/objenesis-1.2.tar.xz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cae501e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/objenesis-1.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/SOURCES/001-objenesis-fix-build.patch b/SOURCES/001-objenesis-fix-build.patch new file mode 100644 index 0000000..c235271 --- /dev/null +++ b/SOURCES/001-objenesis-fix-build.patch @@ -0,0 +1,116 @@ +--- A/main/pom.xml 2009-08-27 00:15:13.000000000 +0200 ++++ B/main/pom.xml 2010-05-10 14:44:07.634785201 +0200 +@@ -38,7 +38,7 @@ + maven-timestamp-plugin + + +- com.google.code.maven-license-plugin ++ com.mycila.maven-license-plugin + maven-license-plugin + + +--- A/pom.xml 2009-08-26 23:12:00.000000000 +0200 ++++ B/pom.xml 2010-05-10 14:44:07.635789574 +0200 +@@ -203,9 +203,9 @@ + + + +- com.google.code.maven-license-plugin ++ com.mycila.maven-license-plugin + maven-license-plugin +- 1.4.0 ++ 1.6.1 + +
${basedir}/../header.txt
+ +@@ -291,7 +291,7 @@ + + + +- com.google.code.maven-license-plugin ++ com.mycila.maven-license-plugin + maven-license-plugin + + +--- A/tck/pom.xml 2009-08-26 23:27:20.000000000 +0200 ++++ B/tck/pom.xml 2010-05-10 14:52:36.424792684 +0200 +@@ -34,70 +34,6 @@ + ${project.version} + + +- +- +- +- org.springframework.osgi +- spring-osgi-test +- 1.2.0 +- test +- +- +- org.springframework.osgi +- spring-osgi-annotation +- 1.2.0 +- test +- +- +- org.springframework.osgi +- spring-osgi-extender +- 1.2.0 +- test +- +- +- +- +- org.slf4j +- com.springsource.slf4j.org.apache.commons.logging +- 1.5.0 +- test +- +- +- org.slf4j +- com.springsource.slf4j.api +- 1.5.0 +- test +- +- +- org.slf4j +- com.springsource.slf4j.log4j +- 1.5.0 +- test +- +- +- log4j +- log4j +- +- +- com.springsource.org.apache.log4j +- org.apache.log4j +- +- +- +- +- org.springframework.osgi +- log4j.osgi +- 1.2.15-SNAPSHOT +- test +- +- +- +- +- org.eclipse.osgi +- org.eclipse.osgi +- 3.2.2 +- test +- + + + +@@ -107,7 +43,7 @@ + maven-timestamp-plugin + + +- com.google.code.maven-license-plugin ++ com.mycila.maven-license-plugin + maven-license-plugin + + diff --git a/SOURCES/JRockitInstantntiatorCharacters.patch b/SOURCES/JRockitInstantntiatorCharacters.patch new file mode 100644 index 0000000..19d8e48 --- /dev/null +++ b/SOURCES/JRockitInstantntiatorCharacters.patch @@ -0,0 +1,24 @@ +diff -r a6eb6f4f2a1b objenesis-1.2/main/src/org/objenesis/instantiator/jrockit/JRockit131Instantiator.java +--- a/objenesis-1.2/main/src/org/objenesis/instantiator/jrockit/JRockit131Instantiator.java Mon Feb 20 09:13:19 2012 +0100 ++++ b/objenesis-1.2/main/src/org/objenesis/instantiator/jrockit/JRockit131Instantiator.java Mon Feb 20 09:15:05 2012 +0100 +@@ -7,7 +7,7 @@ + * + * BEA does not guarantee that the code works, and provides no support for it. Use at your own risk. + * +- * Originally developed by Leonardo Mesquita. Copyright notice added by Henrik St�hl, BEA JRockit Product Manager. ++ * Originally developed by Leonardo Mesquita. Copyright notice added by Henrik St\u00E0hl, BEA JRockit Product Manager. + * + */ + package org.objenesis.instantiator.jrockit; +diff -r a6eb6f4f2a1b objenesis-1.2/main/src/org/objenesis/instantiator/jrockit/JRockitLegacyInstantiator.java +--- a/objenesis-1.2/main/src/org/objenesis/instantiator/jrockit/JRockitLegacyInstantiator.java Mon Feb 20 09:13:19 2012 +0100 ++++ b/objenesis-1.2/main/src/org/objenesis/instantiator/jrockit/JRockitLegacyInstantiator.java Mon Feb 20 09:15:05 2012 +0100 +@@ -7,7 +7,7 @@ + * + * BEA does not guarantee that the code works, and provides no support for it. Use at your own risk. + * +- * Originally developed by Leonardo Mesquita. Copyright notice added by Henrik St�hl, BEA JRockit Product Manager. ++ * Originally developed by Leonardo Mesquita. Copyright notice added by Henrik St\u00E0hl, BEA JRockit Product Manager. + * + */ + diff --git a/SPECS/objenesis.spec b/SPECS/objenesis.spec new file mode 100644 index 0000000..6d01f1b --- /dev/null +++ b/SPECS/objenesis.spec @@ -0,0 +1,216 @@ +# Copyright (c) 2000-2009, JPackage Project +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the +# distribution. +# 3. Neither the name of the JPackage Project nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +%{?scl:%scl_package objenesis} +%{!?scl:%global pkg_name %{name}} +%{!?maven_scl:%global maven_scl_prefix %{nil}} + +Summary: A library for instantiating Java objects +Name: %{?scl_prefix}objenesis +Version: 1.2 +Release: 16.1%{?dist} +Group: Development/Libraries +License: ASL 2.0 +URL: http://objenesis.org/ +# svn export http://objenesis.googlecode.com/svn/tags/1_2/ objenesis-1.2 +# tar cfJ objenesis-1.2.tar.xz objenesis-1.2 +Source0: %{pkg_name}-%{version}.tar.xz + +# Skipping website (requires xsite), this patch is unused atm +#Patch0: objenesis-website-pom.patch + +# Remove deps for test scope (unavailable); fix +# maven-license-plugin groupID to latest version available. +Patch1: 001-objenesis-fix-build.patch +Patch2: JRockitInstantntiatorCharacters.patch + +BuildRequires: jpackage-utils +BuildRequires: java-devel +BuildRequires: junit +BuildRequires: maven-local +BuildRequires: maven-shade-plugin +BuildRequires: xpp3-minimal +BuildRequires: objectweb-asm +BuildRequires: apache-resource-bundles + +BuildArch: noarch + +%description +Objenesis is a small Java library that serves one purpose: to instantiate +a new object of a particular class. +Java supports dynamic instantiation of classes using Class.newInstance(); +however, this only works if the class has an appropriate constructor. There +are many times when a class cannot be instantiated this way, such as when +the class contains constructors that require arguments, that have side effects, +and/or that throw exceptions. As a result, it is common to see restrictions +in libraries stating that classes must require a default constructor. +Objenesis aims to overcome these restrictions by bypassing the constructor +on object instantiation. Needing to instantiate an object without calling +the constructor is a fairly specialized task, however there are certain cases +when this is useful: +* Serialization, Remoting and Persistence - Objects need to be instantiated + and restored to a specific state, without invoking code. +* Proxies, AOP Libraries and Mock Objects - Classes can be sub-classed without + needing to worry about the super() constructor. +* Container Frameworks - Objects can be dynamically instantiated in + non-standard ways. + + +%package javadoc +Group: Documentation +Summary: Javadoc for %{pkg_name} +BuildArch: noarch + +%description javadoc +This package contains the API documentation for %{pkg_name}. + + +# Skipped till xsite avilable in fedora +#%%package manual +#Group: Documentation +#Summary: Documents for %%{name} +# +#%%description manual +#This package contains the %%{name} manual. + + +%prep +%setup -q -n %{pkg_name}-%{version} +#%%patch0 -b .sav0 +%patch1 -p1 +%patch2 -p2 +scl enable %{scl} - <<"EOF" +# Enable generation of pom.properties (rhbz#1017850) +%pom_xpath_remove pom:addMavenDescriptor +%pom_remove_plugin com.mycila.maven-license-plugin:maven-license-plugin +%pom_remove_plugin com.keyboardsamurais.maven:maven-timestamp-plugin +EOF + + +%build +scl enable %{scl} - <<"EOF" +# tests are skipped because of missing dependency spring-osgi-test +%mvn_build -- -Dyear=2009 -Dmaven.test.skip=true + +# Below is for manual (requires xsite), skipped +#pushd website +#mvn-jpp -e \ +# -s ${M2SETTINGS} \ +# -Dmaven.repo.local=$MAVEN_REPO_LOCAL \ +# -Dmaven2.jpp.depmap.file=%%{SOURCE1} \ +# antrun:run +#popd +EOF + + +%install +scl enable %{scl} - <<"EOF" +%mvn_install +EOF + + +%files -f .mfiles +%dir %{_javadir}/%{pkg_name} +%doc LICENSE.txt + +%files javadoc -f .mfiles-javadoc +%doc LICENSE.txt + + +%changelog +* Tue Jun 3 2014 Alexander Kurtakov 1.2-16.1 +- Fix dist macro. + +* Thu Oct 10 2013 Mikolaj Izdebski - 1.2-16 +- Enable generation of pom.properties +- Resolves: rhbz#1017850 + +* Sun Sep 08 2013 Mat Booth - 1.2-15 +- Update for latest guidelines, rhbz #992389 + +* Sat Aug 03 2013 Fedora Release Engineering - 1.2-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 1.2-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Feb 06 2013 Java SIG - 1.2-12 +- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild +- Replace maven BuildRequires with maven-local + +* Fri Jul 20 2012 Fedora Release Engineering - 1.2-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon May 14 2012 Guido Grazioli 1.2-10 +- Update to current Java packaging guidelines +- Remove maven-eclipse-plugin BR + +* Mon Feb 20 2012 Jiri Vanek 1.2-9 +- Added patch2 - JRockitInstantntiatorCharacters.patch to fix unmappable characters +- Added build requires apache-resource-bundles and maven-remote-resources-plugin + +* Fri Jan 13 2012 Fedora Release Engineering - 1.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon May 09 2011 Guido Grazioli 1.2-7 +- Improve project description + +* Thu Feb 24 2011 Guido Grazioli 1.2-6 +- Build with mvn-rpmbuild +- Fix License +- Comment on skipped tests + +* Fri Feb 04 2011 Guido Grazioli 1.2-5 +- Build with maven 3 + +* Sun Jan 23 2011 Guido Grazioli 1.2-4 +- Drop buildroot and %%clean section +- Drop use of maven2-settings.xml and jpp-depmap.xml +- Install unversioned jars +- Clean up of needed patch and mvn-jpp execution + +* Tue Jan 18 2011 Guido Grazioli 1.2-3 +- Fix build in rawhide + +* Sat Dec 04 2010 Guido Grazioli 1.2-2 +- Fix build in rawhide +- Update to new Java Packaging Guidelines + +* Mon May 10 2010 Guido Grazioli 1.2-1 +- Update to 1.2 + +* Thu May 06 2010 Guido Grazioli 1.0-1 +- Import from JPackage + +* Fri Feb 27 2009 Ralph Apel 0:1.0-2.jpp5 +- BR xpp3-minimal and fix depmap accordingly +- Disown poms and fragments dirs + +* Wed Jun 18 2008 Ralph Apel 0:1.0-1.jpp5 +- First release