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