diff --git a/.gitignore b/.gitignore index e69de29..6d692b0 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/aopalliance-src.tar.gz diff --git a/aopalliance-1.0.pom b/aopalliance-1.0.pom new file mode 100644 index 0000000..af3323f --- /dev/null +++ b/aopalliance-1.0.pom @@ -0,0 +1,15 @@ + + 4.0.0 + aopalliance + aopalliance + AOP alliance + 1.0 + AOP Alliance + http://aopalliance.sourceforge.net + + + + Public Domain + + + \ No newline at end of file diff --git a/aopalliance.spec b/aopalliance.spec new file mode 100644 index 0000000..7d4e860 --- /dev/null +++ b/aopalliance.spec @@ -0,0 +1,61 @@ +Name: aopalliance +Version: 1.0 +Release: 1%{?dist} +Epoch: 0 +Summary: Java/J2EE AOP standards +Group: Development/Libraries +License: Public Domain +URL: http://aopalliance.sourceforge.net/ +# cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aopalliance login +# cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aopalliance export -r HEAD aopalliance +Source0: aopalliance-src.tar.gz +Source1: http://repo1.maven.org/maven2/aopalliance/aopalliance/1.0/aopalliance-1.0.pom +Requires: java >= 0:1.5.0 +BuildRequires: jpackage-utils >= 0:1.7.5 +BuildRequires: java-devel >= 0:1.5.0 +BuildRequires: ant >= 0:1.6.5 +BuildArch: noarch + +%description +Java/J2EE AOP standards + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation +Requires: jpackage-utils + +%description javadoc +API documentation for %{summary}. + +%prep +%setup -q -n aopalliance + +%build +export CLASSPATH= +export OPT_JAR_LIST=: +%{ant} -Dbuild.sysclasspath=only jar javadoc + +%install +install -dm 755 %{buildroot}%{_javadir} + +install -pm 644 build/aopalliance.jar \ + %{buildroot}%{_javadir}/%{name}.jar +install -dm 755 %{buildroot}%{_mavenpomdir} +install -p -m 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom +%add_maven_depmap JPP-%{name}.pom %{name}.jar + +# javadoc +install -dm 755 %{buildroot}%{_javadocdir}/%{name} +cp -pr build/javadoc/* %{buildroot}%{_javadocdir}/%{name} + +%files +%{_javadir}*/%{name}.jar +%{_mavenpomdir}/JPP-%{name}.pom +%{_mavendepmapfragdir}/%{name} + +%files javadoc +%{_javadocdir}/%{name} + +%changelog +* Mon Feb 6 2012 Andy Grimm 0:1.0-1 +- build for Fedora diff --git a/sources b/sources index e69de29..9e617b3 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a69cfec743928aba665269dce9d6a00c aopalliance-src.tar.gz