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