%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') Name: pycharm-community Version: 2016.2.3 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 Source1: pycharm-community.desktop BuildRequires: desktop-file-utils Requires: java Autoreq: no %description The intelligent Python IDE with unique code assistance and analysis, for productive Python development on all levels %prep %setup -q -n pycharm-community-%{version} %install 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