add desktop file and icon

This commit is contained in:
dou33 2021-09-10 15:38:18 +08:00
parent ae9cefe0bc
commit f3f9efe016
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,17 +2,17 @@
Name: pycharm-community Name: pycharm-community
Version: 2016.2.3 Version: 2016.2.3
Release: 1 Release: 2
Summary: Intelligent Python IDE Summary: Intelligent Python IDE
Group: Applications/Development Group: Applications/Development
License: Apache2 License: Apache2
URL: http://www.jetbrains.com/pycharm/ URL: http://www.jetbrains.com/pycharm/
Source0: http://download.jetbrains.com/python/%{name}-%{version}.tar.gz Source0: http://download.jetbrains.com/python/%{name}-%{version}.tar.gz
#Source1: pycharm.xml #Source1: pycharm.xml
#Source2: pycharm.desktop Source1: pycharm-community.desktop
BuildRequires: desktop-file-utils BuildRequires: desktop-file-utils
Requires: java Requires: java
Autoreq:no Autoreq: no
%description %description
The intelligent Python IDE with unique code assistance and analysis, The intelligent Python IDE with unique code assistance and analysis,
@ -25,12 +25,19 @@ for productive Python development on all levels
mkdir -p %{buildroot}/opt/ mkdir -p %{buildroot}/opt/
cp -r %{_builddir}/pycharm-community-%{version} %{buildroot}/opt/ cp -r %{_builddir}/pycharm-community-%{version} %{buildroot}/opt/
mkdir -p %{buildroot}/usr/share/applications/
cp -r %{SOURCE1} %{buildroot}/usr/share/applications/
%files %files
%defattr(-,root,root) %defattr(-,root,root)
#%%{_bindir}/pycharm #%%{_bindir}/pycharm
/opt/* /opt/*
%{_datadir}/applications/pycharm-community.desktop
%changelog %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 * Sat Aug 14 2021 tanyulong<tanyulong@kylinos.cn> -2016.2.3
- initial pycharm-community-2016.2.3 - initial pycharm-community-2016.2.3