Fix %files in spec file

This commit is contained in:
Mikolaj Izdebski 2014-05-02 11:05:52 +02:00
parent 32f6668ef8
commit 3d43c92a4d

View File

@ -134,6 +134,8 @@ This package provides %{summary}.
%prep %prep
%setup -q %setup -q
%mvn_package :xmvn __noinstall
# In XMvn 2.x xmvn-connector was renamed to xmvn-connector-aether # In XMvn 2.x xmvn-connector was renamed to xmvn-connector-aether
%mvn_alias :xmvn-connector-aether :xmvn-connector %mvn_alias :xmvn-connector-aether :xmvn-connector
@ -175,9 +177,6 @@ ln -sf %{_datadir}/maven/bin/mvnyjp %{buildroot}%{_datadir}/%{name}/bin/mvnyjp
# helper scripts # helper scripts
install -d -m 755 %{buildroot}%{_bindir} install -d -m 755 %{buildroot}%{_bindir}
install -m 755 xmvn-tools/src/main/bin/tool-script \
%{buildroot}%{_datadir}/%{name}/bin/
for tool in subst resolve bisect install;do for tool in subst resolve bisect install;do
cat <<EOF >%{buildroot}%{_bindir}/%{name}-$tool cat <<EOF >%{buildroot}%{_bindir}/%{name}-$tool
#!/bin/sh -e #!/bin/sh -e
@ -216,10 +215,12 @@ end
%dir %{_datadir}/%{name}/bin %dir %{_datadir}/%{name}/bin
%dir %{_datadir}/%{name}/lib %dir %{_datadir}/%{name}/lib
%{_datadir}/%{name}/lib/*.jar %{_datadir}/%{name}/lib/*.jar
%{_datadir}/%{name}/lib/ext
%{_datadir}/%{name}/bin/m2.conf %{_datadir}/%{name}/bin/m2.conf
%{_datadir}/%{name}/bin/mvn %{_datadir}/%{name}/bin/mvn
%{_datadir}/%{name}/bin/mvnDebug %{_datadir}/%{name}/bin/mvnDebug
%{_datadir}/%{name}/bin/mvnyjp %{_datadir}/%{name}/bin/mvnyjp
%{_datadir}/%{name}/bin/xmvn
%{_datadir}/%{name}/boot %{_datadir}/%{name}/boot
%{_datadir}/%{name}/conf %{_datadir}/%{name}/conf
@ -243,6 +244,8 @@ end
%dir %{_datadir}/%{name}/lib %dir %{_datadir}/%{name}/lib
%{_datadir}/%{name}/lib/ivy %{_datadir}/%{name}/lib/ivy
%files mojo -f .mfiles-xmvn-mojo
%files tools-pom -f .mfiles-xmvn-tools %files tools-pom -f .mfiles-xmvn-tools
%files resolve -f .mfiles-xmvn-resolve %files resolve -f .mfiles-xmvn-resolve