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