[packages/intellij-idea] up to 14.0.2 (build 139.659.2)
glen
glen at pld-linux.org
Tue Jan 27 10:30:05 CET 2015
commit 6a3fbc6158ece4048ad4418ee06e67164aeb0e3d
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Jan 27 11:29:50 2015 +0200
up to 14.0.2 (build 139.659.2)
intellij-idea.spec | 34 +++++++++++++++++++---------------
1 file changed, 19 insertions(+), 15 deletions(-)
---
diff --git a/intellij-idea.spec b/intellij-idea.spec
index 26c8f8d..e4b87d9 100644
--- a/intellij-idea.spec
+++ b/intellij-idea.spec
@@ -1,12 +1,15 @@
+%define product idea
+%define proddir %{product}IC
+%define buildid 139.659.2
%include /usr/lib/rpm/macros.java
-Summary: IntelliJ IDEA 12 - The Most Intelligent Java IDE
+Summary: IntelliJ IDEA 14 - The Most Intelligent Java IDE
Name: intellij-idea
-Version: 12.1.2
-Release: 0.2
+Version: 14.0.2
+Release: 0.1
License: Apache v2.0
Group: Development/Tools
Source0: http://download.jetbrains.com/idea/ideaIC-%{version}-src.tar.bz2
-# Source0-md5: 68cf6340a3ce985cab659944e3ddf926
+# Source0-md5: 17889882abc3f99c15f231d192e93b33
Source1: %{name}.desktop
Source2: jdk.table.xml
Patch0: jdk.table.patch
@@ -38,8 +41,8 @@ codebase, makes great suggestions right when you need them, and is
always ready to help you shape your code.
%prep
-%setup -qn ideaIC-129.354
-%undos bin/scripts/unix/idea.sh
+%setup -qn %{proddir}-%{buildid}
+%undos bin/scripts/unix/%{product}.sh
%patch0 -p1
%build
@@ -51,12 +54,12 @@ cd out/dist.unix.ce
%ifarch %{ix86}
rm bin/fsnotifier64
rm bin/libbreakgen64.so
-rm bin/idea64.vmoptions
+rm bin/%{product}64.vmoptions
%endif
%ifarch %{x8664}
rm bin/fsnotifier
rm bin/libbreakgen.so
-rm bin/idea.vmoptions
+rm bin/%{product}.vmoptions
%endif
chmod a+rx bin/*.so bin/fsnotifier*
cd ../..
@@ -69,12 +72,13 @@ cd out
cp -l dist.all.ce/build.txt $RPM_BUILD_ROOT/cp-test && l=l && rm -f $RPM_BUILD_ROOT/cp-test
cp -a$l dist.all.ce/{bin,lib,license,plugins} $RPM_BUILD_ROOT%{_appdir}
-cp -p dist.unix.ce/bin/idea.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
+cp -p dist.unix.ce/bin/%{product}.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
cp -a$l dist.unix.ce/bin $RPM_BUILD_ROOT%{_appdir}
+%{__rm} $RPM_BUILD_ROOT%{_appdir}/bin/%{product}.png
cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
%{__sed} -e 's, at jvmdir@,%{_jvmdir},g' %{SOURCE2} > $RPM_BUILD_ROOT%{_appdir}/jdk.table.xml
-ln -s %{_appdir}/bin/idea.sh $RPM_BUILD_ROOT%{_bindir}/idea
+ln -s %{_appdir}/bin/%{product}.sh $RPM_BUILD_ROOT%{_bindir}/%{product}
desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
@@ -86,19 +90,19 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc LICENSE.txt README.md
-%attr(755,root,root) %{_bindir}/idea
+%doc NOTICE.txt
+%attr(755,root,root) %{_bindir}/%{product}
%dir %{_appdir}
%{_appdir}/lib
%{_appdir}/license
%{_appdir}/plugins
%{_appdir}/jdk.table.xml
%dir %{_appdir}/bin
-%{_appdir}/bin/idea*.vmoptions
+%{_appdir}/bin/%{product}*.vmoptions
+%{_appdir}/bin/%{product}.properties
%{_appdir}/bin/appletviewer.policy
-%{_appdir}/bin/idea.properties
%{_appdir}/bin/log.xml
-%attr(755,root,root) %{_appdir}/bin/idea.sh
+%attr(755,root,root) %{_appdir}/bin/%{product}.sh
%attr(755,root,root) %{_appdir}/bin/inspect.sh
%attr(755,root,root) %{_appdir}/bin/fsnotifier*
%attr(755,root,root) %{_appdir}/bin/libbreakgen*.so
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/intellij-idea.git/commitdiff/6a3fbc6158ece4048ad4418ee06e67164aeb0e3d
More information about the pld-cvs-commit
mailing list