%global debug_package %{nil} %global __strip /bin/true %global __objdump /bin/true %global __os_install_post %{nil} %global _build_id_links none %undefine _missing_build_ids_terminate_build Name: jetbrains-pycharm Version: 2026.1 Release: 1.261.22158.340 Summary: JetBrains PyCharm IDE License: Proprietary URL: https://www.jetbrains.com/ ExclusiveArch: x86_64 aarch64 AutoReqProv: no Source0: PCP-x86_64-pycharm-2026.1.tar.gz Source10: PCP-aarch64-pycharm-2026.1-aarch64.tar.gz %description PyCharm repackaged from the official JetBrains Linux archive. %prep rm -rf %{_builddir}/%{name}-%{version} mkdir -p %{_builddir}/%{name}-%{version} cd %{_builddir}/%{name}-%{version} %ifarch x86_64 tar -xzf %{SOURCE0} --strip-components=1 %endif %ifarch aarch64 tar -xzf %{SOURCE10} --strip-components=1 %endif if [ ! -e "bin/pycharm" ]; then echo "Expected executable bin/pycharm was not found after extracting the archive." >&2 exit 1 fi %build %install rm -rf %{buildroot} install -d %{buildroot}/opt/jetbrains-pycharm cp -a %{_builddir}/%{name}-%{version}/. %{buildroot}/opt/jetbrains-pycharm/ install -d %{buildroot}%{_bindir} cat > %{buildroot}%{_bindir}/jetbrains-pycharm <<'EOF' #!/bin/sh exec /opt/jetbrains-pycharm/bin/pycharm "$@" EOF chmod 0755 %{buildroot}%{_bindir}/jetbrains-pycharm install -d %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/jetbrains-pycharm.desktop <<'EOF' [Desktop Entry] Version=1.0 Type=Application Name=PyCharm Exec=/usr/bin/jetbrains-pycharm %%f Icon=jetbrains-pycharm Terminal=false StartupNotify=true StartupWMClass=jetbrains-pycharm Comment=JetBrains PyCharm IDE Categories=Development;IDE;Python; EOF chmod 0644 %{buildroot}%{_datadir}/applications/jetbrains-pycharm.desktop if [ -f "%{_builddir}/%{name}-%{version}/bin/pycharm.png" ]; then install -d %{buildroot}%{_datadir}/pixmaps install -m 0644 \ "%{_builddir}/%{name}-%{version}/bin/pycharm.png" \ "%{buildroot}%{_datadir}/pixmaps/jetbrains-pycharm.png" fi %files /opt/jetbrains-pycharm /usr/bin/jetbrains-pycharm /usr/share/applications/jetbrains-pycharm.desktop %ifarch x86_64 /usr/share/pixmaps/jetbrains-pycharm.png %endif %ifarch aarch64 /usr/share/pixmaps/jetbrains-pycharm.png %endif %changelog * Mon Apr 06 2026 cubewhy - 2026.1-1.261.22158.340 - Repackaged upstream JetBrains release