Added snapshot to paths
This commit is contained in:
parent
5a76f8b23b
commit
8a44097981
@ -109,12 +109,12 @@ ant dist
|
|||||||
mkdir -p META-INF
|
mkdir -p META-INF
|
||||||
cp -p %{SOURCE2} META-INF/MANIFEST.MF
|
cp -p %{SOURCE2} META-INF/MANIFEST.MF
|
||||||
touch META-INF/MANIFEST.MF
|
touch META-INF/MANIFEST.MF
|
||||||
zip -u %{name}%{version}/%{name}-%{version}.jar META-INF/MANIFEST.MF
|
zip -u %{name}%{version}-SNAPSHOT/%{name}-%{version}-SNAPSHOT.jar META-INF/MANIFEST.MF
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# jars
|
# jars
|
||||||
install -d -m 755 %{buildroot}%{_javadir}
|
install -d -m 755 %{buildroot}%{_javadir}
|
||||||
install -m 644 %{name}%{version}/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
install -m 644 %{name}%{version}-SNAPSHOT/%{name}-%{version}-SNAPSHOT.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||||
# Many packages still use the junit4.jar directly
|
# Many packages still use the junit4.jar directly
|
||||||
ln -s %{_javadir}/%{name}.jar %{buildroot}%{_javadir}/%{name}4.jar
|
ln -s %{_javadir}/%{name}.jar %{buildroot}%{_javadir}/%{name}4.jar
|
||||||
|
|
||||||
@ -125,12 +125,12 @@ install -m 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
|||||||
|
|
||||||
# javadoc
|
# javadoc
|
||||||
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
cp -pr %{name}%{version}/javadoc/* %{buildroot}%{_javadocdir}/%{name}
|
cp -pr %{name}%{version}-SNAPSHOT/javadoc/* %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
|
||||||
# demo
|
# demo
|
||||||
install -d -m 755 %{buildroot}%{_datadir}/%{name}/demo/%{name}
|
install -d -m 755 %{buildroot}%{_datadir}/%{name}/demo/%{name}
|
||||||
|
|
||||||
cp -pr %{name}%{version}/%{name}/* %{buildroot}%{_datadir}/%{name}/demo/%{name}
|
cp -pr %{name}%{version}-SNAPSHOT/%{name}/* %{buildroot}%{_datadir}/%{name}/demo/%{name}
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
Loading…
Reference in New Issue
Block a user