]>
Commit | Line | Data |
---|---|---|
265003bd ER |
1 | Summary: Lightweight and Smart PHP IDE |
2 | Name: phpstorm | |
3 | Version: 2.0 | |
425880c4 | 4 | Release: 0.2 |
265003bd ER |
5 | License: ? |
6 | Group: Development/Tools | |
7 | Source0: http://download.jetbrains.com/webide/PhpStorm-%{version}.tar.gz | |
8 | # NoSource0-md5: a772dcf0c01231e814817309faf327a3 | |
9 | NoSource: 0 | |
8c2db59b | 10 | Patch0: pld.patch |
265003bd ER |
11 | URL: http://www.jetbrains.com/phpstorm/ |
12 | BuildRequires: unzip | |
13 | Requires: jdk >= 1.6 | |
8c2db59b | 14 | Requires: which |
265003bd ER |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %define _appdir %{_libdir}/%{name} | |
18 | ||
19 | %description | |
20 | PhpStorm is a lightweight and smart PHP IDE focused on developer | |
21 | productivity that deeply understands your code, provides smart code | |
22 | completion, quick navigation and on-the-fly error checking. It is | |
23 | always ready to help you shape your code, run unit-tests or provide | |
24 | visual debugging. | |
25 | ||
26 | Note: PhpStorm includes all the functionality of WebStorm (HTML/CSS | |
27 | Editor, JavaScript Editor) and adds full-fledged support for PHP. | |
28 | ||
29 | %prep | |
30 | %setup -qn PhpStorm-103.99 | |
31 | %ifarch %{ix86} | |
32 | rm bin/fsnotifier64 | |
33 | rm bin/libbreakgen64.so | |
34 | rm bin/libyjpagent64.so | |
35 | %endif | |
36 | %ifarch %{x8664} | |
37 | mv -f bin/fsnotifier{64,} | |
38 | mv -f bin/libbreakgen{64,}.so | |
39 | mv -f bin/libyjpagent{64,}.so | |
40 | %endif | |
8c2db59b | 41 | %patch0 -p1 |
265003bd ER |
42 | chmod a+rx bin/*.so bin/fsnotifier |
43 | mv bin/webide.png . | |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | install -d $RPM_BUILD_ROOT{%{_appdir},%{_bindir},%{_pixmapsdir},%{_desktopdir}} | |
425880c4 | 48 | cp -a bin help lib license plugins $RPM_BUILD_ROOT%{_appdir} |
265003bd | 49 | cp -p webide.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png |
425880c4 | 50 | ln -s %{_appdir}/bin/PhpStorm.sh $RPM_BUILD_ROOT%{_bindir}/phpstorm |
265003bd ER |
51 | |
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
425880c4 | 57 | %attr(755,root,root) %{_bindir}/%{name} |
265003bd ER |
58 | %dir %{_appdir} |
59 | %{_appdir}/help | |
60 | %{_appdir}/lib | |
425880c4 | 61 | %{_appdir}/license |
265003bd ER |
62 | %{_appdir}/plugins |
63 | %dir %{_appdir}/bin | |
265003bd ER |
64 | %{_appdir}/bin/PhpStorm.vmoptions |
65 | %{_appdir}/bin/idea.properties | |
66 | %{_appdir}/bin/log.xml | |
425880c4 | 67 | %attr(755,root,root) %{_appdir}/bin/PhpStorm.sh |
265003bd ER |
68 | %attr(755,root,root) %{_appdir}/bin/fsnotifier |
69 | %attr(755,root,root) %{_appdir}/bin/libbreakgen.so | |
70 | %attr(755,root,root) %{_appdir}/bin/libyjpagent.so | |
71 | %{_pixmapsdir}/%{name}.png |