aopalliance/aopalliance.spec

85 lines
2.4 KiB
RPMSpec
Raw Normal View History

2012-02-20 01:34:44 +00:00
Name: aopalliance
Version: 1.0
2013-02-25 16:23:36 +00:00
Release: 5%{?dist}
2012-02-20 01:34:44 +00:00
Epoch: 0
Summary: Java/J2EE AOP standards
Group: Development/Libraries
License: Public Domain
URL: http://aopalliance.sourceforge.net/
2012-11-20 17:26:45 +00:00
# cvs -d:pserver:anonymous@aopalliance.cvs.sourceforge.net:/cvsroot/aopalliance login
# password empty
# cvs -z3 -d:pserver:anonymous@aopalliance.cvs.sourceforge.net:/cvsroot/aopalliance export -r HEAD aopalliance
2012-02-20 01:34:44 +00:00
Source0: aopalliance-src.tar.gz
Source1: http://repo1.maven.org/maven2/aopalliance/aopalliance/1.0/aopalliance-1.0.pom
2012-08-06 14:46:40 +00:00
Source2: %{name}-MANIFEST.MF
2012-02-20 01:34:44 +00:00
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
2012-08-06 14:46:40 +00:00
BuildRequires: zip
2012-02-20 01:34:44 +00:00
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
2012-08-06 14:46:40 +00:00
# inject OSGi manifest
mkdir -p META-INF
cp -p %{SOURCE2} META-INF/MANIFEST.MF
touch META-INF/MANIFEST.MF
zip -u build/%{name}.jar META-INF/MANIFEST.MF
2012-02-20 01:34:44 +00:00
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
2013-02-25 16:23:36 +00:00
* Mon Feb 25 2013 Gerard Ryan <galileo.fedoraproject.org> 0:1.0-5
2012-08-06 14:46:40 +00:00
- Add OSGI manifest
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2012-11-20 17:26:45 +00:00
* Tue Nov 20 2012 Tomas Radej <tradej@redhat.com> - 0:1.0-3
- Fixed tarball generation guide
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-08-06 14:46:40 +00:00
* Mon Feb 6 2012 Andy Grimm <agrimm@gmail.com> 0:1.0-1
2012-02-20 01:34:44 +00:00
- build for Fedora