!2 add desktop file and icon

From: @dou33
Reviewed-by: @tanyulong2021
Signed-off-by: @tanyulong2021
This commit is contained in:
openeuler-ci-bot 2021-09-14 06:15:07 +00:00 committed by Gitee
commit 0c10182ea7
2 changed files with 32 additions and 9 deletions

16
pycharm-community.desktop Normal file
View File

@ -0,0 +1,16 @@
[Desktop Entry]
Name=PyCharm Community
GenericName=PyCharm Community
X-GNOME-FullName=PyCharm Community
Comment=Lightweight IDE for Python development
Exec=/opt/pycharm-community-2016.2.3/bin/pycharm.sh
Terminal=false
Type=Application
Icon=/opt/pycharm-community-2016.2.3/bin/pycharm.png
MimeType=text/x-script.phyton;
StartupNotify=true
Categories=GTK;Development;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=PyCharm
X-GNOME-Bugzilla-Component=general
X-Desktop-File-Install-Version=3.0.2

View File

@ -2,14 +2,14 @@
Name: pycharm-community
Version: 2016.2.3
Release: 1
Release: 2
Summary: Intelligent Python IDE
Group: Applications/Development
License: Apache2
URL: http://www.jetbrains.com/pycharm/
Source0: http://download.jetbrains.com/python/%{name}-%{version}.tar.gz
#Source1: pycharm.xml
#Source2: pycharm.desktop
Source1: pycharm-community.desktop
BuildRequires: desktop-file-utils
Requires: java
Autoreq: no
@ -25,12 +25,19 @@ for productive Python development on all levels
mkdir -p %{buildroot}/opt/
cp -r %{_builddir}/pycharm-community-%{version} %{buildroot}/opt/
mkdir -p %{buildroot}/usr/share/applications/
cp -r %{SOURCE1} %{buildroot}/usr/share/applications/
%files
%defattr(-,root,root)
#%%{_bindir}/pycharm
/opt/*
%{_datadir}/applications/pycharm-community.desktop
%changelog
* Fri Sep 10 2021 douyan<douyan@kylinos.cn> -2016.2.3-2
- add desktop file and icon
* Sat Aug 14 2021 tanyulong<tanyulong@kylinos.cn> -2016.2.3
- initial pycharm-community-2016.2.3