Actually install a jar with a name that maven users expect.

This commit is contained in:
mbooth 2010-09-24 18:57:38 +01:00
parent b3a208ae38
commit af4b505305

View File

@ -1,6 +1,6 @@
Name: xml-commons-resolver
Version: 1.2
Release: 3%{?dist}
Release: 4%{?dist}
Epoch: 0
Summary: Resolver subproject of xml-commons
License: ASL 1.1
@ -73,8 +73,8 @@ touch META-INF/MANIFEST.MF
zip -u build/resolver.jar META-INF/MANIFEST.MF
# Jars
mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp build/resolver.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
install -pD -T build/resolver.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/xml-resolver-%{version}.jar
# Jar versioning
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
@ -124,6 +124,9 @@ fi
%{_javadocdir}/%{name}-%{version}
%changelog
* Fri Sep 24 2010 Mat Booth <fedora@matbooth.co.uk> 0:1.2-4
- Forgot to actually install a jar with a name that maven users expect.
* Sun Sep 19 2010 Mat Booth <fedora@matbooth.co.uk> 0:1.2-3
- Install a maven pom and depmap.