Mageia Bugzilla – Attachment 4943 Details for
Bug 6055
scilab cli and scilab advanced cli have no associated icons in the kde menu
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Done for Icons and Categories.
spec.diff (text/plain), 1.71 KB, created by
Alex Loginov
on 2014-02-05 19:26:03 CET
(
hide
)
Description:
Done for Icons and Categories.
Filename:
MIME Type:
Creator:
Alex Loginov
Created:
2014-02-05 19:26:03 CET
Size:
1.71 KB
patch
obsolete
>Index: SPECS/scilab.spec >=================================================================== >--- SPECS/scilab.spec (revision 583430) >+++ SPECS/scilab.spec (working copy) >@@ -32,7 +32,7 @@ > Summary: A high-level language for numerical computations > Name: scilab > Version: 5.5.0 >-Release: %mkrel 0.beta1.3 >+Release: %mkrel 2.beta1.3 > License: CeCILL > Group: Sciences/Mathematics > URL: http://www.scilab.org/ >@@ -173,6 +173,17 @@ > sed -i "s/com.icl.saxon.Loader/net.sf.saxon.Version/g" m4/docbook.m4 configure > rm modules/helptools/src/java/org/scilab/modules/helptools/BuildDocObject.java > >+# mga#6055 >+sed -i "s|Icon=.*|Icon=%{name}|g" desktop/%{name}-cli.desktop >+sed -i "s|Icon=.*|Icon=%{name}|g" desktop/%{name}-adv-cli.desktop >+ >+# Modify categories >+sed -i "s|Categories=.*|Categories=Science;Math;|g" desktop/%{name}.desktop >+sed -i "s|Categories=.*|Categories=Science;Math;|g" desktop/%{name}-cli.desktop >+sed -i "s|Categories=.*|Categories=Science;Math;|g" desktop/%{name}-adv-cli.desktop >+sed -i "s|Categories=.*|Categories=Science;Math;|g" desktop/scinotes.desktop >+sed -i "s|Categories=.*|Categories=Science;Physics;|g" desktop/xcos.desktop >+ > %build > %define _disable_ld_no_undefined 1 > %define _disable_ld_as_needed 1 >@@ -229,19 +240,6 @@ > rm %{buildroot}%{_datadir}/%{name}/README_Windows.txt > find %{buildroot} -name '*.la' | xargs rm > >-# Menu >-mkdir -p %{buildroot}%{_datadir}/applications >-cat > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF >-[Desktop Entry] >-Name=Scilab >-Comment=High-level language for numerical computations >-Exec=scilab >-Icon=scilab >-Terminal=false >-Type=Application >-Categories=Science;Math; >-EOF >- > # (X)emacs > for i in emacs; do > mkdir -p %{buildroot}%{_datadir}/$i/site-lisp/
Index: SPECS/scilab.spec =================================================================== --- SPECS/scilab.spec (revision 583430) +++ SPECS/scilab.spec (working copy) @@ -32,7 +32,7 @@ Summary: A high-level language for numerical computations Name: scilab Version: 5.5.0 -Release: %mkrel 0.beta1.3 +Release: %mkrel 2.beta1.3 License: CeCILL Group: Sciences/Mathematics URL: http://www.scilab.org/ @@ -173,6 +173,17 @@ sed -i "s/com.icl.saxon.Loader/net.sf.saxon.Version/g" m4/docbook.m4 configure rm modules/helptools/src/java/org/scilab/modules/helptools/BuildDocObject.java +# mga#6055 +sed -i "s|Icon=.*|Icon=%{name}|g" desktop/%{name}-cli.desktop +sed -i "s|Icon=.*|Icon=%{name}|g" desktop/%{name}-adv-cli.desktop + +# Modify categories +sed -i "s|Categories=.*|Categories=Science;Math;|g" desktop/%{name}.desktop +sed -i "s|Categories=.*|Categories=Science;Math;|g" desktop/%{name}-cli.desktop +sed -i "s|Categories=.*|Categories=Science;Math;|g" desktop/%{name}-adv-cli.desktop +sed -i "s|Categories=.*|Categories=Science;Math;|g" desktop/scinotes.desktop +sed -i "s|Categories=.*|Categories=Science;Physics;|g" desktop/xcos.desktop + %build %define _disable_ld_no_undefined 1 %define _disable_ld_as_needed 1 @@ -229,19 +240,6 @@ rm %{buildroot}%{_datadir}/%{name}/README_Windows.txt find %{buildroot} -name '*.la' | xargs rm -# Menu -mkdir -p %{buildroot}%{_datadir}/applications -cat > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF -[Desktop Entry] -Name=Scilab -Comment=High-level language for numerical computations -Exec=scilab -Icon=scilab -Terminal=false -Type=Application -Categories=Science;Math; -EOF - # (X)emacs for i in emacs; do mkdir -p %{buildroot}%{_datadir}/$i/site-lisp/
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 6055
:
4935
|
4942
|
4943
|
4944
|
4955
|
4956