53 lines
1.4 KiB
RPMSpec
53 lines
1.4 KiB
RPMSpec
Name: pycharm
|
|
Version: 2026.1
|
|
Release: 1%{?dist}
|
|
Summary: pycharm all-in-one application package
|
|
License: Proprietary
|
|
URL: https://www.jetbrains.com/pycharm
|
|
Source0: https://download-cdn.jetbrains.com/python/pycharm-2026.1.tar.gz
|
|
|
|
BuildArch: x86_64
|
|
AutoReqProv: no
|
|
|
|
%define __spec_install_post %{nil}
|
|
# use faster compression to speed up packaging
|
|
%global _binary_payload w3.zstdio
|
|
# Disable debug package generation
|
|
%global debug_package %{nil}
|
|
# do not include /usr/lib/.build-id/* files in the rpm
|
|
%global _build_id_links none
|
|
|
|
%description
|
|
pycharm packaged from the official all-in-one tarball.
|
|
Installs to /opt/pycharm.
|
|
|
|
%prep
|
|
# No build directory setup needed — we install directly from the tarball
|
|
|
|
%build
|
|
# Nothing to build; pre-compiled binary distribution
|
|
|
|
%install
|
|
# Clean out the buildroot
|
|
rm -rf %{buildroot}
|
|
|
|
# Create the target installation directory
|
|
install -d %{buildroot}/opt/%{name}
|
|
|
|
# Extract the tarball contents into the install location
|
|
tar -xzf %{SOURCE0} -C %{buildroot}/opt/%{name} --strip-components=1
|
|
|
|
# Create symlink
|
|
mkdir -p %{buildroot}/usr/bin
|
|
ln -sf /opt/%{name}/bin/pycharm %{buildroot}/usr/bin/pycharm
|
|
|
|
# Install desktop entry
|
|
mkdir -p %{buildroot}/usr/share/applications/
|
|
cp %(pwd)/pycharm.desktop %{buildroot}/usr/share/applications/
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
/opt/%{name}
|
|
/usr/bin/pycharm
|
|
/usr/share/applications/pycharm.desktop
|