Name: cglib Version: 2.2 Release: %mkrel 6 Summary: Code Generation Library for Java License: ASL 2.0 and BSD Group: Development/Java Url: http://cglib.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.jar Source1: http://mirrors.ibiblio.org/pub/mirrors/maven2/%{name}/%{name}/%{version}/%{name}-%{version}.pom Source2: bnd.properties # Remove the repackaging step that includes other jars into the final thing Patch0: %{name}-build_xml.patch Requires: java >= 0:1.6.0 Requires: objectweb-asm BuildRequires: ant BuildRequires: jpackage-utils >= 0:1.5 BuildRequires: java-devel >= 0:1.6.0 BuildRequires: objectweb-asm BuildRequires: unzip BuildRequires: aqute-bnd BuildArch: noarch %description cglib is a powerful, high performance and quality code generation library for Java. It is used to extend Java classes and implements interfaces at runtime. %package javadoc Summary: Javadoc for %{name} Group: Documentation %description javadoc Documentation for the cglib code generation library. %prep %setup -q -c %{name}-%{version} rm lib/*.jar %patch0 -p1 %build export CLASSPATH=`build-classpath objectweb-asm` ant jar javadoc # Convert to OSGi bundle pushd dist java -Dcglib.bundle.version="%{version}" \ -jar $(build-classpath aqute-bnd) wrap -output %{name}-%{version}.bar -properties %{SOURCE2} %{name}-%{version}.jar popd %install install -d -m 755 %{buildroot}%{_javadir} install -d -m 755 %{buildroot}%{_mavenpomdir} install -d -m 755 %{buildroot}%{_javadocdir}/%{name} mkdir -p %{buildroot}%{_mavenpomdir} cp %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom %add_to_maven_depmap net.sf.cglib %{name} %{version} JPP %{name} # yes, this is really *.bar - aqute bnd created it install -p -m 644 dist/%{name}-%{version}.bar %{buildroot}%{_javadir}/%{name}.jar install -p -m 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap -a net.sf.cglib:cglib %add_maven_depmap -a cglib:cglib-full cp -rp docs/* %{buildroot}%{_javadocdir}/%{name} %files %doc LICENSE NOTICE %{_javadir}/%{name}.jar %{_mavenpomdir}/JPP-%{name}.pom %{_mavendepmapfragdir}/%{name} %files javadoc %doc LICENSE NOTICE %{_javadocdir}/%{name} %changelog * Sun Feb 17 2013 dmorgan <dmorgan> 2.2-6.mga3 + Revision: 398891 - Clean spec file * Fri Jan 11 2013 umeabot <umeabot> 2.2-5.mga3 + Revision: 347602 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Nov 16 2011 dmorgan <dmorgan> 2.2-4.mga2 + Revision: 168035 - Remove dupplicate %%changelog entry ( mga #3356) * Thu Oct 27 2011 gil <gil> 2.2-3.mga2 + Revision: 158574 - edit poms * Wed Oct 19 2011 gil <gil> 2.2-2.mga2 + Revision: 156593 - edit spec file * Mon Jan 17 2011 dmorgan <dmorgan> 2.2-2.mga1 + Revision: 21694 - define _mavenpomdir - Sync with fedora - build w/o hook for now - imported package cglib * Tue Nov 30 2010 Oden Eriksson <oeriksson@mandriva.com> 0:2.2-2mdv2011.0 + Revision: 603823 - rebuild * Sat Nov 07 2009 Frederik Himpe <fhimpe@mandriva.org> 0:2.2-1mdv2010.1 + Revision: 462314 - update to new version 2.2 * Sun Aug 09 2009 Oden Eriksson <oeriksson@mandriva.com> 0:2.1.3-2.1.7mdv2010.0 + Revision: 413228 - rebuild * Fri Mar 06 2009 Antoine Ginies <aginies@mandriva.com> 0:2.1.3-2.1.6mdv2009.1 + Revision: 350229 - 2009.1 rebuild * Tue Jan 15 2008 David Walluck <walluck@mandriva.org> 0:2.1.3-2.1.5mdv2008.1 + Revision: 153457 - remove Requires on java-gcj-compat + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Tue Dec 18 2007 Alexander Kurtakov <akurtakov@mandriva.org> 0:2.1.3-2.1.4mdv2008.1 + Revision: 132089 - build full cglib + Thierry Vignaud <tv@mandriva.org> - kill re-definition of %%buildroot on Pixel's request * Sun Dec 16 2007 Anssi Hannula <anssi@mandriva.org> 0:2.1.3-2.1.3mdv2008.1 + Revision: 120848 - buildrequire java-rpmbuild, i.e. build with icedtea on x86(_64) * Sat Sep 15 2007 Anssi Hannula <anssi@mandriva.org> 0:2.1.3-2.1.2mdv2008.0 + Revision: 87271 - rebuild to filter out autorequires of GCJ AOT objects * Tue Jul 10 2007 David Walluck <walluck@mandriva.org> 0:2.1.3-2.1.1mdv2008.0 + Revision: 50826 - rebuild * Sat Dec 16 2006 David Walluck <walluck@mandriva.org> 2.1.3-2.1mdv2007.0 + Revision: 97994 - Import cglib * Fri Dec 15 2006 David Walluck <walluck@mandriva.org> 0:2.1.3-2.1mdv2007.1 - release * Fri Feb 17 2006 Ralph Apel <r.apel at r-apel.de> - 0:2.1.3-2jpp - Create option --without hook to build without requiring aspectwerkz - Create new subpackage cglib-nohook containing cglib-nohook.jar - Main package also provides cglib-nohook - Add demo subpackage * Fri Nov 11 2005 Ralph Apel <r.apel at r-apel.de> - 0:2.1.3-1jpp - Upgrade to 2.1_3 - asm2 is BuildRequired too, because our newer jarjar needs it * Tue Mar 15 2005 Ralph Apel <r.apel at r-apel.de> - 0:2.1.0-1jpp - Adapt to upgraded asm 1.5.3 (no src patching required) * Tue Feb 01 2005 Ralph Apel <r.apel at r-apel.de> - 0:2.0.2-2jpp - Adapt to upgraded asm 1.4.3 (patch required) * Thu Sep 09 2004 Ralph Apel <r.apel at r-apel.de> - 0:2.0.2-1jpp - Upgrade to 2.0.2 (bug fix required) - Drop cglib-full.jar (identical to cglib.jar in our build) - Add manual generated offline with "maven xdoc:transform" * Wed Sep 08 2004 Ralph Apel <r.apel at r-apel.de> - 0:2.0.1-3jpp - Include cglib-full.jar in package * Tue Sep 07 2004 Ralph Apel <r.apel at r-apel.de> - 0:2.0.1-2jpp - Upgrade to Ant 1.6.X - Build with ant-1.6.2 - Relax some versioned dependencies - Add missing BuildReq junit - Upgraded to 2.0.1 and built with aspectwerkz-0.9 on Sat Jun 12 2004 by Ralph Apel <r.apel at r-apel.de> as 0:2.0.1-1jpp * Sat Aug 21 2004 Ralph Apel <r.apel at r-apel.de> - 0:2.0-3jpp - Build with ant-1.6.2 - Dropped ant from CLASSPATH - Relaxed jpackage-utils BuildReq * Wed Jun 02 2004 Randy Watler <rwatler at finali.com> - 0:2.0-2jpp - Upgrade to Ant 1.6.X * Sat Feb 28 2004 Ralph Apel <r.apel at r-apel.de> - 0:2.0-1jpp - First JPackage release