%define vendor jetbrains %define fullname IntelliJ Idea %define shortname idea %define buildname intellij-community-%{shortname} %define uniquename io.github.jetbrains.intellij_idea %global __python %{__python3} %define debug_package %{nil} Name: idea-intellij-ce Version: 223.8836.41 Release: 1%{?dist} Summary: IntelliJ Java IDE - Community Edition # Original package name was a little long... Provides: idea-intellij-community-edition = %{version} Obsoletes: idea-intellij-community-edition < %{version} Group: Development License: Apache License URL: https://github.com/JetBrains/intellij-community/tree/%{shortname}/%{version} Source0: https://github.com/JetBrains/intellij-community/archive/%{shortname}/%{version}.tar.gz Patch0: python3.patch Patch1: myxh.patch BuildRequires: ant BuildRequires: appstream BuildRequires: git BuildRequires: maven BuildRequires: desktop-file-utils BuildRequires: java-sdk-11 Requires: java-11 Requires: jre-11 Requires: %{name}-core = %{version} Requires: %{name}-plugin-android = %{version} Requires: %{name}-plugin-android-gradle-dsl = %{version} Requires: %{name}-plugin-ant = %{version} #Requires: %{name}-plugin-bytecodeviewer = %{version} Requires: %{name}-plugin-completionmlranking = %{version} Requires: %{name}-plugin-configurationscript = %{version} Requires: %{name}-plugin-copyright = %{version} #Requires: %{name}-plugin-coverage = %{version} Requires: %{name}-plugin-devkit = %{version} Requires: %{name}-plugin-eclipse = %{version} Requires: %{name}-plugin-editorconfig = %{version} Requires: %{name}-plugin-emojipicker = %{version} #Requires: %{name}-plugin-externalsystem-dependencyupdater = %{version} Requires: %{name}-plugin-featurestrainer = %{version} #Requires: %{name}-plugin-git4idea = %{version} #Requires: %{name}-plugin-github = %{version} Requires: %{name}-plugin-gradle = %{version} Requires: %{name}-plugin-gradle-dependencyupdater = %{version} Requires: %{name}-plugin-gradle-java = %{version} Requires: %{name}-plugin-gradle-java-maven = %{version} Requires: %{name}-plugin-grazie = %{version} Requires: %{name}-plugin-groovy = %{version} #Requires: %{name}-plugin-hg4idea = %{version} #Requires: %{name}-plugin-intellilang = %{version} Requires: %{name}-plugin-java = %{version} Requires: %{name}-plugin-java-decompiler = %{version} Requires: %{name}-plugin-javafx = %{version} Requires: %{name}-plugin-java-i18n = %{version} Requires: %{name}-plugin-java-ide-customization = %{version} Requires: %{name}-plugin-junit = %{version} Requires: %{name}-plugin-kotlin = %{version} Requires: %{name}-plugin-lombok = %{version} Requires: %{name}-plugin-markdown = %{version} Requires: %{name}-plugin-maven = %{version} Requires: %{name}-plugin-maven-model = %{version} Requires: %{name}-plugin-package-search = %{version} Requires: %{name}-plugin-platform-images = %{version} Requires: %{name}-plugin-properties = %{version} Requires: %{name}-plugin-repository-search = %{version} #Requires: %{name}-plugin-settings-repository = %{version} Requires: %{name}-plugin-sh = %{version} #Requires: %{name}-plugin-smali = %{version} #Requires: %{name}-plugin-stream-debugger = %{version} #Requires: %{name}-plugin-svn4idea = %{version} Requires: %{name}-plugin-tasks = %{version} Requires: %{name}-plugin-terminal = %{version} Requires: %{name}-plugin-testng = %{version} Requires: %{name}-plugin-textmate = %{version} Requires: %{name}-plugin-uidesigner = %{version} #Requires: %{name}-plugin-vcs-changereminder = %{version} #Requires: %{name}-plugin-vcs-git-featurestrainer = %{version} Requires: %{name}-plugin-webp = %{version} Requires: %{name}-plugin-xpath = %{version} Requires: %{name}-plugin-xslt-debugger = %{version} Requires: %{name}-plugin-yaml = %{version} %description IntelliJ Java IDE based upon the Jetbrains Idea platform. %package core Summary: IntelliJ Java IDE - core files Group: Development Recommends: %{name}-jbr = %{version} %description core Core files for Jetbrains IntelliJ. %package jbr Summary: IntelliJ Java IDE - Java runtime provided by Jetbrains Group: Development %description jbr Java runtime, provided by Jetbrains, built especially for the IntelliJ IDE. This is an optional package, but guarantees full functionality which may not be available when running the IDE on the standard OpenJDK distributions. %package plugin-ant Summary: IntelliJ Java IDE - Ant plugin Group: Development Requires: %{name}-core = %{version} Requires: mvn(ant:ant) %description plugin-ant Ant plugin for Jetbrains IntelliJ. %package plugin-android Summary: IntelliJ Java IDE - Android plugin Group: Development Requires: %{name}-core = %{version} %description plugin-android Android plugin for Jetbrains IntelliJ. %package plugin-android-gradle-dsl Summary: IntelliJ Java IDE - Android Gradle DSL plugin Group: Development Requires: %{name}-core = %{version} %description plugin-android-gradle-dsl Android Gradle DSL plugin for Jetbrains IntelliJ. #%package plugin-bytecodeviewer #Summary: IntelliJ Java IDE - ByteCodeViewer plugin #Group: Development #Requires: %{name}-core = %{version} #%description plugin-bytecodeviewer #ByteCodeViewer plugin for Jetbrains IntelliJ. %package plugin-completionmlranking Summary: IntelliJ Java IDE - Machine Learning Code Completion plugin Group: Development Requires: %{name}-core = %{version} %description plugin-completionmlranking The plugin improves code completion feature by reordering of elements in the completion popup by ranking more relevant items higher using machine learning. To enable the feature for your programming language, check settings in Editor | General | Code Completion | "Machine Learning Assistant Code Completion" section. %package plugin-configurationscript Summary: IntelliJ Java IDE - Configuration Script plugin Group: Development Requires: %{name}-core = %{version} %description plugin-configurationscript Configuration Script plugin for Jetbrains IntelliJ. %package plugin-copyright Summary: IntelliJ Java IDE - Copyright plugin Group: Development Requires: %{name}-core = %{version} %description plugin-copyright Copyright plugin for Jetbrains IntelliJ. #%package plugin-coverage #Summary: IntelliJ Java IDE - Coverage plugin #Group: Development #Requires: %{name}-core = %{version} #%description plugin-coverage #Coverage plugin for Jetbrains IntelliJ. %package plugin-devkit Summary: IntelliJ Java IDE - Devkit plugin Group: Development Requires: %{name}-core = %{version} %description plugin-devkit Devkit plugin for Jetbrains IntelliJ. %package plugin-eclipse Summary: IntelliJ Java IDE - Eclipse plugin Group: Development Requires: %{name}-core = %{version} %description plugin-eclipse Eclipse plugin for Jetbrains IntelliJ. %package plugin-editorconfig Summary: IntelliJ Java IDE - Editorconfig plugin Group: Development Requires: %{name}-core = %{version} %description plugin-editorconfig Editorconfig plugin for Jetbrains IntelliJ. %package plugin-emojipicker Summary: IntelliJ Java IDE - Emojipicker plugin Group: Development Requires: %{name}-core = %{version} %description plugin-emojipicker Emojipicker plugin for Jetbrains IntelliJ. #%package plugin-externalsystem-dependencyupdater #Summary: IntelliJ Java IDE - External System Dependency Updater plugin #Group: Development #Requires: %{name}-core = %{version} #%description plugin-externalsystem-dependencyupdater #External System Dependency Updater plugin for Jetbrains IntelliJ. #%package plugin-git4idea #Summary: IntelliJ Java IDE - Git plugin #Group: Development #Requires: %{name}-core = %{version} #%description plugin-git4idea #Git plugin for Jetbrains IntelliJ. #%package plugin-github #Summary: IntelliJ Java IDE - Github plugin #Group: Development #Requires: %{name}-core = %{version} #%description plugin-github #Github plugin for Jetbrains IntelliJ. %package plugin-gradle Summary: IntelliJ Java IDE - Gradle plugin Group: Development Requires: %{name}-core = %{version} %description plugin-gradle Gradle plugin for Jetbrains IntelliJ. %package plugin-gradle-dependencyupdater Summary: IntelliJ Java IDE - Gradle Dependency Updater plugin Group: Development Requires: %{name}-core = %{version} %description plugin-gradle-dependencyupdater Gradle Dependency Updater plugin for Jetbrains IntelliJ. %package plugin-gradle-java Summary: IntelliJ Java IDE - Gradle Java plugin Group: Development Requires: %{name}-core = %{version} %description plugin-gradle-java Gradle Java plugin for Jetbrains IntelliJ. %package plugin-gradle-java-maven Summary: IntelliJ Java IDE - Gradle Java Maven plugin Group: Development Requires: %{name}-core = %{version} %description plugin-gradle-java-maven Gradle Java Maven plugin for Jetbrains IntelliJ. %package plugin-grazie Summary: IntelliJ Java IDE - Grazie plugin Group: Development Requires: %{name}-core = %{version} %description plugin-grazie Grazie plugin for Jetbrains IntelliJ. %package plugin-groovy Summary: IntelliJ Java IDE - Groovy plugin Group: Development Requires: %{name}-core = %{version} %description plugin-groovy Groovy plugin for Jetbrains IntelliJ. %package plugin-java Summary: IntelliJ Java IDE - Java plugin Group: Development Requires: %{name}-core = %{version} %description plugin-java Java plugin for Jetbrains IntelliJ. %package plugin-java-decompiler Summary: IntelliJ Java IDE - Java Decompiler plugin Group: Development Requires: %{name}-core = %{version} %description plugin-java-decompiler Java Decompiler plugin for Jetbrains IntelliJ. %package plugin-javafx Summary: IntelliJ Java IDE - JavaFX plugin Group: Development Requires: %{name}-core = %{version} %description plugin-javafx JavaFX plugin for Jetbrains IntelliJ. %package plugin-java-i18n Summary: IntelliJ Java IDE - Java I18n plugin Group: Development Requires: %{name}-core = %{version} %description plugin-java-i18n Java I18n plugin for Jetbrains IntelliJ. %package plugin-java-ide-customization Summary: IntelliJ Java IDE - Java IDE Customization plugin Group: Development Requires: %{name}-core = %{version} %description plugin-java-ide-customization Java IDE Customization plugin for Jetbrains IntelliJ. %package plugin-junit Summary: IntelliJ Java IDE - Junit plugin Group: Development Requires: %{name}-core = %{version} %description plugin-junit Junit plugin for Jetbrains IntelliJ. %package plugin-markdown Summary: IntelliJ Java IDE - Markdown plugin Group: Development Requires: %{name}-core = %{version} %description plugin-markdown Markdown plugin for Jetbrains IntelliJ. %package plugin-maven Summary: IntelliJ Java IDE - Maven plugin Group: Development Requires: %{name}-core = %{version} %description plugin-maven Maven plugin for Jetbrains IntelliJ. %package plugin-maven-model Summary: IntelliJ Java IDE - Maven Model plugin Group: Development Requires: %{name}-core = %{version} %description plugin-maven-model Maven Model plugin for Jetbrains IntelliJ. #%package plugin-intellilang #Summary: IntelliJ Java IDE - Intellilang plugin #Group: Development #Requires: %{name}-core = %{version} #%description plugin-intellilang #IntelliLang plugin for Jetbrains IntelliJ. %package plugin-kotlin Summary: IntelliJ Java IDE - Kotlin plugin Group: Development Requires: %{name}-core = %{version} %description plugin-kotlin Kotlin plugin for Jetbrains IntelliJ. %package plugin-lombok Summary: IntelliJ Java IDE - Lombok plugin Group: Development Requires: %{name}-core = %{version} %description plugin-lombok Lombok plugin for Jetbrains IntelliJ. %package plugin-featurestrainer Summary: IntelliJ Java IDE - FeaturesTrainer plugin Group: Development Requires: %{name}-core = %{version} %description plugin-featurestrainer FeaturesTrainer plugin for Jetbrains IntelliJ. #%package plugin-hg4idea #Summary: IntelliJ Java IDE - Hg4idea plugin #Group: Development #Requires: %{name}-core = %{version} #%description plugin-hg4idea #Hg4idea plugin for Jetbrains IntelliJ. %package plugin-package-search Summary: IntelliJ Java IDE - PackageSearch plugin Group: Development Requires: %{name}-core = %{version} %description plugin-package-search PackageSearch plugin for Jetbrains IntelliJ. %package plugin-platform-images Summary: IntelliJ Java IDE - Platform-images plugin Group: Development Requires: %{name}-core = %{version} %description plugin-platform-images Platform-images plugin for Jetbrains IntelliJ. %package plugin-properties Summary: IntelliJ Java IDE - Properties plugin Group: Development Requires: %{name}-core = %{version} %description plugin-properties Properties plugin for Jetbrains IntelliJ. %package plugin-repository-search Summary: IntelliJ Java IDE - Repository-search plugin Group: Development Requires: %{name}-core = %{version} %description plugin-repository-search Repository-search plugin for Jetbrains IntelliJ. #%package plugin-settings-repository #Summary: IntelliJ Java IDE - Settings-repository plugin #Group: Development #Requires: %{name}-core = %{version} #%description plugin-settings-repository #Settings-repository plugin for Jetbrains IntelliJ. %package plugin-sh Summary: IntelliJ Java IDE - Sh plugin Group: Development Requires: %{name}-core = %{version} %description plugin-sh Sh plugin for Jetbrains IntelliJ. #%package plugin-smali #Summary: IntelliJ Java IDE - Smali plugin #Group: Development #Requires: %{name}-core = %{version} #%description plugin-smali #Smali plugin for Jetbrains IntelliJ. #%package plugin-stream-debugger #Summary: IntelliJ Java IDE - Stream-debugger plugin #Group: Development #Requires: %{name}-core = %{version} #%description plugin-stream-debugger #Stream-debugger plugin for Jetbrains IntelliJ. #%package plugin-svn4idea #Summary: IntelliJ Java IDE - Svn4idea plugin #Group: Development #Requires: %{name}-core = %{version} #%description plugin-svn4idea #Svn4idea plugin for Jetbrains IntelliJ. %package plugin-tasks Summary: IntelliJ Java IDE - Tasks plugin Group: Development Requires: %{name}-core = %{version} %description plugin-tasks Tasks plugin for Jetbrains IntelliJ. %package plugin-terminal Summary: IntelliJ Java IDE - Terminal plugin Group: Development Requires: %{name}-core = %{version} %description plugin-terminal Terminal plugin for Jetbrains IntelliJ. %package plugin-testng Summary: IntelliJ Java IDE - Testng plugin Group: Development Requires: %{name}-core = %{version} %description plugin-testng Testng plugin for Jetbrains IntelliJ. %package plugin-textmate Summary: IntelliJ Java IDE - Textmate plugin Group: Development Requires: %{name}-core = %{version} %description plugin-textmate Textmate plugin for Jetbrains IntelliJ. %package plugin-uidesigner Summary: IntelliJ Java IDE - UiDesigner plugin Group: Development Requires: %{name}-core = %{version} %description plugin-uidesigner UiDesigner plugin for Jetbrains IntelliJ. #%package plugin-vcs-changereminder #Summary: IntelliJ Java IDE - Vcs-changeReminder plugin #Group: Development #Requires: %{name}-core = %{version} #%description plugin-vcs-changereminder #Vcs-changeReminder plugin for Jetbrains IntelliJ. #%package plugin-vcs-git-featurestrainer #Summary: IntelliJ Java IDE - VCS Git FeaturesTrainer plugin #Group: Development #Requires: %{name}-core = %{version} #%description plugin-vcs-git-featurestrainer #VCS Git FeaturesTrainer plugin for Jetbrains IntelliJ. %package plugin-webp Summary: IntelliJ Java IDE - Webp plugin Group: Development Requires: %{name}-core = %{version} %description plugin-webp Webp plugin for Jetbrains IntelliJ. %package plugin-xpath Summary: IntelliJ Java IDE - Xpath plugin Group: Development Requires: %{name}-core = %{version} %description plugin-xpath Xpath plugin for Jetbrains IntelliJ. %package plugin-xslt-debugger Summary: IntelliJ Java IDE - XSLT Debugger plugin Group: Development Requires: %{name}-core = %{version} %description plugin-xslt-debugger XSLT Debugger plugin for Jetbrains IntelliJ. %package plugin-yaml Summary: IntelliJ Java IDE - YAML plugin Group: Development Requires: %{name}-core = %{version} %description plugin-yaml YAML plugin for Jetbrains IntelliJ. %package release Summary: IntelliJ Java IDE - Community Edition - RELEASE version Requires: %{name} = %{version} Conflicts: %{name}-eap %description release IntelliJ Java IDE based upon the Jetbrains Idea platform. Meta-package to track the current RELEASE version %package eap Summary: IntelliJ Java IDE - Community Edition - EAP version Requires: %{name} = %{version} Conflicts: %{name}-release %description eap IntelliJ Java IDE based upon the Jetbrains Idea platform. Meta-package to track the current EAP version %prep %setup -qn "%{buildname}-%{version}" %patch0 -p1 %patch1 -p1 echo %{version} > build.txt git clone --depth=1 -b idea/%{version} git://git.jetbrains.org/idea/android.git # Testing module has invalid imports # Probably only works on Jetbrains CI... sigh rm -Rf tools/ideTestingFramework # Junit hack -- package depends on local maven repo containing junit 3.8.1 mkdir junithack cat > junithack/pom.xml < 4.0.0 org.example mavenpull 1.0-SNAPSHOT 11 11 UTF-8 junit junit 3.8.1 EOF cd junithack mvn compile cd .. %build mkdir -p out/idea-ce/temp/builtinModules/system/log touch out/idea-ce/temp/builtinModules/system/log/idea.log export JAVA_HOME=$(rpm -ql $(rpm -q --whatprovides java-11-headless) | grep "jre") export ANT_OPTS="$ANT_OPTS -Dintellij.build.dev.mode=false -Dintellij.build.target.os=current" echo Checking our lang: env | grep LANG export LANG=en_US.UTF-8 ./installers.cmd -Dintellij.build.dev.mode=false -Dintellij.build.target.os=current cat > %{uniquename}.metainfo.xml < %{uniquename} IntelliJ IDEA IntelliJ Java IDE based upon the Jetbrains Idea platform. FSFAP Apache-2.0

IntelliJ Java IDE based upon the Jetbrains Idea platform.

%{uniquename}.desktop https://www.jetbrains.com/idea/img/screenshots/idea_overview_5_1.png %{uniquename} Development IDE %{name}
EOF appstreamcli make-desktop-file %{uniquename}.metainfo.xml %{uniquename}.desktop echo "StartupWMClass=%{vendor}-%{shortname}-ce" >> %{uniquename}.desktop # Create the wrapper for /usr/bin cat >%{name} <%{name}-default.sh <%{name}-jbr.sh < - Package Jetbrains JBR (optional package) * Mon Aug 8 2022 Chris Throup - New preview version * Sat Jul 23 2022 Chris Throup - New release version * Wed Jun 22 2022 Chris Throup - New release version * Wed Jun 1 2022 Chris Throup - New release version * Tue May 24 2022 Chris Throup - New release version * Sat Dec 6 2014 Chris Throup - Initial RPM release