Andy Grimm cb2d9f0
Name:       aspectjweaver 
Andy Grimm cb2d9f0
Version:    1.6.12
be99004
Release:    12%{?dist}
Andy Grimm cb2d9f0
Summary:    Java byte-code weaving library
Andy Grimm cb2d9f0
Group:      Development/Libraries
Andy Grimm cb2d9f0
License:    EPL
Andy Grimm cb2d9f0
URL:        http://eclipse.org/aspectj/
Andy Grimm cb2d9f0
Andy Grimm cb2d9f0
# wget -nd http://www.eclipse.org/downloads/download.php?file=/tools/aspectj/aspectj-1.6.12-src.jar
Andy Grimm cb2d9f0
# jar xf aspectj-1.6.12-src.jar aspectjweaver1.6.12-src.jar
Andy Grimm cb2d9f0
Source0:    aspectjweaver1.6.12-src.jar
Andy Grimm cb2d9f0
# This build.xml file was adapted from the Ubuntu package. The src jar has no build scripts.
Andy Grimm cb2d9f0
Source1:    aspectjweaver-build.xml
Andy Grimm cb2d9f0
Source2:    http://repo1.maven.org/maven2/org/aspectj/aspectjweaver/1.6.12/aspectjweaver-1.6.12.pom
Andy Grimm cb2d9f0
Patch0:     aspectjweaver-build-fixes.patch
Andy Grimm cb2d9f0
Andy Grimm cb2d9f0
BuildRequires:   java-devel
Andy Grimm cb2d9f0
BuildRequires:   jpackage-utils
Andy Grimm cb2d9f0
BuildRequires:   ant
5f9bf66
BuildRequires:   objectweb-asm3
Andy Grimm cb2d9f0
BuildRequires:   apache-commons-logging
dfeea6c
Requires:        java-headless
5f9bf66
Requires:        objectweb-asm3
Andy Grimm cb2d9f0
BuildArch:       noarch
Andy Grimm cb2d9f0
Andy Grimm cb2d9f0
%description
Andy Grimm cb2d9f0
The AspectJ Weaver supports byte-code weaving for aspect-oriented
Andy Grimm cb2d9f0
programming (AOP) in java.
Andy Grimm cb2d9f0
Andy Grimm cb2d9f0
%package javadoc
Andy Grimm cb2d9f0
Summary:        Javadoc for %{name}
Andy Grimm cb2d9f0
Group:          Documentation
Andy Grimm cb2d9f0
Requires:       jpackage-utils
Andy Grimm cb2d9f0
Andy Grimm cb2d9f0
%description javadoc
Andy Grimm cb2d9f0
API documentation for %{summary}.
Andy Grimm cb2d9f0
Andy Grimm cb2d9f0
Andy Grimm cb2d9f0
%prep
Andy Grimm cb2d9f0
%setup -q -c
Andy Grimm cb2d9f0
%patch0 -p1
Andy Grimm cb2d9f0
cp %{SOURCE1} build.xml
Andy Grimm cb2d9f0
# JRockit is not open source, so we cannot build against it
Andy Grimm cb2d9f0
rm org/aspectj/weaver/loadtime/JRockitAgent.java
Andy Grimm cb2d9f0
Andy Grimm cb2d9f0
%build
5f9bf66
LANG=en_US.ISO8859-1 CLASSPATH=$( build-classpath objectweb-asm3/asm commons-logging ) ant
Andy Grimm cb2d9f0
ant javadoc
Andy Grimm cb2d9f0
Andy Grimm cb2d9f0
%install
Andy Grimm cb2d9f0
install -d -m 0755 ${RPM_BUILD_ROOT}/%{_javadir}
Andy Grimm cb2d9f0
install -m 0644 build/%{name}.jar ${RPM_BUILD_ROOT}/%{_javadir}/%{name}.jar
Andy Grimm cb2d9f0
Andy Grimm cb2d9f0
install -d -m 0755 ${RPM_BUILD_ROOT}/%{_mavenpomdir}
5f9bf66
install -pm 0644 %{SOURCE2} ${RPM_BUILD_ROOT}/%{_mavenpomdir}/JPP-%{name}.pom
Andy Grimm cb2d9f0
Andy Grimm cb2d9f0
install -d -m 0755 ${RPM_BUILD_ROOT}/%{_javadocdir}
Andy Grimm cb2d9f0
cp -rp javadoc ${RPM_BUILD_ROOT}/%{_javadocdir}/%{name}
Andy Grimm cb2d9f0
e10b1a4
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "org.aspectj:aspectjrt,aspectj:aspectjrt"
Andy Grimm cb2d9f0
Andy Grimm cb2d9f0
%files
Andy Grimm cb2d9f0
%{_javadir}/%{name}.jar
Andy Grimm cb2d9f0
%{_mavenpomdir}/JPP-%{name}.pom
Andy Grimm cb2d9f0
%{_mavendepmapfragdir}/%{name}
Andy Grimm cb2d9f0
Andy Grimm cb2d9f0
%files javadoc
Andy Grimm cb2d9f0
%{_javadocdir}/*
Andy Grimm cb2d9f0
Andy Grimm cb2d9f0
%changelog
be99004
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.12-12
be99004
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
be99004
dfeea6c
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 1.6.12-11
dfeea6c
- Use Requires: java-headless rebuild (#1067528)
dfeea6c
e10b1a4
* Mon Mar 24 2014 Michal Srb <msrb@redhat.com> - 1.6.12-10
e10b1a4
- Add alias aspectj:aspectjrt
e10b1a4
5f9bf66
* Thu Nov 14 2013 gil cattaneo <puntogil@libero.it> 1.6.12-9
5f9bf66
- use objectweb-asm3
5f9bf66
42ff54c
* Tue Oct 15 2013 Michal Srb <msrb@redhat.com> - 1.6.12-8
42ff54c
- Add alias org.aspectj:aspectjr
42ff54c
6239899
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.12-7
6239899
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
6239899
aa73c0a
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.12-6
aa73c0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
aa73c0a
ac3e29b
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.12-5
ac3e29b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ac3e29b
Andy Grimm cb2d9f0
* Wed Feb 15 2012 Andy Grimm <agrimm@gmail.com> 1.6.12-4
Andy Grimm cb2d9f0
- Add better comments, reference POM source URL
Andy Grimm cb2d9f0
Andy Grimm cb2d9f0
* Wed Feb 15 2012 Andy Grimm <agrimm@gmail.com> 1.6.12-3
Andy Grimm cb2d9f0
- add commons-logging buildreq
Andy Grimm cb2d9f0
Andy Grimm cb2d9f0
* Tue Feb 14 2012 Andy Grimm <agrimm@gmail.com> 1.6.12-2
Andy Grimm cb2d9f0
- Add javadoc
Andy Grimm cb2d9f0
- Fix description
Andy Grimm cb2d9f0
Andy Grimm cb2d9f0
* Tue Dec 20 2011 Andy Grimm <agrimm@gmail.com> 1.6.12-1
Andy Grimm cb2d9f0
- Initial Package