672f92
%global base_name       beanutils
672f92
%global short_name      commons-%{base_name}
672f92
672f92
Name:           apache-%{short_name}
672f92
Version:        1.8.3
fc09ee
Release:        15%{?dist}
672f92
Summary:        Java utility methods for accessing and modifying the properties of arbitrary JavaBeans
672f92
License:        ASL 2.0
672f92
URL:            http://commons.apache.org/%{base_name}
672f92
BuildArch:      noarch
672f92
Source0:        http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
672f92
fc09ee
Patch0:         CVE-2014-0114.patch
fc09ee
672f92
BuildRequires:  maven-local
672f92
BuildRequires:  mvn(commons-collections:commons-collections)
672f92
BuildRequires:  mvn(commons-logging:commons-logging)
672f92
BuildRequires:  mvn(org.apache.commons:commons-parent) >= 26-7
672f92
672f92
Provides:       jakarta-%{short_name} = 0:%{version}-%{release}
672f92
Obsoletes:      jakarta-%{short_name} <= 0:1.7.0
672f92
672f92
%description
672f92
The scope of this package is to create a package of Java utility methods
672f92
for accessing and modifying the properties of arbitrary JavaBeans.  No
672f92
dependencies outside of the JDK are required, so the use of this package
672f92
is very lightweight.
672f92
672f92
%package javadoc
672f92
Summary:        Javadoc for %{name}
672f92
672f92
Provides:       jakarta-%{short_name}-javadoc = 0:%{version}-%{release}
672f92
Obsoletes:      jakarta-%{short_name}-javadoc <= 0:1.7.0
672f92
672f92
%description javadoc
672f92
%{summary}.
672f92
672f92
%prep
672f92
%setup -q -n %{short_name}-%{version}-src
672f92
sed -i 's/\r//' *.txt
fc09ee
find -name '*.java' -exec sed -i 's/\r//' {} +
fc09ee
fc09ee
%patch0 -p1
672f92
672f92
%pom_remove_plugin :maven-antrun-plugin
672f92
%pom_remove_plugin :maven-assembly-plugin
672f92
672f92
%mvn_alias :{*} :@1-core :@1-bean-collections
672f92
%mvn_alias :{*} org.apache.commons:@1 org.apache.commons:@1-core org.apache.commons:@1-bean-collections
672f92
%mvn_file : %{name} %{name}-core %{name}-bean-collections
672f92
%mvn_file : %{short_name} %{short_name}-core %{short_name}-bean-collections
672f92
672f92
%build
672f92
# Some tests fail in Koji
672f92
%mvn_build -f
672f92
672f92
%install
672f92
%mvn_install
672f92
672f92
%files -f .mfiles
672f92
%doc README.txt RELEASE-NOTES.txt
672f92
%doc LICENSE.txt NOTICE.txt
672f92
672f92
%files javadoc -f .mfiles-javadoc
672f92
%doc LICENSE.txt NOTICE.txt
672f92
672f92
%changelog
fc09ee
* Fri Dec 20 2019 Marian Koncek <mkoncek@redhat.com> - 1.8.3-15
fc09ee
- Fix CVE-2014-0114
fc09ee
- Fix CVE-2019-10086
fc09ee
78c6c3
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.8.3-14
78c6c3
- Mass rebuild 2013-12-27
78c6c3
672f92
* Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.8.3-13
672f92
- Add BuildRequires on apache-commons-parent >= 26-7
672f92
- Remove BuildRequires on commons-collections-testframework
672f92
672f92
* Fri Jul 12 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.8.3-12
672f92
- Remove workaround for rpm bug #646523
672f92
672f92
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.8.3-11
672f92
- Rebuild to regenerate API documentation
672f92
- Resolves: CVE-2013-1571
672f92
672f92
* Mon Apr 29 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.8.3-10
672f92
- Build with xmvn
672f92
- Don't generate extra JARs
672f92
- Simplify build dependencies
672f92
- Update to current packaging guidelines
672f92
672f92
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.3-9
672f92
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
672f92
672f92
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.8.3-8
672f92
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
672f92
- Replace maven BuildRequires with maven-local
672f92
672f92
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.3-7
672f92
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
672f92
672f92
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.3-6
672f92
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
672f92
672f92
* Tue Nov 22 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.8.3-5
672f92
- Packaging fixes
672f92
- Remove unneeded depmap
672f92
- Remove versioned jars and javadocs
672f92
- Use maven 3 to build
672f92
672f92
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.3-4
672f92
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
672f92
672f92
* Thu Jul  8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.8.3-3
672f92
- Add license to javadoc subpackage
672f92
672f92
* Mon May 24 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.8.3-2
672f92
- Added provides to javadoc subpackage
672f92
672f92
* Fri May 21 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.8.3-1
672f92
- Re-did whole spec file, dropped gcj support
672f92
- Rename package (jakarta-commons-beanutils->apache-commons-beanutils)
672f92
672f92
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.7.0-12.3
672f92
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
672f92
672f92
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.7.0-11.3
672f92
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
672f92
672f92
* Thu Oct 23 2008 David Walluck <dwalluck@redhat.com> 0:1.7.0-10.3
672f92
- Fedora-specific: enable GCJ support
672f92
672f92
* Thu Oct 23 2008 David Walluck <dwalluck@redhat.com> 0:1.7.0-10.2
672f92
- Fedora-specific: BuildRequires: java-1.6.0-devel
672f92
672f92
* Thu Oct 23 2008 David Walluck <dwalluck@redhat.com> 0:1.7.0-10.1
672f92
- Fedora-specific: remove repolib
672f92
- Fedora-specific: enable JDK6 support
672f92
672f92
* Mon Oct 20 2008 David Walluck <dwalluck@redhat.com> 0:1.7.0-10
672f92
- add flag to build with maven
672f92
672f92
* Fri Sep 19 2008 David Walluck <dwalluck@redhat.com> 0:1.7.0-9
672f92
- add jdk6 patch
672f92
- fix repolib
672f92
672f92
* Sun Jun 15 2008 David Walluck <dwalluck@redhat.com> 0:1.7.0-8.jpp5
672f92
- fix duplicate files
672f92
- correctly unpack sources
672f92
- remove spurious gnu-crypto requirement
672f92
- remove spurious javadoc package requirements
672f92
- fix javadoc directory
672f92
- fix build-classpath call
672f92
- use macros
672f92
672f92
* Fri May 30 2008 Permaine Cheung <pcheung@redhat.com> - 0:1.7.0-7
672f92
- First JPP5 build
672f92
672f92
* Tue Jul 24 2007 Ralph Apel <r.apel at r-apel.de> - 0:1.7.0-6jpp
672f92
- Make Vendor, Distribution based on macro
672f92
- Fix aot build
672f92
- Add poms and depmap frags
672f92
- Build with maven1 by default
672f92
- Add manual subpackage when built with maven
672f92
672f92
* Tue Mar 13 2007 Vivek Lakshmanan <vivekl@redhat.com> - 0:1.7.0-2jpp.ep1.2
672f92
- Fix repolib location
672f92
672f92
* Tue Mar 13 2007 Fernando Nasser <fnasser@redhat.com> - 0:1.7.0-2jpp.ep1.1
672f92
- New repolib location
672f92
672f92
* Mon Mar 05 2007 Fernando Nasser <fnasser@redhat.com> - 0:1.7.0-2jpp.el4ep1.3
672f92
- Remove pre section used for RHUG cleanup
672f92
672f92
* Tue Feb 20 2007 Vivek Lakshmanan <vivekl@redhat.com> - 0:1.7.0-2jpp.el4ep1.2
672f92
- Add -brew suffix
672f92
672f92
* Fri Feb 17 2007 Vivek Lakshmanan <vivekl@redhat.com> - 0:1.7.0-2jpp.el4ep1.1
672f92
- Add repolib support
672f92
672f92
* Thu Aug 17 2006 Fernando Nasser <fnasser@redhat.com> - 0:1.7.0-5jpp
672f92
- Require what is used in post/postun for javadoc
672f92
672f92
* Fri Jul 14 2006 Fernando Nasser <fnasser@redhat.com> - 0:1.7.0-4jpp
672f92
- Add AOT bits
672f92
672f92
* Thu May 11 2006 Fernando Nasser <fnasser@redhat.com> - 0:1.7.0-3jpp
672f92
- Add header
672f92
- Remove unecessary macro definitions
672f92
672f92
* Wed Feb 22 2006 Fernando Nasser <fnasser@redhat.com> - 0:1.7.0-2jpp_1rh
672f92
- Merge with upstream
672f92
672f92
* Wed Apr 27 2005 Fernando Nasser <fnasser@redhat.com> - 0:1.7.0-1jpp_3rh
672f92
- Fix build so that collections jar is created
672f92
672f92
* Sat Jan 29 2005 Ralph Apel <r.apel@r-apel.de> - 0:1.7.0-2jpp
672f92
- Use the "dist" target to get a full build, including bean-collections
672f92
672f92
* Thu Oct 21 2004 Fernando Nasser <fnasser@redhat.com> - 0:1.7.0-1jpp_1rh
672f92
- Import from upstream
672f92
672f92
* Thu Oct 21 2004 Fernando Nasser <fnasser@redhat.com> - 0:1.7.0-1jpp
672f92
- Upgrade to 1.7.0
672f92
672f92
* Fri Oct 1 2004 Andrew Overholt <overholt@redhat.com> 0:1.6.1-4jpp_6rh
672f92
- add coreutils BuildRequires
672f92
672f92
* Sun Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:1.6.1-5jpp
672f92
- Rebuild with ant-1.6.2
672f92
672f92
* Fri Jul 2 2004 Aizaz Ahmed <aahmed@redhat.com> 0:1.6.1-4jpp_5rh
672f92
- Added trigger to restore symlinks that are removed if ugrading
672f92
  from a commons-beanutils rhug package
672f92
672f92
* Fri Apr  2 2004 Frank Ch. Eigler <fche@redhat.com> 0:1.6.1-4jpp_4rh
672f92
- more of the same, for version-suffixed .jar files
672f92
672f92
* Fri Mar 26 2004 Frank Ch. Eigler <fche@redhat.com> 0:1.6.1-4jpp_3rh
672f92
- add RHUG upgrade cleanup
672f92
672f92
* Fri Mar  5 2004 Frank Ch. Eigler <fche@redhat.com> 0:1.6.1-4jpp_2rh
672f92
- RH vacuuming part II
672f92
672f92
* Thu Mar  4 2004 Frank Ch. Eigler <fche@redhat.com> 0:1.6.1-4jpp_1rh
672f92
- RH vacuuming
672f92
672f92
* Fri May 09 2003 David Walluck <david@anti-microsoft.org> 0:1.6.1-4jpp
672f92
- update for JPackage 1.5
672f92
672f92
* Thu Feb 27 2003 Henri Gomez <hgomez@users.sourceforge.net> 1.6.1-2jpp
672f92
- fix ASF license and add packager name
672f92
672f92
* Wed Feb 19 2003 Henri Gomez <hgomez@users.sourceforge.net> 1.6.1-1jpp
672f92
- 1.6.1
672f92
672f92
* Thu Feb 13 2003 Henri Gomez <hgomez@users.sourceforge.net> 1.6-1jpp
672f92
- 1.6
672f92
672f92
* Thu Oct 24 2002 Henri Gomez <hgomez@users.sourceforge.net> 1.5-1jpp
672f92
- 1.5
672f92
672f92
* Fri Aug 23 2002 Henri Gomez <hgomez@users.sourceforge.net> 1.4.1-1jpp
672f92
- 1.4.1
672f92
672f92
* Tue Aug 20 2002 Henri Gomez <hgomez@users.sourceforge.net> 1.4-1jpp
672f92
- 1.4
672f92
672f92
* Fri Jul 12 2002 Henri Gomez <hgomez@users.sourceforge.net> 1.3-3jpp
672f92
- change to commons-xxx.jar instead of commons-xxx.home in ant parameters
672f92
672f92
* Mon Jun 10 2002 Henri Gomez <hgomez@users.sourceforge.net> 1.3-2jpp
672f92
- use sed instead of bash 2.x extension in link area to make spec compatible
672f92
  with distro using bash 1.1x
672f92
672f92
* Fri Jun 07 2002 Henri Gomez <hgomez@users.sourceforge.net> 1.3-1jpp
672f92
- 1.3
672f92
- added short names in %%{_javadir}, as does jakarta developpers
672f92
- first jPackage release