diff --git a/pycharm-community.desktop b/pycharm-community.desktop new file mode 100644 index 0000000..fc78ee3 --- /dev/null +++ b/pycharm-community.desktop @@ -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 diff --git a/pycharm-community.spec b/pycharm-community.spec index b8e8087..a55910a 100644 --- a/pycharm-community.spec +++ b/pycharm-community.spec @@ -2,17 +2,17 @@ Name: pycharm-community Version: 2016.2.3 -Release: 1 +Release: 2 Summary: Intelligent Python IDE -Group: Applications/Development -License: Apache2 +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 -BuildRequires: desktop-file-utils -Requires: java -Autoreq:no +Source0: http://download.jetbrains.com/python/%{name}-%{version}.tar.gz +#Source1: pycharm.xml +Source1: pycharm-community.desktop +BuildRequires: desktop-file-utils +Requires: java +Autoreq: no %description 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/ 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 -2016.2.3-2 +- add desktop file and icon + * Sat Aug 14 2021 tanyulong -2016.2.3 - initial pycharm-community-2016.2.3