webstorm/webstorm.spec

80 lines
2.2 KiB
RPMSpec

Name: webstorm
Version: 2022.2.1
Release: 1mamba
Summary: JavaScript IDE and HTML editor
Group: Graphical Desktop/Applications/Development
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.jetbrains.com/webstorm/
Source: https://download.jetbrains.com/webstorm/WebStorm-%{version}.tar.gz
Source1: jetbrains-webstorm.desktop
License: Custom
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
Requires: java-runtime
%description
JavaScript IDE and HTML editor.
%package jre
Group: System/Libraries
Summary: JBR (JetBrains Runtime) for WebStorm - a patched JRE
%description jre
JBR (JetBrains Runtime) for WebStorm - a patched JRE.
%debug_package
%global __requires_exclude_from ^%{_datadir}/webstorm/.*$
%global __provides_exclude_from ^%{_datadir}/webstorm/.*$
%prep
%setup -q -n WebStorm-222.3739.57
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d -m0755 %{buildroot}{%{_datadir}/webstorm,%{_bindir}}
cp -a * %{buildroot}%{_datadir}/webstorm/
ln -s %{_datadir}/webstorm/bin/webstorm.sh %{buildroot}%{_bindir}/webstorm
install -D -m644 %{SOURCE1} %{buildroot}%{_datadir}/applications/jetbrains-webstorm.desktop
install -D -m644 bin/webstorm.svg %{buildroot}%{_datadir}/pixmaps/webstorm.svg
rm -f %{buildroot}%{_datadir}/webstorm/Install-Linux-tar.txt
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/webstorm
%{_datadir}/applications/jetbrains-webstorm.desktop
%{_datadir}/pixmaps/webstorm.svg
%dir %{_datadir}/webstorm
%{_datadir}/webstorm/build.txt
%{_datadir}/webstorm/product-info.json
%dir %{_datadir}/webstorm/bin
%{_datadir}/webstorm/bin/*
%dir %{_datadir}/webstorm/help
%{_datadir}/webstorm/help/*.pdf
%dir %{_datadir}/webstorm/lib
%{_datadir}/webstorm/lib/*
%dir %{_datadir}/webstorm/license
%{_datadir}/webstorm/license/*
%dir %{_datadir}/webstorm/plugins
%{_datadir}/webstorm/plugins/*
%files jre
%defattr(-,root,root)
%dir %{_datadir}/webstorm/jbr
%{_datadir}/webstorm/jbr/*
%changelog
* Fri Sep 02 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2022.2.1-1mamba
- package created using the webbuild interface