Blame SPECS/cglib.spec

599946
Name:           cglib
599946
Version:        2.2
599946
Release:        18%{?dist}
599946
Summary:        Code Generation Library for Java
599946
License:        ASL 2.0 and BSD
599946
Group:          Development/Tools
599946
Url:            http://cglib.sourceforge.net/
599946
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.jar
599946
Source1:        http://mirrors.ibiblio.org/pub/mirrors/maven2/%{name}/%{name}/%{version}/%{name}-%{version}.pom
599946
Source2:        bnd.properties
599946
# Remove the repackaging step that includes other jars into the final thing
599946
Patch0:         %{name}-build_xml.patch
599946
599946
Requires: java >= 0:1.6.0
599946
Requires: objectweb-asm
599946
599946
BuildRequires:  ant
599946
BuildRequires:  jpackage-utils >= 0:1.5
599946
BuildRequires:  java-devel >= 0:1.6.0
599946
BuildRequires:  objectweb-asm
599946
BuildRequires:  unzip
599946
BuildRequires:  aqute-bnd
599946
BuildArch:      noarch
599946
599946
%description
599946
cglib is a powerful, high performance and quality code generation library 
599946
for Java. It is used to extend Java classes and implements interfaces 
599946
at runtime.
599946
599946
%package javadoc
599946
Summary:        Javadoc for %{name}
599946
Group:          Documentation
599946
%description javadoc
599946
Documentation for the cglib code generation library.
599946
599946
%prep
599946
%setup -q -c %{name}-%{version}
599946
rm lib/*.jar
599946
%patch0 -p1
599946
599946
%build
599946
export CLASSPATH=`build-classpath objectweb-asm`
599946
ant jar javadoc
599946
# Convert to OSGi bundle
599946
pushd dist
599946
java -Dcglib.bundle.version="%{version}" \
599946
  -jar $(build-classpath aqute-bnd) wrap -output %{name}-%{version}.bar -properties %{SOURCE2} %{name}-%{version}.jar
599946
popd
599946
599946
%install
599946
install -d -m 755 %{buildroot}%{_javadir}
599946
install -d -m 755 %{buildroot}%{_mavenpomdir}
599946
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
599946
mkdir -p %{buildroot}%{_mavenpomdir}
599946
cp %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
599946
# yes, this is really *.bar - aqute bnd created it
599946
install -p -m 644 dist/%{name}-%{version}.bar %{buildroot}%{_javadir}/%{name}.jar
599946
install -p -m 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
599946
%add_maven_depmap -a net.sf.cglib:cglib
599946
%add_maven_depmap -a cglib:cglib-full
599946
599946
cp -rp docs/* %{buildroot}%{_javadocdir}/%{name}
599946
599946
%files
599946
%doc LICENSE NOTICE
599946
%{_javadir}/%{name}.jar
599946
%{_mavenpomdir}/JPP-%{name}.pom
599946
%{_mavendepmapfragdir}/%{name}
599946
599946
%files javadoc
599946
%doc LICENSE NOTICE
599946
%{_javadocdir}/%{name}
599946
599946
%changelog
599946
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.2-18
599946
- Mass rebuild 2013-12-27
599946
599946
* Thu Nov 07 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2-17
599946
- Remove old macro invocation
599946
- Resolves: rhbz#1027717
599946
599946
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2-16
599946
- Rebuild to regenerate API documentation
599946
- Resolves: CVE-2013-1571
599946
599946
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-15
599946
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
599946
599946
* Thu Nov  1 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2-14
599946
- Add additional maven depmap
599946
599946
* Mon Sep 17 2012 Severin Gehwolf <sgehwolf@redhat.com> 2.2-13
599946
- Use aqute bnd in order to generate OSGi metadata.
599946
599946
* Fri Aug 17 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2-12
599946
- Add additional depmap
599946
599946
* Thu Aug 16 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2-11
599946
- Fix license tag
599946
- Install LICENSE and NOTICE with javadoc package
599946
- Convert versioned JARs to unversioned
599946
- Preserve timestamp of POM file
599946
- Update to current packaging guidelines
599946
599946
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-10
599946
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
599946
599946
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-9
599946
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
599946
599946
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-8
599946
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
599946
599946
* Fri Nov 26 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2-7
599946
- Add missing pom file (Resolves rhbz#655793)
599946
599946
* Fri Nov 27 2009 Lubomir Rintel <lkundrak@v3.sk> - 2.2-6
599946
- BR unzip to fix openSUSE build
599946
599946
* Tue Dec  9 2008 Mary Ellen Foster <mefoster at gmail.com> - 2.2-5
599946
- Add dist to version
599946
- Fix BuildRoot to follow the latest guidelines
599946
599946
* Mon Nov 24 2008 Mary Ellen Foster <mefoster at gmail.com> - 2.2-4
599946
- Add a comment explaining the patch
599946
599946
* Thu Nov  6 2008 Mary Ellen Foster <mefoster at gmail.com> - 2.2-3
599946
- Flag Maven depmap as "config"
599946
599946
* Wed Nov  5 2008 Mary Ellen Foster <mefoster at gmail.com> - 2.2-2
599946
- Explicitly require Java > 1.6 because it won't compile with gcj
599946
- Fix cosmetic issues in spec file
599946
599946
* Tue Nov  4 2008 Mary Ellen Foster <mefoster at gmail.com> - 2.2-1
599946
- Initial package (based on previous JPP version)