dd7591
%bcond_with bootstrap
dd7591
dd7591
%global tarball_name RELEASE_%(echo '%{version}' | tr . _)
dd7591
dd7591
Name:           cglib
dd7591
Version:        3.3.0
dd7591
Release:        6%{?dist}
dd7591
Summary:        Code Generation Library for Java
dd7591
# ASM MethodVisitor is based on ASM code and therefore
dd7591
# BSD-licensed. Everything else is ASL 2.0.
dd7591
License:        ASL 2.0 and BSD
dd7591
URL:            https://github.com/cglib/cglib
dd7591
BuildArch:      noarch
dd7591
dd7591
Source0:        https://github.com/cglib/cglib/archive/%{tarball_name}.tar.gz
dd7591
dd7591
Patch0:         0001-Remove-unused-import.patch
dd7591
dd7591
BuildRequires:  maven-local
dd7591
%if %{with bootstrap}
dd7591
BuildRequires:  javapackages-bootstrap
dd7591
%else
dd7591
BuildRequires:  mvn(org.apache.ant:ant)
dd7591
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
dd7591
BuildRequires:  mvn(org.ow2.asm:asm)
dd7591
%endif
dd7591
dd7591
%description
dd7591
cglib is a powerful, high performance and quality code generation library
dd7591
for Java. It is used to extend Java classes and implements interfaces
dd7591
at run-time.
dd7591
dd7591
%package javadoc
dd7591
Summary:        Javadoc for %{name}
dd7591
dd7591
%description javadoc
dd7591
Documentation for the cglib code generation library.
dd7591
dd7591
%prep
dd7591
%setup -q -n %{name}-%{tarball_name}
dd7591
%patch0 -p1
dd7591
dd7591
# remove unnecessary dependency on parent POM
dd7591
%pom_remove_parent
dd7591
dd7591
%pom_disable_module cglib-nodep
dd7591
%pom_disable_module cglib-integration-test
dd7591
%pom_disable_module cglib-jmh
dd7591
%pom_xpath_set pom:packaging 'bundle' cglib
dd7591
%pom_xpath_inject pom:build/pom:plugins '<plugin>
dd7591
                                           <groupId>org.apache.felix</groupId>
dd7591
                                           <artifactId>maven-bundle-plugin</artifactId>
dd7591
                                           <version>1.4.0</version>
dd7591
                                           <extensions>true</extensions>
dd7591
                                           <configuration>
dd7591
                                             <instructions>
dd7591
                                               <Bundle-SymbolicName>net.sf.cglib.core</Bundle-SymbolicName>
dd7591
                                               <Export-Package>net.*</Export-Package>
dd7591
                                               <Import-Package>org.apache.tools.*;resolution:=optional,*</Import-Package>
dd7591
                                             </instructions>
dd7591
                                           </configuration>
dd7591
                                         </plugin>' cglib
dd7591
%pom_remove_plugin org.apache.maven.plugins:maven-gpg-plugin
dd7591
%pom_remove_plugin org.apache.maven.plugins:maven-jarsigner-plugin cglib-sample
dd7591
%pom_remove_plugin -r :maven-javadoc-plugin
dd7591
dd7591
%mvn_alias :cglib "net.sf.cglib:cglib" "cglib:cglib-full" "cglib:cglib-nodep" "org.sonatype.sisu.inject:cglib"
dd7591
dd7591
%build
dd7591
# 5 tests fail with OpenJDK 11
dd7591
# Forwarded upstream: https://github.com/cglib/cglib/issues/119
dd7591
%mvn_build -f
dd7591
dd7591
%install
dd7591
%mvn_install
dd7591
dd7591
%files -f .mfiles
dd7591
%license LICENSE NOTICE
dd7591
dd7591
%files javadoc -f .mfiles-javadoc
dd7591
%license LICENSE NOTICE
dd7591
dd7591
%changelog
dd7591
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.3.0-6
dd7591
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
dd7591
  Related: rhbz#1991688
dd7591
dd7591
* Wed Jun 09 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.0-5
dd7591
- Rebuild to workaround DistroBaker issue
dd7591
dd7591
* Tue Jun 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.0-4
dd7591
- Bootstrap Maven for CentOS Stream 9
dd7591
dd7591
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.0-3
dd7591
- Bootstrap build
dd7591
- Non-bootstrap build
dd7591
dd7591
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.9-9
dd7591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
dd7591
dd7591
* Sun Aug 30 2020 Fabio Valentini <decathorpe@gmail.com> - 3.2.9-8
dd7591
- Remove unnecessary dependency on parent POM.
dd7591
dd7591
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.9-7
dd7591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
dd7591
dd7591
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 3.2.9-6
dd7591
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
dd7591
dd7591
* Fri Jun 26 2020 Roland Grunberg <rgrunber@redhat.com> - 3.2.9-5
dd7591
- Set maven-javadoc-plugin source to 1.8 for Java 11 build.
dd7591
- Ignore 5 test failures from upstream when run on Java 9 or above.
dd7591
dd7591
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.9-4
dd7591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
dd7591
dd7591
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.0-2
dd7591
- Mass rebuild for javapackages-tools 201902
dd7591
dd7591
* Thu Aug 15 2019 Marian Koncek <mkoncek@redhat.com> - 3.3.0-1
dd7591
- Update to upstream version 3.3.0
dd7591
dd7591
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.9-3
dd7591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
dd7591
dd7591
* Thu Jun 27 2019 Marian Koncek <mkoncek@redhat.com> - 3.2.12-1
dd7591
- Update to upstream version 3.2.12
dd7591
dd7591
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.9-3
dd7591
- Mass rebuild for javapackages-tools 201901
dd7591
dd7591
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.9-2
dd7591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
dd7591
dd7591
* Thu Nov 29 2018 Mat Booth <mat.booth@redhat.com> - 3.2.9-1
dd7591
- Update to latest upstream release for ASM 7 support
dd7591
dd7591
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.4-8
dd7591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
dd7591
dd7591
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.4-7
dd7591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
dd7591
dd7591
* Tue Sep 12 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.4-6
dd7591
- Rebuild to regenerate OSGi manifest after ASM6 upgrade
dd7591
- Resolves: rhbz#1490827
dd7591
dd7591
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.4-5
dd7591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
dd7591
dd7591
* Thu Feb 23 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.4-4
dd7591
- Remove unneeded maven-javadoc-plugin invocation
dd7591
dd7591
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.4-3
dd7591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
dd7591
dd7591
* Fri Jul  8 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.4-2
dd7591
- Make ant dependency optional
dd7591
dd7591
* Thu Jul 07 2016 Severin Gehwolf <sgehwolf@redhat.com> - 3.2.4-1
dd7591
- Upgrade to latest 3.2.4 release.
dd7591
- Resolves RHBZ#1352315
dd7591
dd7591
* Mon Feb 22 2016 Mat Booth <mat.booth@redhat.com> - 3.1-10
dd7591
- Make ant an optional dependency
dd7591
dd7591
* Thu Feb 18 2016 Mat Booth <mat.booth@redhat.com> - 3.1-9
dd7591
- Modernise spec file
dd7591
dd7591
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-8
dd7591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
dd7591
dd7591
* Thu Jul 09 2015 Michael Simacek <msimacek@redhat.com> - 3.1-7
dd7591
- Update bnd invocation
dd7591
dd7591
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-6
dd7591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
dd7591
dd7591
* Mon Oct 20 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1-5
dd7591
- Add alias for cglib:cglib-nodep
dd7591
dd7591
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-4
dd7591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
dd7591
dd7591
* Wed May 21 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1-3
dd7591
- Use .mfiles generated during build
dd7591
dd7591
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.1-2
dd7591
- Use Requires: java-headless rebuild (#1067528)
dd7591
dd7591
* Mon Jan 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1-1
dd7591
- Update to upstream version 3.1
dd7591
- Remove patch for upstream bug 44 (fixed upstream)
dd7591
dd7591
* Mon Nov 11 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.0-1
dd7591
- Update to upstream version 3.0
dd7591
- Add alias for org.sonatype.sisu.inject:cglib
dd7591
dd7591
* Mon Aug 05 2013 Severin Gehwolf <sgehwolf@redhat.com> 2.2-17
dd7591
- Remove old call to %%add_to_maven_depmap macro.
dd7591
- Fixes RHBZ#992051.
dd7591
dd7591
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-16
dd7591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
dd7591
dd7591
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-15
dd7591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
dd7591
dd7591
* Thu Nov  1 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2-14
dd7591
- Add additional maven depmap
dd7591
dd7591
* Mon Sep 17 2012 Severin Gehwolf <sgehwolf@redhat.com> 2.2-13
dd7591
- Use aqute bnd in order to generate OSGi metadata.
dd7591
dd7591
* Fri Aug 17 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2-12
dd7591
- Add additional depmap
dd7591
dd7591
* Thu Aug 16 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2-11
dd7591
- Fix license tag
dd7591
- Install LICENSE and NOTICE with javadoc package
dd7591
- Convert versioned JARs to unversioned
dd7591
- Preserve timestamp of POM file
dd7591
- Update to current packaging guidelines
dd7591
dd7591
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-10
dd7591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
dd7591
dd7591
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-9
dd7591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
dd7591
dd7591
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-8
dd7591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
dd7591
dd7591
* Fri Nov 26 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2-7
dd7591
- Add missing pom file (Resolves rhbz#655793)
dd7591
dd7591
* Fri Nov 27 2009 Lubomir Rintel <lkundrak@v3.sk> - 2.2-6
dd7591
- BR unzip to fix openSUSE build
dd7591
dd7591
* Tue Dec  9 2008 Mary Ellen Foster <mefoster at gmail.com> - 2.2-5
dd7591
- Add dist to version
dd7591
- Fix BuildRoot to follow the latest guidelines
dd7591
dd7591
* Mon Nov 24 2008 Mary Ellen Foster <mefoster at gmail.com> - 2.2-4
dd7591
- Add a comment explaining the patch
dd7591
dd7591
* Thu Nov  6 2008 Mary Ellen Foster <mefoster at gmail.com> - 2.2-3
dd7591
- Flag Maven depmap as "config"
dd7591
dd7591
* Wed Nov  5 2008 Mary Ellen Foster <mefoster at gmail.com> - 2.2-2
dd7591
- Explicitly require Java > 1.6 because it won't compile with gcj
dd7591
- Fix cosmetic issues in spec file
dd7591
dd7591
* Tue Nov  4 2008 Mary Ellen Foster <mefoster at gmail.com> - 2.2-1
dd7591
- Initial package (based on previous JPP version)