Set proper permissions for scripts in _bindir
This commit is contained in:
parent
c711afeea6
commit
f287058f0c
@ -1,6 +1,6 @@
|
|||||||
Name: xmvn
|
Name: xmvn
|
||||||
Version: 0.4.0
|
Version: 0.4.0
|
||||||
Release: 0.3%{?dist}
|
Release: 0.4%{?dist}
|
||||||
Summary: Local Extensions for Apache Maven
|
Summary: Local Extensions for Apache Maven
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: http://mizdebsk.fedorapeople.org/xmvn
|
URL: http://mizdebsk.fedorapeople.org/xmvn
|
||||||
@ -68,20 +68,23 @@ ln -sf %{_datadir}/maven/lib %{buildroot}%{_datadir}/%{name}/lib/maven
|
|||||||
cat <<EOF >%{buildroot}%{_bindir}/%{name}
|
cat <<EOF >%{buildroot}%{_bindir}/%{name}
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
export M2_HOME="\${M2_HOME:-%{_datadir}/%{name}}"
|
export M2_HOME="\${M2_HOME:-%{_datadir}/%{name}}"
|
||||||
exec mvn "${@}"
|
exec mvn "\${@}"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
||||||
%files -f .mfiles
|
%files -f .mfiles
|
||||||
%doc LICENSE NOTICE
|
%doc LICENSE NOTICE
|
||||||
%doc AUTHORS README
|
%doc AUTHORS README
|
||||||
%{_bindir}/*
|
%attr(755,-,-) %{_bindir}/*
|
||||||
%{_datadir}/%{name}
|
%{_datadir}/%{name}
|
||||||
|
|
||||||
%files javadoc -f .mfiles-javadoc
|
%files javadoc -f .mfiles-javadoc
|
||||||
%doc LICENSE NOTICE
|
%doc LICENSE NOTICE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 13 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.4.0-0.4
|
||||||
|
- Set proper permissions for scripts in _bindir
|
||||||
|
|
||||||
* Tue Mar 12 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.4.0-0.3
|
* Tue Mar 12 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.4.0-0.3
|
||||||
- Update to new upstream snapshot
|
- Update to new upstream snapshot
|
||||||
- Create custom /usr/bin/xmvn instead of using %%jpackage_script
|
- Create custom /usr/bin/xmvn instead of using %%jpackage_script
|
||||||
|
Loading…
Reference in New Issue
Block a user