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