|
|
66198c |
%global pkg_name objenesis
|
|
|
66198c |
%{?scl:%scl_package %{pkg_name}}
|
|
|
66198c |
%{?java_common_find_provides_and_requires}
|
|
|
66198c |
|
|
|
66198c |
Name: %{?scl_prefix}%{pkg_name}
|
|
|
66198c |
Version: 1.2
|
|
|
66198c |
Release: 16.5%{?dist}
|
|
|
66198c |
Summary: A library for instantiating Java objects
|
|
|
66198c |
License: ASL 2.0
|
|
|
66198c |
URL: http://objenesis.org/
|
|
|
66198c |
# svn export http://objenesis.googlecode.com/svn/tags/1_2/ objenesis-1.2
|
|
|
66198c |
# tar cfJ objenesis-1.2.tar.xz objenesis-1.2
|
|
|
66198c |
Source0: %{pkg_name}-%{version}.tar.xz
|
|
|
66198c |
|
|
|
66198c |
# Skipping website (requires xsite), this patch is unused atm
|
|
|
66198c |
#Patch0: objenesis-website-pom.patch
|
|
|
66198c |
|
|
|
66198c |
# Remove deps for test scope (unavailable); fix
|
|
|
66198c |
# maven-license-plugin groupID to latest version available.
|
|
|
66198c |
Patch1: 001-objenesis-fix-build.patch
|
|
|
66198c |
Patch2: JRockitInstantntiatorCharacters.patch
|
|
|
66198c |
|
|
|
66198c |
BuildRequires: %{?scl_prefix}jpackage-utils
|
|
|
66198c |
BuildRequires: %{?scl_prefix}junit
|
|
|
66198c |
BuildRequires: %{?scl_prefix}maven-local
|
|
|
66198c |
BuildRequires: %{?scl_prefix_maven}maven-shade-plugin
|
|
|
66198c |
BuildRequires: %{?scl_prefix}xpp3-minimal
|
|
|
66198c |
BuildRequires: %{?scl_prefix}objectweb-asm
|
|
|
66198c |
BuildRequires: %{?scl_prefix_maven}apache-resource-bundles
|
|
|
66198c |
|
|
|
66198c |
BuildArch: noarch
|
|
|
66198c |
|
|
|
66198c |
%description
|
|
|
66198c |
Objenesis is a small Java library that serves one purpose: to instantiate
|
|
|
66198c |
a new object of a particular class.
|
|
|
66198c |
Java supports dynamic instantiation of classes using Class.newInstance();
|
|
|
66198c |
however, this only works if the class has an appropriate constructor. There
|
|
|
66198c |
are many times when a class cannot be instantiated this way, such as when
|
|
|
66198c |
the class contains constructors that require arguments, that have side effects,
|
|
|
66198c |
and/or that throw exceptions. As a result, it is common to see restrictions
|
|
|
66198c |
in libraries stating that classes must require a default constructor.
|
|
|
66198c |
Objenesis aims to overcome these restrictions by bypassing the constructor
|
|
|
66198c |
on object instantiation. Needing to instantiate an object without calling
|
|
|
66198c |
the constructor is a fairly specialized task, however there are certain cases
|
|
|
66198c |
when this is useful:
|
|
|
66198c |
* Serialization, Remoting and Persistence - Objects need to be instantiated
|
|
|
66198c |
and restored to a specific state, without invoking code.
|
|
|
66198c |
* Proxies, AOP Libraries and Mock Objects - Classes can be sub-classed without
|
|
|
66198c |
needing to worry about the super() constructor.
|
|
|
66198c |
* Container Frameworks - Objects can be dynamically instantiated in
|
|
|
66198c |
non-standard ways.
|
|
|
66198c |
|
|
|
66198c |
|
|
|
66198c |
%package javadoc
|
|
|
66198c |
Group: Documentation
|
|
|
66198c |
Summary: Javadoc for %{pkg_name}
|
|
|
66198c |
BuildArch: noarch
|
|
|
66198c |
|
|
|
66198c |
%description javadoc
|
|
|
66198c |
This package contains the API documentation for %{pkg_name}.
|
|
|
66198c |
|
|
|
66198c |
|
|
|
66198c |
%prep
|
|
|
66198c |
%setup -q -n %{pkg_name}-%{version}
|
|
|
66198c |
#%%patch0 -b .sav0
|
|
|
66198c |
%patch1 -p1
|
|
|
66198c |
%patch2 -p2
|
|
|
66198c |
scl enable %{scl_maven} %{scl} - <<"EOF"
|
|
|
66198c |
# Enable generation of pom.properties (rhbz#1017850)
|
|
|
66198c |
%pom_xpath_remove pom:addMavenDescriptor
|
|
|
66198c |
%pom_remove_plugin com.mycila.maven-license-plugin:maven-license-plugin
|
|
|
66198c |
%pom_remove_plugin com.keyboardsamurais.maven:maven-timestamp-plugin
|
|
|
66198c |
%pom_xpath_remove pom:extensions
|
|
|
66198c |
EOF
|
|
|
66198c |
|
|
|
66198c |
|
|
|
66198c |
%build
|
|
|
66198c |
scl enable %{scl_maven} %{scl} - <<"EOF"
|
|
|
66198c |
# tests are skipped because of missing dependency spring-osgi-test
|
|
|
66198c |
%mvn_build -- -Dyear=2009 -Dmaven.test.skip=true
|
|
|
66198c |
EOF
|
|
|
66198c |
|
|
|
66198c |
|
|
|
66198c |
%install
|
|
|
66198c |
scl enable %{scl_maven} %{scl} - <<"EOF"
|
|
|
66198c |
%mvn_install
|
|
|
66198c |
EOF
|
|
|
66198c |
|
|
|
66198c |
%files -f .mfiles
|
|
|
66198c |
%dir %{_javadir}/%{pkg_name}
|
|
|
66198c |
%dir %{_mavenpomdir}/%{pkg_name}
|
|
|
66198c |
%doc LICENSE.txt
|
|
|
66198c |
|
|
|
66198c |
%files javadoc -f .mfiles-javadoc
|
|
|
66198c |
%doc LICENSE.txt
|
|
|
66198c |
|
|
|
66198c |
|
|
|
66198c |
%changelog
|
|
|
66198c |
* Wed Jan 14 2015 Michal Srb <msrb@redhat.com> - 1.2-16.5
|
|
|
66198c |
- Fix directory ownership
|
|
|
66198c |
- Fix BR
|
|
|
66198c |
|
|
|
66198c |
* Wed Jan 14 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-16.4
|
|
|
66198c |
- Fix BR
|
|
|
66198c |
|
|
|
66198c |
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 1.2-16.4
|
|
|
66198c |
- Mass rebuild 2015-01-13
|
|
|
66198c |
|
|
|
66198c |
* Fri Jan 9 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-16.3
|
|
|
66198c |
- Mass rebuild 2015-01-09
|
|
|
66198c |
|
|
|
66198c |
* Wed Jan 7 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-16.2
|
|
|
66198c |
- Build for rh-java-common SCL
|
|
|
66198c |
|
|
|
66198c |
* Tue Jun 3 2014 Alexander Kurtakov <akurtako@redhat.com> 1.2-16.1
|
|
|
66198c |
- Fix dist macro.
|
|
|
66198c |
|
|
|
66198c |
* Thu Oct 10 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-16
|
|
|
66198c |
- Enable generation of pom.properties
|
|
|
66198c |
- Resolves: rhbz#1017850
|
|
|
66198c |
|
|
|
66198c |
* Sun Sep 08 2013 Mat Booth <fedora@matbooth.co.uk> - 1.2-15
|
|
|
66198c |
- Update for latest guidelines, rhbz #992389
|
|
|
66198c |
|
|
|
66198c |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-14
|
|
|
66198c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
66198c |
|
|
|
66198c |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-13
|
|
|
66198c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
66198c |
|
|
|
66198c |
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.2-12
|
|
|
66198c |
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
|
|
66198c |
- Replace maven BuildRequires with maven-local
|
|
|
66198c |
|
|
|
66198c |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-11
|
|
|
66198c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
66198c |
|
|
|
66198c |
* Mon May 14 2012 Guido Grazioli <guido.grazioli@gmail.com> 1.2-10
|
|
|
66198c |
- Update to current Java packaging guidelines
|
|
|
66198c |
- Remove maven-eclipse-plugin BR
|
|
|
66198c |
|
|
|
66198c |
* Mon Feb 20 2012 Jiri Vanek <jvanek@redhat.com> 1.2-9
|
|
|
66198c |
- Added patch2 - JRockitInstantntiatorCharacters.patch to fix unmappable characters
|
|
|
66198c |
- Added build requires apache-resource-bundles and maven-remote-resources-plugin
|
|
|
66198c |
|
|
|
66198c |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-8
|
|
|
66198c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
66198c |
|
|
|
66198c |
* Mon May 09 2011 Guido Grazioli <guido.grazioli@gmail.com> 1.2-7
|
|
|
66198c |
- Improve project description
|
|
|
66198c |
|
|
|
66198c |
* Thu Feb 24 2011 Guido Grazioli <guido.grazioli@gmail.com> 1.2-6
|
|
|
66198c |
- Build with mvn-rpmbuild
|
|
|
66198c |
- Fix License
|
|
|
66198c |
- Comment on skipped tests
|
|
|
66198c |
|
|
|
66198c |
* Fri Feb 04 2011 Guido Grazioli <guido.grazioli@gmail.com> 1.2-5
|
|
|
66198c |
- Build with maven 3
|
|
|
66198c |
|
|
|
66198c |
* Sun Jan 23 2011 Guido Grazioli <guido.grazioli@gmail.com> 1.2-4
|
|
|
66198c |
- Drop buildroot and %%clean section
|
|
|
66198c |
- Drop use of maven2-settings.xml and jpp-depmap.xml
|
|
|
66198c |
- Install unversioned jars
|
|
|
66198c |
- Clean up of needed patch and mvn-jpp execution
|
|
|
66198c |
|
|
|
66198c |
* Tue Jan 18 2011 Guido Grazioli <guido.grazioli@gmail.com> 1.2-3
|
|
|
66198c |
- Fix build in rawhide
|
|
|
66198c |
|
|
|
66198c |
* Sat Dec 04 2010 Guido Grazioli <guido.grazioli@gmail.com> 1.2-2
|
|
|
66198c |
- Fix build in rawhide
|
|
|
66198c |
- Update to new Java Packaging Guidelines
|
|
|
66198c |
|
|
|
66198c |
* Mon May 10 2010 Guido Grazioli <guido.grazioli@gmail.com> 1.2-1
|
|
|
66198c |
- Update to 1.2
|
|
|
66198c |
|
|
|
66198c |
* Thu May 06 2010 Guido Grazioli <guido.grazioli@gmail.com> 1.0-1
|
|
|
66198c |
- Import from JPackage
|
|
|
66198c |
|
|
|
66198c |
* Fri Feb 27 2009 Ralph Apel <r.apel at r-apel.de> 0:1.0-2.jpp5
|
|
|
66198c |
- BR xpp3-minimal and fix depmap accordingly
|
|
|
66198c |
- Disown poms and fragments dirs
|
|
|
66198c |
|
|
|
66198c |
* Wed Jun 18 2008 Ralph Apel <r.apel at r-apel.de> 0:1.0-1.jpp5
|
|
|
66198c |
- First release
|